Re: kmem_cache_create loop for find the proper gfporder

2007-03-25 Thread Pekka Enberg
On 3/25/07, Bin Chen <[EMAIL PROTECTED]> wrote: It is done by increase gfporder for low number to high(possibly 0 to MAX_GFP_ORDER). But why increase the gfporder(or slab size) can decrease the internal fragmentation?) A simple example, suppose the slab management stuff is kept off-slab, if the

Re: kmem_cache_create loop for find the proper gfporder

2007-03-25 Thread Pekka Enberg
On 3/25/07, Bin Chen [EMAIL PROTECTED] wrote: It is done by increase gfporder for low number to high(possibly 0 to MAX_GFP_ORDER). But why increase the gfporder(or slab size) can decrease the internal fragmentation?) A simple example, suppose the slab management stuff is kept off-slab, if the

kmem_cache_create loop for find the proper gfporder

2007-03-24 Thread Bin Chen
I have some doubts about the loop to find the gfporder of a cache. For the code below, its main purpose is to find a gfporder value that can make the internal fragmentation less that 1/8 of the total slab size. It is done by increase gfporder for low number to high(possibly 0 to MAX_GFP_ORDER).

kmem_cache_create loop for find the proper gfporder

2007-03-24 Thread Bin Chen
I have some doubts about the loop to find the gfporder of a cache. For the code below, its main purpose is to find a gfporder value that can make the internal fragmentation less that 1/8 of the total slab size. It is done by increase gfporder for low number to high(possibly 0 to MAX_GFP_ORDER).