Re: [patch 07/10] SLUB: Avoid referencing kmem_cache structure in __slab_alloc

2007-10-30 Thread Andrew Morton
On Sat, 27 Oct 2007 20:32:03 -0700 Christoph Lameter <[EMAIL PROTECTED]> wrote: > There is the need to use the objects per slab in the first part of > __slab_alloc() which is still pretty hot. Copy the number of objects > per slab into the kmem_cache_cpu structure. That way we can get the > value

Re: [patch 07/10] SLUB: Avoid referencing kmem_cache structure in __slab_alloc

2007-10-28 Thread Pekka J Enberg
On Sat, 27 Oct 2007, Christoph Lameter wrote: > There is the need to use the objects per slab in the first part of > __slab_alloc() which is still pretty hot. Copy the number of objects > per slab into the kmem_cache_cpu structure. That way we can get the > value from a cache line that we already n

[patch 07/10] SLUB: Avoid referencing kmem_cache structure in __slab_alloc

2007-10-27 Thread Christoph Lameter
There is the need to use the objects per slab in the first part of __slab_alloc() which is still pretty hot. Copy the number of objects per slab into the kmem_cache_cpu structure. That way we can get the value from a cache line that we already need to touch. This brings the kmem_cache_cpu structure