From owner-freebsd-current@FreeBSD.ORG Wed Jan 9 18:22:46 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 90BAE16A421 for ; Wed, 9 Jan 2008 18:22:46 +0000 (UTC) (envelope-from peter.schuller@infidyne.com) Received: from smtp.infidyne.com (ds9.infidyne.com [88.80.6.206]) by mx1.freebsd.org (Postfix) with ESMTP id 4999013C4E9 for ; Wed, 9 Jan 2008 18:22:46 +0000 (UTC) (envelope-from peter.schuller@infidyne.com) Received: from c-8216e555.03-51-73746f3.cust.bredbandsbolaget.se (c-8216e555.03-51-73746f3.cust.bredbandsbolaget.se [85.229.22.130]) by smtp.infidyne.com (Postfix) with ESMTP id 942F8721C4; Wed, 9 Jan 2008 19:22:44 +0100 (CET) From: Peter Schuller To: freebsd-current@freebsd.org Date: Wed, 9 Jan 2008 19:22:47 +0100 User-Agent: KMail/1.9.7 References: <15094.1199751424@critter.freebsd.dk> <200801080237.40379.peter.schuller@infidyne.com> <86tzlonozc.fsf@ds4.des.no> In-Reply-To: <86tzlonozc.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1233395.7tui3ac4fn"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200801091922.56670.peter.schuller@infidyne.com> Cc: Andrew Reilly , Peter Jeremy , Poul-Henning Kamp , Igor Mozolevsky , Kostik Belousov , Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= 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: Wed, 09 Jan 2008 18:22:46 -0000 --nextPart1233395.7tui3ac4fn Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > Actually, malloc(3) can use madvise(2) to notify the kernel that > arbitrary pages in the arena are unused and can be discarded. The > current implementation will do so if the H option is specified. Ah, interesting. I was not aware of that. However, in this context it will likely only help partially since you still= =20 need a full page to be free (and with a lot of programs many allocations wi= ll=20 be significantly smaller than that, and I have to assume no real-life mallo= c=20 will align all allocations to pages, or the overhead would be extreme). =2D-=20 / Peter Schuller PGP userID: 0xE9758B7D or 'Peter Schuller ' Key retrieval: Send an E-Mail to getpgpkey@scode.org E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org --nextPart1233395.7tui3ac4fn Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHhREADNor2+l1i30RAqrxAKDobi72PKcOBSMlnBQlL0tn4PyuKgCgz3mQ +Hfs+Btk0JT/4Xcs+6ejjS4= =VHnV -----END PGP SIGNATURE----- --nextPart1233395.7tui3ac4fn--