RHEL6: NFSv3 READDIRPLUS drastically slows down globbing over a NFS directory leading to performance problems

Solution Verified - Updated -

Issue

  • RHEL 6.2 with a standard mount, a glob in a directory containing over 3000 directories takes 218 seconds (nearly four minutes).
  • A mount of the same directory using the nordirplus option to disable the use of readdirplus calls, a glob on the same directory takes only 1.7 seconds
  • As a result of the many READDIRPLUS calls, performance of other processes are affected
  • A touch of a file in a directory with hundreds of thousands of files may take several minutes

Environment

  • Red Hat Enterprise Linux (RHEL) 6
    • RHEL6.2 and RHEL6.3 kernels (others may be affected)
  • NFS client
  • 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