diff options
author | Roman Gushchin | 2019-07-12 06:00:13 +0200 |
---|---|---|
committer | Linus Torvalds | 2019-07-12 20:05:47 +0200 |
commit | 97105f0ab7b877a8ece2005e214894e93793950c (patch) | |
tree | b286da5390c53afa0adca840b05265aa7cccbb32 /mm/memory-failure.c | |
parent | mm: smaps: split PSS into components (diff) | |
download | kernel-qcow2-linux-97105f0ab7b877a8ece2005e214894e93793950c.tar.gz kernel-qcow2-linux-97105f0ab7b877a8ece2005e214894e93793950c.tar.xz kernel-qcow2-linux-97105f0ab7b877a8ece2005e214894e93793950c.zip |
mm: vmalloc: show number of vmalloc pages in /proc/meminfo
Vmalloc() is getting more and more used these days (kernel stacks, bpf and
percpu allocator are new top users), and the total % of memory consumed by
vmalloc() can be pretty significant and changes dynamically.
/proc/meminfo is the best place to display this information: its top goal
is to show top consumers of the memory.
Since the VmallocUsed field in /proc/meminfo is not in use for quite a
long time (it has been defined to 0 by a5ad88ce8c7f ("mm: get rid of
'vmalloc_info' from /proc/meminfo")), let's reuse it for showing the
actual physical memory consumption of vmalloc().
Link: http://lkml.kernel.org/r/20190417194002.12369-3-guro@fb.com
Signed-off-by: Roman Gushchin <guro@fb.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory-failure.c')
0 files changed, 0 insertions, 0 deletions