[Devel] [RFC][PATCH 3/3] Tune caches to be accountable or not

Alexey Dobriyan adobriyan at sw.ru
Thu Aug 30 03:02:12 PDT 2007


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.



More information about the Containers mailing list