RHEL6, 7 or 8: find very slow as compared with RHEL5 due to excessive newfstatat system calls

Solution Verified - Updated -


  • When doing a find on a NFS with a lot of files it takes a long time. On the same filesystem mounted to a RHEL5.11 system it is much faster.
  • "strace -c" on the find shows that "newfstatat" is called on average twice per file and I don't see this on the RHEL5 server.


  • Red Hat Enterprise Linux 6, 7 or 8
    • kernels 2.6.32-358.el6 or above
  • 'find' command to locate files ("-type f" option)
  • Directories containing many thousands of files
  • NFSv3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content