This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Re: RFC: ldconfig speedup
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