From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 28 Oct 2007 15:12:29 +0200 (EET) From: Pekka J Enberg Subject: Re: [patch 07/10] SLUB: Avoid referencing kmem_cache structure in __slab_alloc In-Reply-To: <20071028033259.992768446@sgi.com> Message-ID: References: <20071028033156.022983073@sgi.com> <20071028033259.992768446@sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Christoph Lameter Cc: Matthew Wilcox , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org List-ID: 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 need to touch. This brings > the kmem_cache_cpu structure up to 4 even words. Reviewed-by: Pekka Enberg -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org