About this time last year,
mia
requested that some programs be packaged in
this thread
. Among them was something called
pigz: a Parallel Implementation of GZip
.
More recently I was looking for something simple to port and package, and this seemed to fit the bill - especially as testing it would be a good excuse for firing up the Origin. I've done all that and uploaded neko_pigz-2.3.tardist to ftp.nekochan.net/incoming. I'd appreciate a cautious eye from somebody familiar with the packaging process. This package includes release notes, spec and idb file, and the original sources and patches so it should be possible to see where I might have gone wrong.
I tested the program itself with a 1.1GB sendmail logfile. Stock /usr/sbin/gzip took an average of 244.4 seconds over three runs to compress at level 9 ("gzip -9") on an Origin 300 @ 600MHz. Limited to one thread pigz averaged 243.1 seconds on the same system, and when using all 8 CPUs it averaged 36.9 seconds. Increasing the buffer/chunk size changed average timing as follows: 256KB, 35.1 sec; 1MB, 34.4 sec.
Uncompressing the gzip output with pigz, using just 1 thread took 24.9 seconds (single run, but typical of others). But the same operation with 8 threads took 32.5 seconds - again a single run, but other runs were within a second higher. During the 8-way decompression runs pigz was typically only using 2/3 to 3/4 of two CPUs, though sometimes that was reflected as roughly that level of usage spread across as many as five CPUs.
For more information about pigz, go to: http://zlib.net/pigz
More recently I was looking for something simple to port and package, and this seemed to fit the bill - especially as testing it would be a good excuse for firing up the Origin. I've done all that and uploaded neko_pigz-2.3.tardist to ftp.nekochan.net/incoming. I'd appreciate a cautious eye from somebody familiar with the packaging process. This package includes release notes, spec and idb file, and the original sources and patches so it should be possible to see where I might have gone wrong.
I tested the program itself with a 1.1GB sendmail logfile. Stock /usr/sbin/gzip took an average of 244.4 seconds over three runs to compress at level 9 ("gzip -9") on an Origin 300 @ 600MHz. Limited to one thread pigz averaged 243.1 seconds on the same system, and when using all 8 CPUs it averaged 36.9 seconds. Increasing the buffer/chunk size changed average timing as follows: 256KB, 35.1 sec; 1MB, 34.4 sec.
Uncompressing the gzip output with pigz, using just 1 thread took 24.9 seconds (single run, but typical of others). But the same operation with 8 threads took 32.5 seconds - again a single run, but other runs were within a second higher. During the 8-way decompression runs pigz was typically only using 2/3 to 3/4 of two CPUs, though sometimes that was reflected as roughly that level of usage spread across as many as five CPUs.
For more information about pigz, go to: http://zlib.net/pigz