LinuxQuestions.org
Visit the LQ Articles and Editorials section
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: Linux mint, Slackware
Posts: 231

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
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,562

Rep: Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394
xz and 7-zip, both of which use the same algorithm.
 
Old 10-22-2010, 12:37 AM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,669

Rep: Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683
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
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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
Guru
 
Registered: Mar 2008
Posts: 11,105

Rep: Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362
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: Linux mint, Slackware
Posts: 231

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: Linux mint, Slackware
Posts: 231

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
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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


All times are GMT -5. The time now is 09:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration