3 ms·
I don't see how parallelism could work with stat() in general, since the OS has to keep the FS structures consistent and ultimately there is only one disk to re
by userbinator 5y ago
I don't see how parallelism could work with stat() in general, since the OS has to keep the FS structures consistent and ultimately there is only one disk to read from, unless you have RAID.
- vidarh 5y agoDepends how much of the overhead is context switches vs. the disk IO. Really something that needs benchmarking.
- mhio 5y agoFilling the disk queue usually helps with the IO throughout part, sequential stats not attempting to queue requests will never saturate the bandwidth of a modern device. There's also the page cache involved for reads, so it can be read while actual IO is queued.