Multi-core compression on Linux

Currently most machines have two or more nuclei. Therefore, if faster compression is desired, compression tools can be used. multi-core compressionIn this article we present some and a brief example how to use them.

pigz

pigz: gz compressor (gzip)

Compress:

pigz -c file

Decompress:

pigz -d file

Pigz deletes the original file after unzipping it. To prevent it from doing so, add the -k parameter. Also, to recursively compress subdirectories, if they exist, you need to add the -r parameter.

More info: http://zlib.net/pigz/

Pxz

pxz: LZMA compressor (xz)

Compress:

pxz original_file final_file

With the -T parameter you can limit the number of cores to use. For example, T4 limits compression using 4 cores only. It is also important to mention that pxz deletes the original file. To prevent it from doing so, add the -k parameter.

Decompress:

pxz -d file

More info: http://jnovy.fedorapeople.org/pxz/

pbzip2

pbzip2: bz2 compressor (bzip2):

Compress:

pbzip2 -z file

With the -l parameter you can limit the number of cores to use. It is also important to mention that pbzip2 deletes the original file. To prevent it from doing so, add the -k parameter.

Decompress:

lrzip -d file

More info: http://compression.ca/pbzip2/

plzip

plzip: lz compressor (lzip)

Compress:

plzip -c file

plzip deletes the original file. To prevent it from doing so, you must add the -k parameter.

Decompress:

lrzip -d file

More info: http://www.nongnu.org/lzip/plzip.html

lrzip

lrzip: lrz compressor (lrzip)

Compress:

lrzip file

To improve compression and use ZPAQ:

lrzip -z file

For quick compression:

lrzip -l file

To compress a directory:

lrztar directory

Decompress:

lrzip file.lrz

To unzip a compressed directory:

lrzuntar file.tar.lrz

More info: http://ck.kolivas.org/apps/lrzip/

Almost all of the above programs are found in the official repositories of popular Linux distributions. In Arch's case, some of them are in the AUR.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Anonymous said

    A fellow blogger here, found your site via Subrion, and I have a piece of advice:
    write more. Honestly, you seem like you're tailoring the entire article around the video clip. It's evident
    you know a lot, so why don't use your knowledge to write something
    more considerable and keep the video something as supplementary
    (if there at all)?

    My web site ... home refinancing poor credit

  2.   Diego Silverberg said

    In case the flies xD I get used to using only free soft hahaha

  3.   Let's use Linux said

    Well there.

  4.   fernandotatis said

    Greetings, if there is something special about Linux, it is that it allows the hard disk to be free of action as if there were no program, since the program or programs keep taking up space while they are in use, unlike other operating systems like Window, that if they are always taking up disk space, I recommend that you use Linux, perhaps in the first days you will feel a little uncomfortable due to the incompatibility with other operating system programs, but then the advantages will be seen.

  5.   Let's use Linux said

    Okay. Good date.

  6.   Let's use Linux said

    Yep. By?

  7.   Diego Silverberg said

    Are they all free programs?

  8.   Philip Philip said

    Does anyone know if Ark or PeaZip support this type of multi-core compression?

  9.   gabrielix said

    https://github.com/vasi/pixz This is another xz (lzma) version parallel and indexed, for now I leave the link because I do not have the tests against pxz.