This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: ldconfig speedup


-----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-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]