Useful with Docker, see https://github.com/moby/moby/pull/35697 I’ve integrated pigz into different build and CI pipelines a few times. Don’t expect wonders since some steps still need to run serially, but a few seconds here and there might still add up to a few minutes on a large build.
Am I reading correctly that Docker just automatically uses pigz if it’s in the system path? I’ve used both for years and had no idea. I’m definitely going to make sure it’s installed in CI pipelines going forward, I know of some bloated image builds it will definitely help with!
Pigz: Parallel gzip for modern multi-processor, multi-core machines
41–50 of 197 posts
Re: Pigz: Parallel gzip for modern multi-processor, multi-core machines
#42Re: Pigz: Parallel gzip for modern multi-processor, multi-core machines
#43John Carmack just had a tweet today on this problem: >I started a tar with bzip command on a big directory, and it has been running for two days. Of course, it is only using 1.07 cores out of the 128 available. The Unix pipeline tool philosophy often isn’t aligned with parallel performance. https://twitter.com/ID_AA_Carmack/status/1656708636570271768...
http://compression.great-site.net/pbzip2/
which should solve the 'my cores are idle' issue.
Re: Pigz: Parallel gzip for modern multi-processor, multi-core machines
#44I was mostly interested in the name and the pronunciation section kind of ruined it for me
Re: Pigz: Parallel gzip for modern multi-processor, multi-core machines
#45Re: Pigz: Parallel gzip for modern multi-processor, multi-core machines
#46John Carmack just had a tweet today on this problem: >I started a tar with bzip command on a big directory, and it has been running for two days. Of course, it is only using 1.07 cores out of the 128 available. The Unix pipeline tool philosophy often isn’t aligned with parallel performance. https://twitter.com/ID_AA_Carmack/status/1656708636570271768...
But pigz shows that the unix pipeline philosophy works just fine. (of course compressing before tarring is probably better than compressing the tarred file, but that should be pipelinable as well)
TIL: you can use method 93 - Zstandard (zstd) Compression - with ZIPs
Re: Pigz: Parallel gzip for modern multi-processor, multi-core machines
#47Because I can can never remember to use pigz I have to have this in my dotfiles: function ccm() { tar -cf - $1 | pigz > $1.tar.gz }
Re: Pigz: Parallel gzip for modern multi-processor, multi-core machines
#48> exploits multiple processors and multiple cores to the hilt when compressing data As s side note, this isn't always desirable for this class of coders. In some scenarios (like web server) you might want to favor throughput over response time.
Re: Pigz: Parallel gzip for modern multi-processor, multi-core machines
#49Earlier quoted context omitted.
With all due respect to Carmack he’s using bzip in 2023, that’s pretty outdated on every front.
You'd be surprised. There are some workloads - for me, it's geospatial data - where bzip2 clobbers all of the alternatives.
Do you know if there are any tests showing which compressor is better (compression wise) for which data?