Date: Wed, 9 Jan 2008 19:22:47 +0100 From: Peter Schuller <peter.schuller@infidyne.com> To: freebsd-current@freebsd.org Cc: Andrew Reilly <andrew-freebsd@areilly.bpc-users.org>, Peter Jeremy <peterjeremy@optushome.com.au>, Poul-Henning Kamp <phk@phk.freebsd.dk>, Igor Mozolevsky <igor@hybrid-lab.co.uk>, Kostik Belousov <kostikbel@gmail.com>, Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= <des@des.no> Subject: Re: sbrk(2) broken Message-ID: <200801091922.56670.peter.schuller@infidyne.com> In-Reply-To: <86tzlonozc.fsf@ds4.des.no> References: <15094.1199751424@critter.freebsd.dk> <200801080237.40379.peter.schuller@infidyne.com> <86tzlonozc.fsf@ds4.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] > 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 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). -- / Peter Schuller PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@infidyne.com>' Key retrieval: Send an E-Mail to getpgpkey@scode.org E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHhREADNor2+l1i30RAqrxAKDobi72PKcOBSMlnBQlL0tn4PyuKgCgz3mQ +Hfs+Btk0JT/4Xcs+6ejjS4= =VHnV -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801091922.56670.peter.schuller>
