Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 1997 05:40:21 -0800
From:      David Greenman <dg@root.com>
To:        proff@suburbia.net
Cc:        hackers@freebsd.org
Subject:   Re: SLAB stuff, and applications to current net code (fwd) 
Message-ID:  <199701261340.FAA06943@root.com>
In-Reply-To: Your message of "Sun, 26 Jan 1997 23:57:47 %2B1100." <19970126125747.19508.qmail@suburbia.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
>> >I not sure how much benefit the SLAB allocator would offer over what we
>> >have.  There's some extra overhead in maintaining a SLAB.
>> >
>> >BTW, SLAB is used in Solaris.
>> 
>>    The allocator in BSD is designed to be as fast as possible and trades
>> space efficiency for performance. I'm very skeptical that a SLAB allocator
>> would be any faster than the current allocation algorithm, although it
>> would likely be more space efficient.
...
>I presume the idea is that the cache efficiency of small allocations
>would be substantially improved?

   We already order the allocations to take advantage of the cache by putting
freed chunks at the head of the list within the bucket (thus making them the
first candidates for re-allocation). This isn't perfect, of course, but it
does get you most of the way there.

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701261340.FAA06943>