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: "tglek at mozilla dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 6 Apr 2010 22:53:41 -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 tglek at mozilla dot com 2010-04-06 22:53 -------
Joannes Weiner just proved me wrong on LKML. madvise(WILLNEED) does not change
the paging behavior at all, I was misinterpreting my logs. All it does is
trigger readahead if sufficient free pages are available in the file cache.
Sounds like one can call madvise from ld.so with few downsides. In the worst
case there will be some file cache thrashing. I'd expect most systems to benefit.
If we take the conservative route, Ulrich, would you agree with triggering
madvise upon encountering a special flag in a file as you described?
--
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.