Re: [PATCH v2 2/2] mm, slab: Show last shrink time in us when slab/shrink is read

From: Michal Hocko
Date: Fri Jul 19 2019 - 02:14:19 EST


On Wed 17-07-19 16:24:13, Waiman Long wrote:
> The show method of /sys/kernel/slab/<slab>/shrink sysfs file currently
> returns nothing. This is now modified to show the time of the last
> cache shrink operation in us.

Isn't this something that tracing can be used for without any kernel
modifications?
--
Michal Hocko
SUSE Labs