Date: Thu, 14 Jun 2007 10:04:26 -0700 (PDT) From: youshi10@u.washington.edu To: Ivan Voras <ivoras@fer.hr> Cc: hackers@freebsd.org Subject: Re: Reason for doing malloc / bzero over calloc (performance)? Message-ID: <Pine.LNX.4.43.0706141004260.10404@hymn01.u.washington.edu> In-Reply-To: <f4rpkm$2jh$1@sea.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 14 Jun 2007, Ivan Voras wrote: > 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). > > Do you know if that's with malloc or calloc? What portion of the source demonstrates this? -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.43.0706141004260.10404>