[PATCH] Use madvise in glibc
Ulrich Drepper
drepper@redhat.com
Fri Jul 23 19:29:00 GMT 2004
You need data which shows that this is actually buying anything. I have
experimented with this some time back and nothing really made a
difference. Maybe it made things even worse. Consider unstripped DSOs
of which only a fraction is actually mapped into memory. And large DSOs
where only little pieces of code and data are used.
madvise etc would make sense if we could determine the frequently used
parts of DSOs and get those functions/data close together in the DSO.
Then these regions could be prefaulted or madvise can be used. But a
general madvise is probably not buying anything. Well, prove me wrong.
--
⧠Ulrich Drepper ⧠Red Hat, Inc. ⧠444 Castro St ⧠Mountain View, CA â
More information about the Libc-alpha
mailing list