Directory listing on NFS mount takes excessive time

This document (7021345) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11 Service Pack 2 (SLES 11 SP2)
SUSE Linux Enterprise Server 11 Service Pack 3 (SLES 11 SP3)
SUSE Linux Enterprise Server 11 Service Pack 4 (SLES 11 SP4)

Situation

When attempting a directory list on an NFS mounted file system, the directory list may take an excessive amount of time to complete and be displayed.  This is mainly seen on large directories, where tens of thousands of entries (or more) are present.  Large directories are expected to take more time to complete;  however, the time taken is this case is disproportionate and may grow exponentially, relative to directory size.

Resolution

There are conditions which can cause the NFS readdir or readdirplus process start over.  This is not likely to happen  on small directory listings which can be completed quickly, but it may happen repeatedly in very large directories, especially if other processes are modifying contents of the directory in question.
 
A fix to address this situation was made in upstream Linux kernel 3.11.  However, SLES 11 does not go beyond kernel 3.0.11.  The fix is known as:
 
Commit: 07b5ce8ef2d8 ("NFS: Make nfs_readdir revalidate less often")
 
For SLES 11 SP4, this fix has been backported and is available in maintenance kernel 3.0.101-108.7.
 
SLES 12 already contains the newer kernel and fix.
 
Because SLES 11 SP3 (and older) are no longer in general maintenance, public updates containing this fix are not planned.  However, for those customers with Long Term ServicePack Support (LTSS) contracts, the older code can still be maintained and made available.
 
The same fix is currently being tested in a SLES 11 SP3 LTSS kernel, and is tentatively expected to become available in the LTSS update channel.  However, a target date for completion and release is not known.  In the meantime, LTSS customers who need this fix can open a Service Request with SUSE technical support, to obtain a PTF.  The relevant bug number is 1048232.  A tcpdump of the NFS client machine performing the directory list will be needed, to verify the issue.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7021345
  • Creation Date: 08-Sep-2017
  • Modified Date:28-Sep-2022
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center