This is the mail archive of the libc-alpha@sources.redhat.com 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]

Re: [PATCH] Use madvise in glibc


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 â


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