linux CMA

linux CMA

CMA(Contiguous Memory Allocator)是Linux内核中的一种内存分配器,它的作用是为设备驱动程序和其他需要大块连续内存的组件提供内存分配支持。

reference:
linux/Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt


linux/kernel/dma/contiguous.c
linux/board-support/linux/mm\cma.c

Linux中的Memory Compaction [二] - CMA https://zhuanlan.zhihu.com/p/105745299



linux内存子系统 - 保留内存 https://zhuanlan.zhihu.com/p/363911384?utm_id=0



kernel config CMA default size

#                                                                               
# Default contiguous memory area size:                                          
#                                                                               
CONFIG_CMA_SIZE_MBYTES=512                  

如果dts配置了,就不会使用config file配置的CMA大小;
配置优先顺序dts, cmdline, config file;

posted @   王阳开  阅读(270)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架
历史上的今天:
2022-10-09 perf
2022-10-09 linux strace
点击右上角即可分享
微信分享提示