From: Andi Kleen <ak@suse.de>
To: linux@horizon.com
Cc: linux-kernel@vger.kernel.org, clameter@sgi.com
Subject: Re: [RFC] Simple Slab: A slab allocator with minimal meta information
Date: 14 Aug 2006 13:47:10 +0200 [thread overview]
Message-ID: <p73d5b3a69t.fsf@verdi.suse.de> (raw)
In-Reply-To: <20060814011056.2381.qmail@science.horizon.com>
linux@horizon.com writes:
[this time without typo in cc, sorry if you get it twice]
> Um, with all this discussion of keeping caches hot, people do remember
> that FIFO handling of free blocks *greatly* reduces fragmentation, right?
>
> That's an observation from malloc implementations that support merging
> of any two adjacent blocks, but at least some of it should apply to slab
> pages that require multple adjacent free objects to be returned to the
> free-page pool.
Interesting observation.
slab is a zone allocator and stores objects of the same type
into zones. The theory behind that is that normally that objects of the same
type have similar livetimes and that should in theory avoid
many fragmentation problems.
However some caches like dcache/inode cache don't seem to follow
that, and kmalloc which mixes all kinds of objects into the same
caches especially doesn't.
> Especially in a memory-constrained embedded environment, I'd think
> space-efficiency would be at least as important as time.
For memory-constrained environments there is already the optional
specialized "slob" allocator.
That said even big systems have problems with fragmentation.
It is good that the basic assumptions behind slabs are being
revisited now. I suspect some of them might be obsolete.
-Andi
next prev parent reply other threads:[~2006-08-14 11:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-14 1:10 [RFC] Simple Slab: A slab allocator with minimal meta information linux
2006-08-14 11:47 ` Andi Kleen [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-08-10 0:52 Christoph Lameter
2006-08-10 2:07 ` Matt Mackall
2006-08-10 5:01 ` KAMEZAWA Hiroyuki
2006-08-10 5:13 ` Christoph Lameter
2006-08-10 5:44 ` KAMEZAWA Hiroyuki
2006-08-10 5:44 ` Christoph Lameter
2006-08-10 5:56 ` KAMEZAWA Hiroyuki
2006-08-10 6:13 ` KAMEZAWA Hiroyuki
2006-08-10 15:25 ` Christoph Lameter
2006-08-10 18:47 ` Manfred Spraul
2006-08-10 18:52 ` Christoph Lameter
2006-08-11 17:21 ` Christoph Lameter
2006-08-11 20:33 ` Manfred Spraul
2006-08-11 21:02 ` Christoph Lameter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=p73d5b3a69t.fsf@verdi.suse.de \
--to=ak@suse.de \
--cc=clameter@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@horizon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox