[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
it-tricks [2023/03/14 15:27]
vodrazka [TAR archive mounting]
it-tricks [2023/03/14 15:46]
vodrazka [TAR archive mounting]
Line 100: Line 100:
  
 ===== TAR archive mounting ===== ===== TAR archive mounting =====
-If you work with data consisting of many small files, you **should** store them in tar archives to save inodes. There is a way to mount a tar archive to a specific directory in the simmilar way you mount ISO image. You can use this command to //mount// (read-only) ARCHIVE to DIRECTORY:+If you work with data consisting of many small files, you **should** store them in tar archives to save inodes and use LUSTRE filesystem efficiently. There is a way to mount a tar archive to a specific directory in a similar way you would mount an ISO image. You can use this command to //mount// (read-only) ARCHIVE (possibly compressed) to DIRECTORY:
  
   /opt/bin/tarmount ARCHIVE DIRECTORY   /opt/bin/tarmount ARCHIVE DIRECTORY
Line 107: Line 107:
  
   /opt/bin/tarmount -u DIRECTORY   /opt/bin/tarmount -u DIRECTORY
 +
 +If you mount your data in this way, there is only one //open// operation instead of thousands or millions of such operations when opening each file separately. This will positively affect runtime when your data is stored on the LUSTRE filesystem.
  
 Run the command with //--help// option to see instructions for more advanced usage. The original tool can be obtained [[https://github.com/mxmlnkn/ratarmount | here]]. Run the command with //--help// option to see instructions for more advanced usage. The original tool can be obtained [[https://github.com/mxmlnkn/ratarmount | here]].

[ Back to the navigation ] [ Back to the content ]