Compression

pigz – parallel implementation of gzip

pigz (parallel implementation of gzip) is a fully functional replacement for gzip that uses multiple processors and multiple cores to the hilt when compressing data.

The software compresses using threads to make use of multiple processors and cores.The input is broken up into 128 KB chunks with each compressed in parallel. The individual check value for eachc hunk is also calculated in parallel. The compressed data is written in order to the output, and a combined check value is calculated from the individual check values.

Decompression can’t be parallelized. pigz uses a single thread (the main thread) for decompression, but can create three other threads for reading, writing, and check calculation, which can speed up decompression under some circumstances.

Key Features

  • Compressed data format generated is in the gzip, zlib, or single-entry zip format using the deflate compression method.
  • Regulate the speed of compression. There’s the option of obtaining a few extra percent of compression using the zopfli algorithm.
  • Compress blocks independently for damage recovery.
  • Compress to PKWare zip (.zip) single entry format.
  • Compress to zlib (.zz) format.
  • Allow up to n processes (default is the number of online processors).
  • Define maximum number of split blocks.

Website: zlib.net/pigz
Support: Manual, GitHub code repository
Developer: Mark Adler
License: Meets the requirements of open source

pigz is written in C. Learn C with our recommended free books and free tutorials.


Related Software

Compression Tools
LZ4Focused on compression and decompression speed
ZstandardFast compression algorithm, providing high compression ratios
brotliGeneric-purpose lossless compression algorithm
lzopFile compressor favoring speed over compression ratio
pigzParallel implementation of gzip
ouchCLI tool for compressing and decompressing for various formats
pixzParallel, indexed xz compressor
gzipProvides the standard GNU file compression utilities
BZip3Spiritual successor to BZip2
bzip2Freely available, patent free, high-quality data compressor
PBZIP2Parallel implementation of bzip2
lrzipAchieve very high compression ratios and speed when used with large files
lbzip2Multi-threaded implementation of bzip2, suited for serial and parallel processing
plzipMassively parallel lossless data compressor
p7zip-zstdp7zip fork with additional codecs and improvements
7-ZipFile archiver with a high compression ratio
ncompressFast, simple LZW file compressor
PXZRuns LZMA compression on multiple cores and processors
crabzLike pigz but written in Rust

Read our verdict in the software roundup.

Multi-Core Compression Tools
ZstandardFast compression algorithm, providing high compression ratios
pigzParallel implementation of gzip. It's a fully functional replacement for gzip
pixzParallel indexing XZ compression, fully compatible with XZ. LZMA and LZMA2
PBZIP2Parallel implementation of the bzip2 block-sorting file compressor
lrzipCompression utility that excels at compressing large files
lbzip2Parallel bzip2 compression utility, suited for serial and parallel processing
plzipMassively parallel (multi-threaded) lossless data compressor based on lzlib
crabzLike pigz but written in Rust
PXZRuns LZMA compression on multiple cores and processors

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments