Re: [PATCH v2] mm: export NR_SHMEM via sysinfo(2) / si_meminfo() interfaces

2014-06-26 Thread Rik van Riel
On 06/26/2014 04:00 PM, Rafael Aquini wrote: > Historically, we exported shared pages to userspace via sysinfo(2) sharedram > and /proc/meminfo's "MemShared" fields. With the advent of tmpfs, from kernel > v2.4 onward, that old way for accounting shared mem was deemed inaccurate and > we started

[PATCH v2] mm: export NR_SHMEM via sysinfo(2) / si_meminfo() interfaces

2014-06-26 Thread Rafael Aquini
Historically, we exported shared pages to userspace via sysinfo(2) sharedram and /proc/meminfo's "MemShared" fields. With the advent of tmpfs, from kernel v2.4 onward, that old way for accounting shared mem was deemed inaccurate and we started to export a hard-coded 0 for sysinfo.sharedram. Later

[PATCH v2] mm: export NR_SHMEM via sysinfo(2) / si_meminfo() interfaces

2014-06-26 Thread Rafael Aquini
Historically, we exported shared pages to userspace via sysinfo(2) sharedram and /proc/meminfo's MemShared fields. With the advent of tmpfs, from kernel v2.4 onward, that old way for accounting shared mem was deemed inaccurate and we started to export a hard-coded 0 for sysinfo.sharedram. Later

Re: [PATCH v2] mm: export NR_SHMEM via sysinfo(2) / si_meminfo() interfaces

2014-06-26 Thread Rik van Riel
On 06/26/2014 04:00 PM, Rafael Aquini wrote: Historically, we exported shared pages to userspace via sysinfo(2) sharedram and /proc/meminfo's MemShared fields. With the advent of tmpfs, from kernel v2.4 onward, that old way for accounting shared mem was deemed inaccurate and we started to