Using madvise for ld.so

Lubos Lunak l.lunak at suse.cz
Tue Mar 16 12:52:16 CET 2004


On Tuesday 16 of March 2004 12:34, Michael Matz wrote:
> Hi,
>
> following up Lubos' hack in kdeinit and friends to use madvise to speed up
> loading DSOs and his observation that this better belongs inside ld.so I
> did so (thanks to Lubos for fixing a silly error in it).
>
> The patch is for glibc CVS.  With older glibc's the GLRO has to be
> replaced with GL, and the order of the fields in rtld.c has changed a bit.
> I'm sure you'll figure out.  Brings a bit of speed up, ask Lubos for
> details ;)

 I've build a RPM for SUSE 9.0, with the attached patch. The RPM is at 
http://ktown.kde.org/~seli/download/glibc-2.3.2-0.i586.rpm . The wrong 
revision number clearly shows that I'm a lame packager and this is at your 
own risk, and if it blows up your computer and fries your cat, it's your 
fault :). But I use this rpm right now, in fact. The source rpm was 2.3.2-92, 
as available in the FTP version.

 Could somebody give it a try and post some results? Michael says that he 
didn't get that high speedup as I did. Refer to the 'preloading of binaries' 
thread for details.

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld.so-madvise.diff
Type: text/x-diff
Size: 3370 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-optimize/attachments/20040316/ddfc216c/ld.so-madvise.bin


More information about the Kde-optimize mailing list