Never increase maxdirsize beyond 3% of physical memory.A volume with 30.72MB maxdirsize can hold up to 416808 CIFS files or 1,006,632 NFS files.
Calc below:
Memory * max files per wafl_dir_block / conversion = # of files
31457.28KB * 128 wafl_name_dir_entires * 1MB/4KB = 1,006,632 nfs files
With maxdirsize of 31,457, a directory can hold 1,006,632 files without CIFS enabled.