[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0902190915460.32273@qirst.com>
Date: Thu, 19 Feb 2009 09:19:57 -0500 (EST)
From: Christoph Lameter <cl@...ux-foundation.org>
To: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
cc: Pekka Enberg <penberg@...helsinki.fi>,
Johannes Weiner <hannes@...xchg.org>,
Mel Gorman <mel@....ul.ie>,
Nick Piggin <nickpiggin@...oo.com.au>,
Nick Piggin <npiggin@...e.de>,
Linux Memory Management List <linux-mm@...ck.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Lin Ming <ming.m.lin@...el.com>,
"Zhang, Yanmin" <yanmin_zhang@...ux.intel.com>
Subject: Re: [patch] SLQB slab allocator (try 2)
What could be changed in the patch is to set SLUB_MAX_SIZE depending on
the page size of the underlying architecture.
#define SLUB_MAX_SIZE MAX(PAGE_SIZE, 8192)
So on 4k architectures SLUB_MAX_SIZE is set to 8192 and on 16k or 64k
arches its set to PAGE_SIZE.
And then define
#define SLUB_MAX_KMALLOC_ORDER get_order(SLUB_MAX_SIZE)
which will be 1 on 4k arches and 0 on higher sized arches.
Then also the kmalloc array would need to be dimensioned using
SLUB_MAX_KMALLOC_ORDER.
The definition of SLUB_NAX_KMALLOC_ORDER could be a bit challenging for
the C compiler.
--
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