From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 14 16:17:04 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C2B9616A475 for ; Thu, 14 Jun 2007 16:17:04 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 7958513C468 for ; Thu, 14 Jun 2007 16:17:03 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Hyrzz-0006FD-Dc for freebsd-hackers@freebsd.org; Thu, 14 Jun 2007 18:16:40 +0200 Received: from 78-0-71-116.adsl.net.t-com.hr ([78.0.71.116]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jun 2007 18:16:39 +0200 Received: from ivoras by 78-0-71-116.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jun 2007 18:16:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Thu, 14 Jun 2007 18:16:17 +0200 Lines: 32 Message-ID: References: <20070613080334.GR89502@hoeg.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6B7B45A5406C5DD96ADE7C60" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 78-0-71-116.adsl.net.t-com.hr User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) In-Reply-To: X-Enigmail-Version: 0.94.3.0 Sender: news Subject: Re: Reason for doing malloc / bzero over calloc (performance)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 16:17:04 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6B7B45A5406C5DD96ADE7C60 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable youshi10@u.washington.edu wrote: > Hmmm... I wonder what the Mach kernel in OSX does to allocate memory > then. I'll have to take a look at OpenDarwin's source sometime and see > what it does. Following the link chain from the benchmark link posted in this thread I've come to the information that it's similar to -CURRENT: small allocations are carved from the local pool, big ones from prezeroed pages (from kernel). --------------enig6B7B45A5406C5DD96ADE7C60 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGcWnWldnAQVacBcgRAjZRAKDdNOcmX6zaUuNUqN9gVsN2jQ0TkQCgpHa4 E6oL4kOgo2bBffzDHmPZRKk= =OUXN -----END PGP SIGNATURE----- --------------enig6B7B45A5406C5DD96ADE7C60--