On Thu, Aug 30, 2007 at 01:44:12PM +0400, Pavel Emelyanov wrote:
> The /sys/slab/<name>/cache_account attribute controls
> whether the cache <name> is to be accounted or not.
>
> For the reasons described in the zeroth letter kmalloc
> caches are excluded and are not allowed to be merged.
>
> By default no caches are accountable. Simply make
> # echo -n "on" > /sys/slab/<name>cache_account
> to turn accounting on. Maybe its better to make it
> # echo -n "1" > ...
> ?
IMO, echo 1 >/sys/slab/*/account is the best. With obvious changes
in show function.