RFC: ldconfig speedup
Andreas Jaeger
aj@suse.de
Sun Jul 1 09:02:00 GMT 2007
Florian Weimer <fw@deneb.enyo.de> writes:
> * Andreas Jaeger:
>
>> Flush filesystem cache, create from scratch:
>> # echo 3 > /proc/sys/vm/drop_caches;time ldconfig -i
>>
>> real 0m24.234s
>> user 0m0.148s
>> sys 0m0.408s
>
> Out of curiosity, is this on ext3? Have you tried different file
> systems?
This is ext3, I haven't tried others.
> (I would expect that sorting by the d_ino field returned by readdir
> before touching the files would bring a comparable speed-up, at lesser
> complexity.)
I doubt it - it would still mean reading the libraries itself and the
patch avoids reading the libraries. Sorting by d_ino might help if
there's no cache,
Andreas
--
Andreas Jaeger, Director Platform/openSUSE, aj@suse.de
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Maxfeldstr. 5, 90409 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20070701/572d0d16/attachment.sig>
More information about the Libc-alpha
mailing list