Skip to content
Snippets Groups Projects

Add large # of files section to good practices.

Merged Adam Caprez requested to merge best-practice into master
1 file
+ 10
0
Compare changes
  • Side-by-side
  • Inline
@@ -36,6 +36,16 @@ all the necessary files need to be either moved to a permanent storage, or delet
disk, in your program.** This approach stresses the file system and may cause general issues.
Instead, consider reading and writing large blocks of data in memory over time, or
utilizing more advanced parallel I/O libraries, such as *parallel hdf5* and *parallel netcdf*.
#### Large numbers of files considerations
* **No POSIX file system performs well with an excessive number of files**, as each file operation
requires opening and closing, which is relatively expensive.
* Moreover, network data transfer operations that involve frequent scanning (walking) of every
file in a set for syncing operations (backups, automated copying) can become excessively taxing for
network file systems, especially at scale.
* Large numbers of files can take an inordinate amount of time to transfer in or out of network
file systems during data migration operations.
* **Computing workflows can be negatively impacted by unnecessarily large numbers of file operations**, including file transfers.
## Internal and External Networks
* **Use archives to transfer large number of files.** If you are performing file transfer of
Loading