I'm seeing a strange performance problem on one of our systems.
When running a find on one filesystem, there are long hangs (up to 30
seconds plus) during the find. Strace reveals that some of the getdents
calls are taking that much time!
From 'strace -T':
getdents64(0x4, 0x805ed28, 0x1000, 0x805ed28) = 48 <35.798045>
Oddly enough, not all of them are taking so long:
getdents64(0x4, 0x805ed28, 0x1000, 0x805ed28) = 48 <0.000016>
getdents64(0x4, 0x8059cd0, 0x1000, 0x8059cd0) = 240 <0.000017>
The system is otherwise almost completely idle during the find.
Nothing else is putting much of a demand on the filesystem. As you ...