Re: [PATCH 1/2] vm: add 'MemManaged' field to /proc/meminfo and /sys/.../nodex/meminfo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 17 Feb 2013, Jiang Liu wrote:

> As reported by https://bugzilla.kernel.org/show_bug.cgi?id=53501,
> "MemTotal" from /proc/meminfo means memory pages managed by the buddy
> system (managed_pages), but "MemTotal" from /sys/.../node/nodex/meminfo
> means phsical pages present (present_pages) within the NUMA node.
> There's a difference between managed_pages and present_pages due to
> bootmem allocator and reserved pages.
> 
> So introduce a new field "MemManaged" to /sys/.../nodex/meminfo and
> /proc/meminfo, so that:
> MemTotal = present_pages
> MemManaged = managed_pages = present_pages - reserved_pages
> 

Nobody is asking for a MemManaged field, we're asking for consistency in 
MemTotal as exported by /proc/meminfo and 
/sys/devices/system/node/node*/meminfo.  In my opinion, this should be the 
amount of RAM installed on the system regardless of the amount of memory 
reserved, i.e. the current /sys/devices/system/node/node*/meminfo 
semantics.  There is no implicit guarantee that memory in MemTotal can be 
allocated by the buddy allocator.

So how about we just make the MemTotal in /proc/meminfo coincide with 
these semantics?

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]