msm-memmap
2017-07-03 21:31:08 2 举报
msm memory map
作者其他创作
大纲/内容
pheripheral_region
Cached
Non-HLOSmem
Used
modem_adsp_region
MemFree
external_image_region
Kernel
Frameworkand app
framebufferor other
HLOSmem
Buffers
MemTotal
RAMTotal
free mem
kernel的bootlog中有cma: CMA: reserved 8 MiB at 0x0000000086000000 for external_image_memcma: CMA: reserved 86 MiB at 0x0000000086800000 for modem_adsp_memcma: CMA: reserved 6 MiB at 0x000000008be00000 for peripheral_mem则 Non-HLOS mem = 8MB + 86MB + 6MB = 100MBRamTotal 已知, 例如 1024MB从 /proc/meminfo 可得如下的信息: MemTotal: 829320 KB MemFree: 136920KB Buffers: 3588 KB Cached: 223136 KB则可计算得到如下值 //不考虑framebuffer等占用的静态内存 Kernel mem = (HLOS mem) - (MemTotal) = (RamTotal) - (Non-HLOS mem) - MemTotal free mem = Cached + MemFree Android Framework and app mem = MemTotal - (free mem) = MemTotal - Cached - MemFree例如 kernel mem = 1024MB - 100MB - 829320KB = 114.1MB free mem = 136920KB + 223136KB = 351MB Android Framework and app mem = 829320KB - 351MB = 458MB
0 条评论
下一页