0

I have a 7 TB file that is tared with lz4 compression. It takes about 8 hours to extract. is there a faster way to do this?

This is the command I use:

lz4 -d /mnt/tmp/7TBFile.lz4 | tar -xvf -
  • Maybe you should try `lz4 -dc /mnt/tmp/7TBFile.lz4 | tar -xvf -`. The command you use only decompress the file . – Romeo Ninov Aug 05 '22 at 17:17
  • 1
    See this question: https://stackoverflow.com/questions/24063846/how-to-use-tar-with-lz4 You may get a performance boost by avoiding pipes and letting tar handle lz4 . . . or you may not (depends on how tar handles the ipc) – Brandon Xavier Aug 05 '22 at 18:42
  • @BrandonXavier, about pipes: check this answer https://unix.stackexchange.com/a/361906/101265 Actually pipe make the things run in parallel (and speedup the process). – Romeo Ninov Aug 06 '22 at 04:49

0 Answers0