chris@psychofx.com (Chris Miles) writes
Hi all, are there any limits to the maximum number of files (or subdirectories) a Netapp NFS mounted directory can handle?
In our case (if it matters) we are looking at Linux 2.4.18 using NFS v3/tcp to a Netapp running 6.1.2R3.
We are thinking of a directory with 500,000+ files in it.
Look at "options wafl.maxdirsize" (or, in more recent ONTAP versions, "vol options maxdirsize"). The default is 10 MB, and a directory that size will hold 327680 entries if the names are small enough: less than that otherwise.
You can increase the value, but directories this size are not really a very good idea, even with the ONTAP fast lookup enhancements.
Whether the Linux client matters depends on what it thinks of caching NFS readdir results of that size. Not with great enthusiasm, I would guess. :-)
Does your application really need a flat directory structure this wide?
Chris Thompson Email: cet1@cam.ac.uk