/proc/buddyinfo

来源:互联网 发布:苹果手机画图软件 编辑:程序博客网 时间:2024/04/26 20:19

/proc/buddyinfo

This file is used primarily for diagnosing memory fragmentation issues. Using the buddy algorithm, each column represents the number of pages of a certain order (a certain size) that are available at any given time. For example, for zone DMA (direct memory access), there are 90 of 2^(0*PAGE_SIZE) chunks of memory. Similarly, there are 6 of 2^(1*PAGE_SIZE) chunks, and 2 of 2^(2*PAGE_SIZE) chunks of memory available.
The DMA row references the first 16 MB on a system, theHighMem row references all memory greater than 4 GB on a system, and theNormal row references all memory in between.
The following is an example of the output typical of /proc/buddyinfo:
Node 0, zone      DMA     90      6      2      1      1      ...Node 0, zone   Normal   1650    310      5      0      0      ...Node 0, zone  HighMem      2      0      0      1      1      ...