Re: [PATCH 08/29] mm: kmem_cache_objs_to_pages()

2007-02-22 Thread Pekka Enberg
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

Re: [PATCH 08/29] mm: kmem_cache_objs_to_pages()

2007-02-22 Thread Pekka Enberg
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

Re: [PATCH 08/29] mm: kmem_cache_objs_to_pages()

2007-02-22 Thread Peter Zijlstra
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).

Re: [PATCH 08/29] mm: kmem_cache_objs_to_pages()

2007-02-22 Thread Peter Zijlstra
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). So how

Re: [PATCH 08/29] mm: kmem_cache_objs_to_pages()

2007-02-22 Thread Pekka Enberg
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

Re: [PATCH 08/29] mm: kmem_cache_objs_to_pages()

2007-02-22 Thread Pekka Enberg
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

Re: [PATCH 08/29] mm: kmem_cache_objs_to_pages()

2007-02-21 Thread Pekka Enberg
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

[PATCH 08/29] mm: kmem_cache_objs_to_pages()

2007-02-21 Thread Peter Zijlstra
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

[PATCH 08/29] mm: kmem_cache_objs_to_pages()

2007-02-21 Thread Peter Zijlstra
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,

Re: [PATCH 08/29] mm: kmem_cache_objs_to_pages()

2007-02-21 Thread Pekka Enberg
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