4 ms·
When you created the files they would still be cached by ZFS, so it's going to skip reading them from the disks. Took me 9.9 seconds to get a directory listing
by Periodic 17y ago
When you created the files they would still be cached by ZFS, so it's going to skip reading them from the disks.
Took me 9.9 seconds to get a directory listing for 65336 files over NFS after creating them over NFS on another system.
That's still no where near as bad as the author states, but I had those files in my cache on the file server, I bet.
- Andys 17y agoPerhaps he did "ls -l".. which requires a stat() for each file. but even in the worst case scenario, that's 10ms for each roundtrip.. way more than it should be: something sounds broken with his setup.
- slice 17y agoI managed to get to about 30 seconds with 65,000 files on a local ext3 file system. The file names where all of the same length and with a ~100 character long identical prefix. I re-mounted the file system before the ls to eliminate caching.