From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 5 May 2007 21:59:38 -0700 (PDT) From: Christoph Lameter Subject: Re: Support concurrent local and remote frees and allocs on a slab. In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: akpm@linux-foundation.org Cc: linux-mm@kvack.org List-ID: On Fri, 4 May 2007, Christoph Lameter wrote: > About 5-10% performance gain on netperf. Hmmmm... I can take this even further and get another 20% if I take the critical components of slab_alloc and slab_free and inline them into kfree, kmem_cache_alloc and friends. I went from 5.8MB without this patch to now 8 MB/sec with this patch and the rather ugly inlining. The compiler really creates stupid code and does a lot of stack ops because slab_alloc and slab_free use too many variables right now. We should be able to take this even further if we allow arch code to provide ASM versions of the fast path. -- 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