This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/11431] consider madvise for ld.so


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]