LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 10-21-2010, 10:13 PM   #1
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Slackware and Fedora
Posts: 234

Rep: Reputation: 2
Post What on average compresses files the best?


I have been exploring and people tell me its .tgz or something I think it could be .bz2. If you think you know what on average compresses files the best just post. I have a relatively fast computer.(So compression speed is not an issue.) Ratios on file compression are a good sign of how good some file compression formats are. I have heard bz2 gets on average 3 to 1. I have been getting 2 to 1.
 
Old 10-21-2010, 10:56 PM   #2
bulletdog7
LQ Newbie
 
Registered: Aug 2004
Location: Phoenix, Arizona, USA
Posts: 7

Rep: Reputation: 0
I've played with both over several years and have to say that my experience is that bzip2 and gzip seem to give be about the same performance. Depending on the machine, number of files compressed at once, types of files, one will be marginally better at compression or marginally better at speed.
 
Old 10-21-2010, 11:31 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,218

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
xz and 7-zip, both of which use the same algorithm.
 
Old 10-22-2010, 12:37 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
that depends on what you mean "as the best"
tar.bz2 : but it is VERY slow
a 1 gig folder in 20 min.

or best as in the fastest
tar
best for all text , source
7z
 
Old 10-22-2010, 06:38 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by dugan View Post
xz and 7-zip, both of which use the same algorithm.
Yeah, LZMA, probably the best compression you can get today, for free. Only problem is, it's not too fast, but often faster and better than bz2.
 
Old 10-22-2010, 04:51 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,968

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
Fast may be a function of SMP aware versions. An extra core working on compression sure does help.
 
Old 10-22-2010, 11:30 PM   #7
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Slackware and Fedora
Posts: 234

Original Poster
Rep: Reputation: 2
Speed is not a problem for me. I have a pentium 4 with hyper threading. bz2 used only one thread of my single core processor and it only took 5 - 10 minutes to compress 2 gigs of files.
 
Old 10-23-2010, 04:50 PM   #8
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Slackware and Fedora
Posts: 234

Original Poster
Rep: Reputation: 2
I have a nice computer so if anyone knows of the best as in compression ratio on average let me know.
 
Old 10-24-2010, 03:53 AM   #9
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by darkstarbyte View Post
I have a nice computer so if anyone knows of the best as in compression ratio on average let me know.
Um, as stated above: LZMA as implemented by numerous programs.
 
  


Reply

Tags
compression, files, iso, tarball, zip


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how much do you code on average? entz Programming 15 07-12-2010 11:12 AM
load average ? mario.almeida Linux - General 5 08-03-2009 08:39 AM
calculate the average of cells in columns in separate txt files Mike_V Programming 16 05-16-2009 04:37 AM
MondoArchive compresses 4.7GB directory to 40GB? brianpbarnes Linux - Software 0 01-23-2009 11:30 AM
Email client that compresses msg database? dhave Linux - Software 4 06-25-2005 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration