From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756427AbZBSJQX (ORCPT ); Thu, 19 Feb 2009 04:16:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753066AbZBSJQK (ORCPT ); Thu, 19 Feb 2009 04:16:10 -0500 Received: from courier.cs.helsinki.fi ([128.214.9.1]:45141 "EHLO mail.cs.helsinki.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752214AbZBSJQJ (ORCPT ); Thu, 19 Feb 2009 04:16:09 -0500 Subject: Re: [patch] SLQB slab allocator (try 2) From: Pekka Enberg 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" In-Reply-To: <20090219085229.954A.A69D9226@jp.fujitsu.com> References: <20090218093858.8990.A69D9226@jp.fujitsu.com> <1234944569.24030.20.camel@penberg-laptop> <20090219085229.954A.A69D9226@jp.fujitsu.com> Date: Thu, 19 Feb 2009 11:16:07 +0200 Message-Id: <1235034967.29813.10.camel@penberg-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.22.3.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > hmhm > OK. my mail was pointless. > > but why? In my understanding, slab framework mainly exist for efficient > sub-page allocation. > the fallbacking of 4K allocation in 64K page-sized architecture seems > inefficient. I don't think any of the slab allocators are known for memory efficiency. That said, the original patch description sums up the rationale for page allocator pass-through: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=aadb4bc4a1f9108c1d0fbd121827c936c2ed4217 Interesting enough, there seems to be some performance gain from it as well as seen by Mel Gorman's recent slab allocator benchmarks. Pekka