I am compiling the following program:

#include <stdlib.h>
main() { printf("0x%x\n", malloc(1)); }

in 32-bit 7.1-PRERELEASE and get 0x28201100 which is ~673MB of 4GB address space or 16%.

When I run the same program with the google malloc (from devel/google-perftools) I get much lower value 0x80aa0e8 which is ~135MB of 4GB address space or ~3%.

Why FreeBSD memory allocator wastes such a high percentage of the memory space?

Yuri

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to