Storage performance: what to avoid
- Avoid having a large number of files in a single directory and rather split files in multiple sub-directories.
- Avoid repetitive
statoperations because it creates a significant load on the file system.
- Do not use
ls -lon large directories, because it is slow. Rather use
ls -lonly for the specific files you need extended information about.