[PATCH] Re: RFC: ldconfig speedup

Jakub Jelinek jakub@redhat.com
Sat Jul 28 17:57:00 GMT 2007


On Fri, Jul 27, 2007 at 07:08:55PM +0200, Andreas Jaeger wrote:
> 
> What kind of testing have you done?  I compared the /etc/ld.so.cache
> From the old ldconfig with the new one - and run the new ldconfig
> without the aux cache and then several times with the new one.  I first
> had a bug where the results were not exactly the same and I lost some
> entries. ;-(

Yeah, that's exactly what I tested, compare /etc/ld.so.cache generated
by non-patched ldconfig with patched ldconfig when
/var/cache/ldconfig/aux-cache was missing, then with the cache, then with
-i.  I also looked at strace output to see how the caching was effective.
When working on the patch I had a buglet in it too which caused all
SONAMEs returned from the aux cache contain unitialized memory data,
it created wonderful symlinks all over my */lib{,64} directories.
But the version I posted seemed to work well.

	Jakub



More information about the Libc-alpha mailing list