This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: RFC: ldconfig speedup
- From: Ulrich Drepper <drepper at redhat dot com>
- 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: Wed, 27 Jun 2007 08:54:26 -0700
- Subject: Re: RFC: ldconfig speedup
- References: <20070626172943.654E04D05EE@magilla.localdomain> <ho6459xv6h.fsf@reger.suse.de>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andreas Jaeger wrote:
>> Probably should use 64-bit fields for ino, dev, size.
>
> This gives a larger cache. Using 32-bit might be faster - and I don't
> see a collision probable.
But we have seen such collisions.
>> Should use ctime instead of mtime.
>
> Why ctime and not mtime? Do you think that any modification will not
> touch cached information?
Re-prelinking is only necessary when the file is replaced, not when it
is modified. If you modify it in an incompatible way you're out of luck
anyway.
> I'm using a separate file now (currently hardcoded to
> /etc/ld.so.cache.aux). What is the right configure variable to get
> /var/cache ?
There is none. Just use it. See nscd/nscd.h.
- --
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFGgogy2ijCOnn/RHQRAn+HAKCKhkRbbB6+3A3QNSfcijPyjGbR1QCgqvw9
u9Bh7D20qhzaJsNDImfVeCg=
=OIbb
-----END PGP SIGNATURE-----