This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: RFC: ldconfig speedup
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: Roland McGrath <roland at redhat dot com>, "GNU C. Library" <libc-alpha at sources dot redhat dot com>, Michael Schroeder <mls at suse dot de>
- Date: Sat, 30 Jun 2007 22:53:54 +0200
- Subject: Re: RFC: ldconfig speedup
- References: <20070627190237.3CF8A4D05E6@magilla.localdomain> <m3y7i5yzjk.fsf@gromit.moeb>
* 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?
(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.)