From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail202.messagelabs.com (mail202.messagelabs.com [216.82.254.227]) by kanga.kvack.org (Postfix) with SMTP id D7C8F6B00BB for ; Tue, 17 Feb 2009 15:12:24 -0500 (EST) Received: from localhost (smtp.ultrahosting.com [127.0.0.1]) by smtp.ultrahosting.com (Postfix) with ESMTP id 0018C82C4AA for ; Tue, 17 Feb 2009 15:16:20 -0500 (EST) Received: from smtp.ultrahosting.com ([74.213.175.254]) by localhost (smtp.ultrahosting.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id agijnSCSR-gK for ; Tue, 17 Feb 2009 15:16:19 -0500 (EST) Received: from qirst.com (unknown [74.213.171.31]) by smtp.ultrahosting.com (Postfix) with ESMTP id 0B80D82C4AC for ; Tue, 17 Feb 2009 15:16:19 -0500 (EST) Date: Tue, 17 Feb 2009 15:04:51 -0500 (EST) From: Christoph Lameter Subject: Re: [patch] SLQB slab allocator (try 2) In-Reply-To: <84144f020902171143i5844ef83h20cb4bee4f65c904@mail.gmail.com> Message-ID: References: <20090123154653.GA14517@wotan.suse.de> <200902041748.41801.nickpiggin@yahoo.com.au> <20090204152709.GA4799@csn.ul.ie> <200902051459.30064.nickpiggin@yahoo.com.au> <20090216184200.GA31264@csn.ul.ie> <4999BBE6.2080003@cs.helsinki.fi> <1234890096.11511.6.camel@penberg-laptop> <20090217181157.GA2158@cmpxchg.org> <84144f020902171143i5844ef83h20cb4bee4f65c904@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org To: Pekka Enberg Cc: Johannes Weiner , Mel Gorman , Nick Piggin , Nick Piggin , Linux Memory Management List , Linux Kernel Mailing List , Andrew Morton , Lin Ming , "Zhang, Yanmin" List-ID: On Tue, 17 Feb 2009, Pekka Enberg wrote: > >> +#define SLUB_MAX_SIZE (2 * PAGE_SIZE) > > On Tue, Feb 17, 2009 at 8:11 PM, Johannes Weiner wrote: > > This relies on PAGE_SIZE being 4k. If you want 8k, why don't you say > > so? Pekka did this explicitely. > > That could be a problem, sure. Especially for architecture that have 64 K pages. You could likely put a complicated formula in there instead. But 2 * PAGE_SIZE is simple and will work on all platforms regardless of pagesize. -- 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