On Thu, Apr 24, 2008 at 10:59:10PM +0200, Soeren Sandmann wrote:
Why don't you try this version of your stat-benchmark first? If you
give it the -s option, it will sort the files by inode number first.
I think you will find this should make a significant difference.
If it works, something that would be really great if someone were to
make a generic library which could be used instead of readdir(). I
have something which works as an LD_PRELOAD, but apparently it's been
blowing up on 64-bit systems, and I haven't had time to debug it.
It's probably better to do it as a library which userspace
applications linked against, anyway. Would you or someone you know be
interesed in maybe taking this idea and running with it?
Regards,
- Ted