site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) neal olander wrote: Perhaps it's paging? _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... What could free() be doing that could possibly take 1,100 microseconds, and is there any thing I can do to reduce that time? Try not to free it but reuse the same buffer instead. Allocate it not with malloc, but with vm_allocate, then vm_wire it. This avoids paging and bypasses the global malloc lock. It also gives you a nice page-aligned buffer that you can then slice and dice any way you want (e.g. for cache coloring). This email sent to site_archiver@lists.apple.com