This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1541] Poor threaded application performance when using malloc
- From: "sjmunroe at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 1 Nov 2005 17:27:01 -0000
- Subject: [Bug libc/1541] Poor threaded application performance when using malloc
- References: <20051025141150.1541.sjmunroe@us.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From sjmunroe at us dot ibm dot com 2005-11-01 17:27 -------
Yes arenas allocated in brk store page fault once but are effeciently reused.
The problem with large allocations is that the storage allocated with mmap is
unmapped with the free(). So each new allocation that exceeds the MMAP_THRESHOLD
has to be faulted in.
The mmap syscall does not do much work. Most of the effort of allocating the
page and zeroing it out is defered until the page is actually touched the first
time. This is reflected in the profiles attached above.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=1541
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.