Reason for doing malloc / bzero over calloc (performance)?

youshi10 at u.washington.edu youshi10 at u.washington.edu
Thu Jun 14 17:04:30 UTC 2007


On Thu, 14 Jun 2007, Ivan Voras wrote:

> youshi10 at 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



More information about the freebsd-hackers mailing list