On Thu, Dec 02, 2004 at 01:25:39PM -0500, Colin Walters wrote: > On Thu, 2004-12-02 at 11:58 -0500, Daniel Veillard wrote: > > On Thu, Dec 02, 2004 at 11:48:56AM -0500, David Zeuthen wrote: > > > Not sure; the big boost really comes from reordering the files on the > > > filesystem - running readahead (which takes 11 seconds) only gives me a > > > > I'm looking into this. a mix of creating a new directory, copying > > the file there, then unlinking, linking and unlinking the new copies to the > > old name is more likely to help. > > Eek. So what happens if I install an RPM while this is happening, or I don't expect this to happen in multiuser. > prelink runs, or...? I think the caching should clearly go in the > kernel; anything else is going to have serious race conditions in some > form. If the kernel has an atomic rename system call then it can be done without race, if not that will be a very serious issue. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@xxxxxxxxxx | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/