Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • You're mostly going to be io bound until the whole filesystem metadata ends up in cache, even with fast nvmes. That will be hard to separate from the context switch overhead you incur for every single directory that find looks into. Anyways, yeah find is logically structured as sequential thing to enable some of the more advanced control options Commented Dec 10, 2023 at 20:46
  • But, hint, sudo perf top -a during operation will show you how much time the CPU cores spend waiting, searching through ext4 data structures, and exchanging between Userland and Kernel-Land Commented Dec 10, 2023 at 20:47
  • @MarcusMüller thank you but see my below answer. Commented Dec 10, 2023 at 21:12