Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332
Rep:
Comparing experience: xz and gzip
I've been testing xz compression because I've read many anecdotal reports of improved compression over gzip. I'm careful to maintain complete data backup for all my user data and have, at this time of writing, a 29 Gig. data-set.
I have the following results:
gzip -9 on a 29 gig. .tar file results in a .tar.gz 31% - 32% smaller than the original .tar file.
xz -9 on a 29 gig. .tar file results in a .tar.xz 36% - 38% smaller than the original .tar file.
My 29 gig. data-set contains 717,000 files of widely varying sizes.
All data is stored on ext4 filesystems using kernel 2.6.29.6.
The surprising discovery was the time it took to complete the job using xz. Gzip consistently finished in just under 1 hour -- approx. 59 minutes; however, xz required 4hr38min. - 4hr42min. to complete the same.
For me, the 5%-6% increased compression is definitely not worth the additional 3.5 hr. - 3.75 hr. process time to completion.
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332
Original Poster
Rep:
# time bzip2 -9 -v test.tar
test.tar:
1.496:1, 5.348 bits/byte, 33.15% saved, 29319710720 in, 19598812379 out.
real 124m28.091s
user 120m23.832s
sys 0m37.292s
- - - - - - - - -
Very odd, bzip2 takes twice the time as gzip and only produces a 1.15% compression increase over gzip. Also, xz requires more than twice the time of bzip2 and only produces a 3%-5% compression increase over bzip2.
I don't know if there is anything unusual about my data files skewing the results in favor of gzip.
For my needs and environment, xz and bzip2 provide no compelling benefit. I'll continue to use gzip -9.
not to odd bz2 normally dose take longer but the compression is normally better
but not on photos , except for RAW files .
p7z ( the fileroller plugin)_ for 7-zip is normally fairly fast -- but i don't use it to much
my MS only friends just say " wtf- windows can not open it" ( default windows )
and are clueless as how to install 7-zip - and it is FREE
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.