On 2/22/07, Pekka Enberg <[EMAIL PROTECTED]> wrote:
So you are only interested in rough estimation of how much many pages
you need for a given amount of objects? Why not use ksize() for that
then?
Uhm, I obviously meant, why not expose obj_size() instead.
-
To unsubscribe from this list: send t
Hi Peter,
On Wed, 2007-02-21 at 17:47 +0200, Pekka Enberg wrote:
> So how does this work? You ask the slab allocator how many pages you
> need for a given number of objects and then those pages are available
> to it via the page allocator? Can other users also dip into those
> reserves?
On 2/2
On Wed, 2007-02-21 at 17:47 +0200, Pekka Enberg wrote:
> Hi Peter,
>
> On 2/21/07, Peter Zijlstra <[EMAIL PROTECTED]> wrote:
> > Provide a method to calculate the number of pages needed to store a given
> > number of slab objects (upper bound when considering possible partial and
> > free slabs).
Hi Peter,
On 2/21/07, Peter Zijlstra <[EMAIL PROTECTED]> wrote:
Provide a method to calculate the number of pages needed to store a given
number of slab objects (upper bound when considering possible partial and
free slabs).
So how does this work? You ask the slab allocator how many pages you
Provide a method to calculate the number of pages needed to store a given
number of slab objects (upper bound when considering possible partial and
free slabs).
Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]>
---
include/linux/slab.h |1 +
mm/slab.c|6 ++
2 files changed