From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with ESMTP id E07466B0047 for ; Wed, 18 Feb 2009 03:09:32 -0500 (EST) Subject: Re: [patch] SLQB slab allocator (try 2) From: Pekka Enberg In-Reply-To: <20090218093858.8990.A69D9226@jp.fujitsu.com> References: <84144f020902171143i5844ef83h20cb4bee4f65c904@mail.gmail.com> <20090218093858.8990.A69D9226@jp.fujitsu.com> Date: Wed, 18 Feb 2009 10:09:29 +0200 Message-Id: <1234944569.24030.20.camel@penberg-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: KOSAKI Motohiro Cc: Christoph Lameter , Johannes Weiner , Mel Gorman , Nick Piggin , Nick Piggin , Linux Memory Management List , Linux Kernel Mailing List , Andrew Morton , Lin Ming , "Zhang, Yanmin" List-ID: Hi! On Wed, 2009-02-18 at 09:48 +0900, KOSAKI Motohiro wrote: > I think 2 * PAGE_SIZE is best and the patch description is needed change. > it's because almost architecture use two pages for stack and current page > allocator don't have delayed consolidation mechanism for order-1 page. Do you mean alloc_thread_info()? Not all architectures use kmalloc() to implement it so I'm not sure if that's relevant for this patch. On Wed, 2009-02-18 at 09:48 +0900, KOSAKI Motohiro wrote: > In addition, if pekka patch (SLAB_LIMIT = 8K) run on ia64, 16K allocation > always fallback to page allocator and using 64K (4 times memory consumption!). Yes, correct, but SLUB does that already by passing all allocations over 4K to the page allocator. I'm not totally against 2 * PAGE_SIZE but I just worry that as SLUB performance will be bound to architecture page size, we will see skewed results in performance tests without realizing it. That's why I'm in favor of a fixed size that's unified across architectures. Pekka -- 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