From owner-freebsd-current@FreeBSD.ORG Thu Jan 10 14:31:42 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1E0916A419 for ; Thu, 10 Jan 2008 14:31:42 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 6435D13C45B for ; Thu, 10 Jan 2008 14:31:42 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 1810B209C; Thu, 10 Jan 2008 15:31:33 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: -0.2/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id F3B672099; Thu, 10 Jan 2008 15:31:32 +0100 (CET) Received: by ds4.des.no (Postfix, from userid 1001) id DB1E28449F; Thu, 10 Jan 2008 15:31:32 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Peter Schuller 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> Date: Thu, 10 Jan 2008 15:31:32 +0100 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 +0100") Message-ID: <86prw9hhvf.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Andrew Reilly , Peter Jeremy , Poul-Henning Kamp , freebsd-current@freebsd.org, Igor Mozolevsky , Kostik Belousov Subject: Re: sbrk(2) broken X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2008 14:31:42 -0000 Dag-Erling Sm=C3=B8rgrav writes: > Peter Schuller writes: > > However, in this context it will likely only help partially since you s= till > > need a full page to be free (and with a lot of programs many allocation= s will > > be significantly smaller than that, and I have to assume no real-life m= alloc > > 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 --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no