Thread (21 messages) 21 messages, 5 authors, 2018-07-17

Re: [PATCH v2 6/7] mm, proc: add KReclaimable to /proc/meminfo

From: Vlastimil Babka <hidden>
Date: 2018-06-19 07:30:11
Also in: linux-mm, lkml

On 06/18/2018 11:33 PM, Andrew Morton wrote:
On Mon, 18 Jun 2018 11:18:07 +0200 Vlastimil Babka [off-list ref] wrote:
quoted
The vmstat NR_KERNEL_MISC_RECLAIMABLE counter is for kernel non-slab
allocations that can be reclaimed via shrinker. In /proc/meminfo, we can show
the sum of all reclaimable kernel allocations (including slab) as
"KReclaimable". Add the same counter also to per-node meminfo under /sys
Why do you consider this useful enough to justify adding it to
/pro/meminfo?  How will people use it, what benefit will they see, etc?
Let's add this:

With this counter, users will have more complete information about
kernel memory usage. Non-slab reclaimable pages (currently just the ION
allocator) will not be missing from /proc/meminfo, making users wonder
where part of their memory went. More precisely, they already appear in
MemAvailable, but without the new counter, it's not obvious why the
value in MemAvailable doesn't fully correspond with the sum of other
counters participating in it.
Maybe you've undersold this whole patchset, but I'm struggling a bit to
see what the end-user benefits are.  What would be wrong with just
sticking with what we have now?
Fair enough, I will add more info in reply to the cover letter.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help