aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_vmalloc.c
diff options
context:
space:
mode:
authorRoman Gushchin <[email protected]>2022-06-01 03:22:27 +0000
committerakpm <[email protected]>2022-07-04 01:08:41 +0000
commitbbf535fd6f06b94b9d07ed6f09397a936d4a58d8 (patch)
tree514960834ba6228c6ea318238ba250b0afb4a910 /lib/test_vmalloc.c
parenttools: add memcg_shrinker.py (diff)
downloadkernel-bbf535fd6f06b94b9d07ed6f09397a936d4a58d8.tar.gz
kernel-bbf535fd6f06b94b9d07ed6f09397a936d4a58d8.zip
mm: shrinkers: add scan interface for shrinker debugfs
Add a scan interface which allows to trigger scanning of a particular shrinker and specify memcg and numa node. It's useful for testing, debugging and profiling of a specific scan_objects() callback. Unlike alternatives (creating a real memory pressure and dropping caches via /proc/sys/vm/drop_caches) this interface allows to interact with only one shrinker at once. Also, if a shrinker is misreporting the number of objects (as some do), it doesn't affect scanning. [[email protected]: improve typing, fix arg count checking] Link: https://lkml.kernel.org/r/YpgKttTowT22mKPQ@carbon [[email protected]: fix arg count checking] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Roman Gushchin <[email protected]> Acked-by: Muchun Song <[email protected]> Cc: Christophe JAILLET <[email protected]> Cc: Dave Chinner <[email protected]> Cc: Hillf Danton <[email protected]> Cc: Kent Overstreet <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/test_vmalloc.c')
0 files changed, 0 insertions, 0 deletions