Messages in this thread | | | Date | Thu, 26 May 2022 11:46:23 +0800 | From | Muchun Song <> | Subject | Re: [PATCH v4 6/6] mm: shrinkers: add scan interface for shrinker debugfs |
| |
On Wed, May 25, 2022 at 01:26:00PM -0700, Roman Gushchin wrote: > 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. > > Signed-off-by: Roman Gushchin <roman.gushchin@linux.dev>
Acked-by: Muchun Song <songmuchun@bytedance.com>
Thanks.
| |