On 08/19/2011 01:53 AM, Cristian Rodríguez wrote:
Hi:
I would like to propose replacing (not removing) the default command line tools for compression, specifically "gzip" for "pigz" and "bzip2" for pbzip2. These tools are backward compatible and have dramatically better performance because they do compression in parallel utilizing current multiple CPU machines.
Possible paths to do this
a) Simple adding "update-alternatives" support to all the mentioned tools and let the user to decide, however we install pigz and pbzip2 by default. I do not endorse this way.
b) Building pigz with executable name "gzip" and rename gzip to gnu-gzip, and bzip2 to bzip2.old or something similar. This is the way endorse
c) As these tools are more frecuently used with "tar", make it to prefer the parralel versions, current gnu-tar already tries different implementations when the default ones are not present, would be a matter of altering the order if needed. I take no stance on this way.
comments appreciated.
I've used both of them in script but for pbzip2 I've hit sometimes an real trouble with the -f (force) flag. When a destination file exist, (and you are not root) it failed at a 75% rate. Why and how to debug it? I didn't find time nor a 100% sure path to do that. -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch openSUSE Member & Ambassador GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org