Performance may be impacted on a very large directory structure with few files under it.

Product:

 

Celerra


Description:

 

Performance may be impacted on a very large directory structure with few files under it.

 

Resolution:

 

There may be a situation where a shared folder was created to be used under CIFS or NFS environment for storing of temporary files created by certain application. This application can create and delete a lot of temporary files under that directory.

 

As time passed by, the very large directories can create performance issues due to the CPU usage required to parse.

 

Unfortunately, even after deleting the files and subdirectories that create the very large directory, the directory space is not reclaimed—once expanded, the
size is fixed until the actual directory is deleted.

 

So, the fix for such a condition would be to actually migrate any relevant files/folders from the very large directory and then delete the original directory.

 

# ls -l
total 608

drwxr-xr-x 2 root root 603136 Dec 13 10:32 largedirectory
drwxr-xr-x 2 root root 80 Dec 13 10:32 largedirectory1