summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2017-05-03 23:52:42 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-05-04 00:52:08 +0200
commitcf8496ea8020792ea32d0fbec0c140d8de93011a (patch)
treebd45c56ba923b88129d3a67ab60f4e4c45ebbc75 /virt
parentmm: enable MADV_FREE for swapless system (diff)
downloadlinux-cf8496ea8020792ea32d0fbec0c140d8de93011a.tar.xz
linux-cf8496ea8020792ea32d0fbec0c140d8de93011a.zip
proc: show MADV_FREE pages info in smaps
Show MADV_FREE pages info of each vma in smaps. The interface is for diganose or monitoring purpose, userspace could use it to understand what happens in the application. Since userspace could dirty MADV_FREE pages without notice from kernel, this interface is the only place we can get accurate accounting info about MADV_FREE pages. [mhocko@kernel.org: update Documentation/filesystems/proc.txt] Link: http://lkml.kernel.org/r/89efde633559de1ec07444f2ef0f4963a97a2ce8.1487965799.git.shli@fb.com Signed-off-by: Shaohua Li <shli@fb.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Minchan Kim <minchan@kernel.org> Acked-by: Michal Hocko <mhocko@suse.com> Acked-by: Hillf Danton <hillf.zj@alibaba-inc.com> Cc: Hugh Dickins <hughd@google.com> Cc: Rik van Riel <riel@redhat.com> Cc: Mel Gorman <mgorman@techsingularity.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions