[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0703071022230.22448@schroedinger.engr.sgi.com>
Date: Wed, 7 Mar 2007 10:23:36 -0800 (PST)
From: Christoph Lameter <clameter@....com>
To: Matt Mackall <mpm@...enic.com>
cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>, akpm@...l.org,
Marcelo Tosatti <marcelo@...ck.org>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org,
Manfred Spraul <manfred@...orfullife.com>
Subject: Re: [SLUB 2/3] Large kmalloc pass through. Removal of large general
slabs
On Wed, 7 Mar 2007, Matt Mackall wrote:
> > I have a patch here to make this dependent on page size using a loop. The
> > problem is that it does not work with some versions of gcc. On the
> > other hand we really need this since one arch can
> > actually have an order 22 page size!
>
> You don't need a loop, you need an if (s >= PAGE_SIZE) at the head of
> your static list.
As I just said: PAGE_SIZE may be quite high. So I would need a looong
static list. We already check for the size being bigger than 2048 which is
half the usual page size. Anything larger will get passed through.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists