LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-10-2009, 01:40 AM   #1
kumartnj
LQ Newbie
 
Registered: Apr 2009
Posts: 15

Rep: Reputation: 0
Unhappy compress file size bigger than uncompress in gzip format


All,

when i tried to compress a file with gzip format the output gives me as compressed file size is bigger than uncompressed file size.

output given below:
-------------------

#gzip -l kk.dmp.gz
compressed uncompressed ratio uncompressed_name
4655006947 1978884096 -135.2% kk.dmp


please let me know ASAP if someone can answer to this questions. Thanks

- Kumar
 
Old 04-10-2009, 02:28 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
The gzip file format stores the length of the uncompressed file in a 4 byte integer, so that the maximum value can be 2^32 = 4294967296. If the original file was bigger than 4 Gbyte, the information returned by gzip -l is wrong. To compute the actual size of the uncompressed file, you have to add 4294967296, that is
Code:
1978884096 + 4294967296 = 6273851392
resulting in a compress ratio of 74%.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is There Software to Compress a Video File and Burn to DVD+R Format? bper Linux - Software 11 09-01-2008 03:35 PM
Which command will use to display all .php file have size bigger than 30kb niitpro Linux - Newbie 3 09-09-2007 08:38 AM
uncompressed file size without uncompress? Lander Programming 3 06-13-2006 04:21 AM
compress kernel modules with gzip? bbeers Debian 4 12-16-2003 03:21 PM
where to get : uuencode, uncompress, compress RitaChin Linux - General 3 06-20-2003 10:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:16 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