This is a little tip to speed up creating tar archive.
By default tar using gzip to compress and if you look at htop output, gzip use only one cpu.
Tar have an argument –use-compress-program, which allow us to set another gzip-ing program.
The most known mutlithreading gzip alternatives is pigz.
So, the tar usage should looks like:
tar --use-compress-program=pigz -cf
Under the cut you found the compression time difference between gzip and pigz Continue reading