This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11431] consider madvise for ld.so
- From: "drepper at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 4 Apr 2010 02:27:27 -0000
- Subject: [Bug libc/11431] consider madvise for ld.so
- References: <20100325143324.11431.fche@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From drepper at redhat dot com 2010-04-04 02:27 -------
And exactly how should madvise be used?
Take into account that there are a large number of DSOs and that they are
sometimes used. Most of the time only a small fraction of any DSO is used in a
program. Using madvise to get the DSO loaded will likely waste a lot of resources.
I've been thinking about adding a special flag to system libraries so that at
least they can be handled this way. But it is a bad idea to do this in general.
If you want to convince me try using a large number of programs using lots of
DSOs in an OS environment with limited memory.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://sourceware.org/bugzilla/show_bug.cgi?id=11431
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.