hubertf's NetBSD Blog
Send interesting links to hubert at feyrer dot de!
[20050720] Large file compression: gzip < bzip2 < rzip
I haven't heared of rzip before either, but after someone mentioned it on the g4u list when the topic came to compression of filesystem images (i.e. large files), I had a look. Rzip claims to operates best at "large" files, so I tried to compress a 512MB qemu disk image, and here are the results:
 -rw-r--r--  1 root    wheel  524288000 Mar 30 19:39 harddisk
 -rw-r--r--  1 feyrer  wheel  241776704 Jul 20 04:14 harddisk.gz
 -rw-r--r--  1 feyrer  wheel  228779032 Jul 20 04:55 harddisk.bz2
 -rw-r--r--  1 feyrer  wheel  196960165 Jul 20 04:39 harddisk.rz 
Rzip (.rz) seems the clear winner here with a compression ratio of 2.66, compared to the 2.17 of "gzip -9" and 2.29 of "bzip2 -9".

Rzip is available in pkgsrc/archivers/rzip, check out the rzip homepage for more information!

[Tags: , , , ]

Disclaimer: All opinion expressed here is purely my own. No responsibility is taken for anything.

Access count: 24535426
Copyright (c) Hubert Feyrer