On Wed, Jul 20, 2005 at 12:26:44PM -0400, Andreas Dilger wrote: > On Jul 19, 2005 16:00 -0600, Jonathan Briggs wrote: > > How about some kind of stat-data readahead logic? If the first two or > > three directory entries are stat'd, queue up the rest (or next > > hundred/thousand) of them. If the disk queue is given the whole pile of > > stat requests at once instead of one at a time, it should be able to > > sort them into a reasonable order. > > > > This might even be a VFS thing to do instead of per-FS. > > This is something I would be very interested in. Having a pipeline of > stats generated when an app does readdir + in-order stat would help > reduce latency a great deal for network filesystems.
What about just adding an asyncron stat to aio ? -- Ragnar Kjørstad Software Engineer Scali - http://www.scali.com Scaling the Linux Datacenter
