Re: [Lse-tech] [RFC] per cpu slab fix to reduce freemiss

Dipankar Sarma
2002-08-01T13:37:06Z

On Thu, Aug 01, 2002 at 08:31:45AM -0500, Mala Anand wrote:
>
> Dipankar wrote..
> >Isn't it possible to tune the cpucache limit by writing to
> >/proc/slabinfo so that you avoid frequent draining of free objects ?
> >Am I missing something here ?
>
> Are you referring to raising the per cpu array limit? I don't think you
> tune that using /proc/slabinfo. However that does not solve the problem,

Hmm... then what does slabinfo_write()->kmem_tune_cpucache() do ?

> it only delays it. It needs to grow/shrink dynamically based on need. I
> am not only referring to frequently draining of free objects but also
> as a result of this refilling the object array due to subsequent
> allocations and so on.

If draining of free objects become rare, shouldn't refilling of the
object also become rare ?

Thanks
--
Dipankar Sarma <dipankar@in.ibm.com> http://lse.sourceforge.net
Linux Technology Center, IBM Software Lab, Bangalore, India.