[opensuse-factory] Providing alternative packages for bzip2 and gzip
Hi: I have been playing around with newer, multithreaded implementations of bzip2 and gzip and is my impression that we need to provide "update-alternatives" to them, so users are able to select their favorite tool. I came to the conclusion that I have no reason to use the traditional "bzip" when compared to "pbzip2" or gzip when compared to "pigz". attached is a compression and decompression time graph of all this tools to give you an idea ;) Cheers.
Hi; On Thu, Nov 11, 2010 at 5:28 PM, Cristian Rodríguez <yo@cristianrodriguez.net> wrote:
Hi:
I have been playing around with newer, multithreaded implementations of bzip2 and gzip and is my impression that we need to provide "update-alternatives" to them, so users are able to select their favorite tool.
This sounds like a great idea. Regards, ismail -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Thu, Nov 11, 2010 at 12:28:11PM -0300, Cristian Rodríguez wrote:
I have been playing around with newer, multithreaded implementations of bzip2 and gzip and is my impression that we need to provide "update-alternatives" to them, so users are able to select their favorite tool.
Is "update-alternatives" really neccessary? Wouldn't different packages be sufficient? Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
El 11/11/10 13:46, Michael Schroeder escribió:
On Thu, Nov 11, 2010 at 12:28:11PM -0300, Cristian Rodríguez wrote:
I have been playing around with newer, multithreaded implementations of bzip2 and gzip and is my impression that we need to provide "update-alternatives" to them, so users are able to select their favorite tool.
Is "update-alternatives" really neccessary? Wouldn't different packages be sufficient?
I believe it is, as there are tons of scripts/tools that refer bzip2 or gzip with full paths. :-| -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Thu, Nov 11, 2010 at 01:49:18PM -0300, Cristian Rodríguez wrote:
El 11/11/10 13:46, Michael Schroeder escribió:
On Thu, Nov 11, 2010 at 12:28:11PM -0300, Cristian Rodríguez wrote:
I have been playing around with newer, multithreaded implementations of bzip2 and gzip and is my impression that we need to provide "update-alternatives" to them, so users are able to select their favorite tool.
Is "update-alternatives" really neccessary? Wouldn't different packages be sufficient?
I believe it is, as there are tons of scripts/tools that refer bzip2 or gzip with full paths. :-|
My question was more like: do you really need to have both the fast and the slow bzip2 installed in your system? You could also have a "fastbzip2" package that also contains /usr/bin/bzip2 and conflicts with bzip2. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Thu, Nov 11, 2010 at 01:49:18PM -0300, Cristian Rodríguez wrote:
El 11/11/10 13:46, Michael Schroeder escribió:
On Thu, Nov 11, 2010 at 12:28:11PM -0300, Cristian Rodríguez wrote:
I have been playing around with newer, multithreaded implementations of bzip2 and gzip and is my impression that we need to provide "update-alternatives" to them, so users are able to select their favorite tool.
Is "update-alternatives" really neccessary? Wouldn't different packages be sufficient?
I believe it is, as there are tons of scripts/tools that refer bzip2 or gzip with full paths. :-|
Keep It Simple Stupid and package the new binaries as /usr/bin/bzip2 and /usr/bin/gzip then all scripts and tools will work even without update-alternatives. And with zypper it's even possible to switch between the old and the new packages. Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
Hi; On Thu, Nov 11, 2010 at 6:46 PM, Michael Schroeder <mls@suse.de> wrote:
On Thu, Nov 11, 2010 at 12:28:11PM -0300, Cristian Rodríguez wrote:
I have been playing around with newer, multithreaded implementations of bzip2 and gzip and is my impression that we need to provide "update-alternatives" to them, so users are able to select their favorite tool.
Is "update-alternatives" really neccessary? Wouldn't different packages be sufficient?
update-alternatives would allow seamlessly change between pbzip2/bzip2 so that you don't have to modify your existing scripts. Regards, ismail -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Thu, 11 Nov 2010 12:28:11 -0300 Cristian Rodríguez <yo@cristianrodriguez.net> wrote:
I came to the conclusion that I have no reason to use the traditional "bzip" when compared to "pbzip2" or gzip when compared to "pigz".
Do they create identical compressed files? -- Stefan Seyfried "Any ideas, John?" "Well, surrounding them's out." -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
El 11/11/10 19:14, Stefan Seyfried escribió:
Do they create identical compressed files?
apparently, no BUT they are drop in replacements, the files can be used with regular bzip2 or gzip. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Hi; On Fri, Nov 12, 2010 at 12:32 AM, Cristian Rodríguez <crrodriguez@opensuse.org> wrote:
El 11/11/10 19:14, Stefan Seyfried escribió:
Do they create identical compressed files?
apparently, no BUT they are drop in replacements, the files can be used with regular bzip2 or gzip.
AFAIK pbzip2 _does_ produce identical files compared to bzip2. Regards, ismail -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
* İsmail Dönmez <ismail@namtrac.org> [11-11-10 17:37]:
On Fri, Nov 12, 2010 at 12:32 AM, Cristian Rodríguez <crrodriguez@opensuse.org> wrote:
El 11/11/10 19:14, Stefan Seyfried escribió:
Do they create identical compressed files?
apparently, no BUT they are drop in replacements, the files can be used with regular bzip2 or gzip.
AFAIK pbzip2 _does_ produce identical files compared to bzip2.
Not according to the included README. Not "identical" but 100% compatable. The same only different :^). Why not have the pbzip2 package replace bzip2? -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
El 11/11/10 20:07, Patrick Shanahan escribió:
Why not have the pbzip2 package replace bzip2?
User may not want to be bothered by that annoying kernel bug that causes "lag" or jitter when there is a lot of activity on the system... ;) This pbzip thing hits the pipes pretty merciless :-) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On 11/11/2010 05:28 PM, Cristian Rodríguez wrote:
Hi:
I have been playing around with newer, multithreaded implementations of bzip2 and gzip and is my impression that we need to provide "update-alternatives" to them, so users are able to select their favorite tool.
I came to the conclusion that I have no reason to use the traditional "bzip" when compared to "pbzip2" or gzip when compared to "pigz".
attached is a compression and decompression time graph of all this tools to give you an idea ;)
Cheers.
JFYI I've replaced bzip2 with pbzip2 and even on my puny dual core celeron, tar -acf file.tar.bz2 increases speed from, for a 63445k compressed to 13221k file, 23sec to 17sec 26% improvement. Regards Dave P -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (8)
-
Cristian Rodríguez
-
Cristian Rodríguez
-
Dave Plater
-
İsmail Dönmez
-
Lars Müller
-
Michael Schroeder
-
Patrick Shanahan
-
Stefan Seyfried