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

Ivan Voras ivoras at fer.hr
Thu Jun 14 16:17:04 UTC 2007


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).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20070614/ffc0d1ac/signature.pgp


More information about the freebsd-hackers mailing list