Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2008 15:31:32 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Peter Schuller <peter.schuller@infidyne.com>
Cc:        Andrew Reilly <andrew-freebsd@areilly.bpc-users.org>, Peter Jeremy <peterjeremy@optushome.com.au>, Poul-Henning Kamp <phk@phk.freebsd.dk>, freebsd-current@freebsd.org, Igor Mozolevsky <igor@hybrid-lab.co.uk>, Kostik Belousov <kostikbel@gmail.com>
Subject:   Re: sbrk(2) broken
Message-ID:  <86prw9hhvf.fsf@ds4.des.no>
In-Reply-To: <863at6j8tr.fsf@ds4.des.no> ("Dag-Erling =?utf-8?Q?Sm=C3=B8rg?= =?utf-8?Q?rav=22's?= message of "Thu\, 10 Jan 2008 11\:04\:00 %2B0100")
References:  <15094.1199751424@critter.freebsd.dk> <200801080237.40379.peter.schuller@infidyne.com> <86tzlonozc.fsf@ds4.des.no> <200801091922.56670.peter.schuller@infidyne.com> <863at6j8tr.fsf@ds4.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help

Dag-Erling Smørgrav <des@des.no> writes:
> Peter Schuller <peter.schuller@infidyne.com> writes:
> > However, in this context it will likely only help partially since you still
> > need a full page to be free (and with a lot of programs many allocations will
> > be significantly smaller than that, and I have to assume no real-life malloc
> > will align all allocations to pages, or the overhead would be extreme).
> Page-aligning every allocation would be supremely stupid, and jemalloc
> does so only for allocations larger than a page.

I misread your "no" as "any", so it seems we are in violent agreement.

However, most allocators these days are zone or slab allocators (or
similar in principle), and are pretty good at minimizing external
fragmentation except for pathological cases, which are suprisingly rare
in practice.

DES
-- 
Dag-Erling Smørgrav - des@des.no



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