This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/167] malloc() eats excess ram
- From: "bluefoxicy at linux dot net" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 16 May 2004 20:37:52 -0000
- Subject: [Bug libc/167] malloc() eats excess ram
- References: <20040516194648.167.bluefoxicy@linux.net>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From bluefoxicy at linux dot net 2004-05-16 20:37 -------
Created an attachment (id=82)
--> (http://sources.redhat.com/bugzilla/attachment.cgi?id=82&action=view)
msztest.c -- Testcase to show how to keep the heap really huge
Should upload this too. This shows an example, albeit a controlled example, of
a program allocating a huge heap, then holding it for the sake of 100 bytes of
memory. If it were mmap() rather than current malloc(), it would free the 100M
back to the system.
Run top, then run this in a terminal next to it, and watch the state of its
memory usage at every point where it sleeps.
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=167
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.