[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] Free space wasting when handling binary files
From: |
Andrew Suffield |
Subject: |
Re: [Gnu-arch-users] Free space wasting when handling binary files |
Date: |
Fri, 25 Mar 2005 07:37:27 +0000 |
User-agent: |
Mutt/1.5.6+20040907i |
On Thu, Mar 24, 2005 at 06:15:59PM -0600, John Arbash Meinel wrote:
> It does depend on the size of the file versus the size of the
> compression window:
>
> $ dd if=/dev/random of=file1 bs=1k count=10
> 10+0 records in
> 10+0 records out
> $ cp file1 file2
> $ tar czf files.tar.gz file1 file2
> $ ls -l file1 file2 files.tar.gz
> -rw-r--r-- 1 jameinel jameinel 10240 Mar 24 18:07 file1
> -rw-r--r-- 1 jameinel jameinel 10240 Mar 24 18:07 file2
> -rw-r--r-- 1 jameinel jameinel 10586 Mar 24 18:07 files.tar.gz
>
> $ dd if=/dev/random of=file1 bs=1k count=100
> 100+0 records in
> 100+0 records out
> $ cp file1 file2
> $ tar czf files.tar.gz file1 file2
> $ ls -l file1 file2 files.tar.gz
> -rw-r--r-- 1 jameinel jameinel 102400 Mar 24 18:09 file1
> -rw-r--r-- 1 jameinel jameinel 102400 Mar 24 18:09 file2
> -rw-r--r-- 1 jameinel jameinel 205198 Mar 24 18:09 files.tar.gz
>
> I don't know what the gzip window is, but the bzip2 window is 900k. (If
> we used bzip2 instead of gzip, the above holds true up until > 500k files).
gzip is DEFLATE, which limits everything to 64k because it was
targetted at systems with 16-bit integers.
--
.''`. ** Debian GNU/Linux ** | Andrew Suffield
: :' : http://www.debian.org/ |
`. `' |
`- -><- |
signature.asc
Description: Digital signature
- Re: [Gnu-arch-users] Free space wasting when handling binary files, (continued)
- Re: [Gnu-arch-users] Free space wasting when handling binary files, Matthew Dempsky, 2005/03/24
- Re: [Gnu-arch-users] Free space wasting when handling binary files, Adrian Irving-Beer, 2005/03/25
- Re: [Gnu-arch-users] Free space wasting when handling binary files, Matthew Dempsky, 2005/03/25
- Re: [Gnu-arch-users] Free space wasting when handling binary files, Adrian Irving-Beer, 2005/03/25
- Re: [Gnu-arch-users] Free space wasting when handling binary files, Matthew Dempsky, 2005/03/25
- Re: [Gnu-arch-users] Free space wasting when handling binary files, Adrian Irving-Beer, 2005/03/25
- Re: [Gnu-arch-users] Free space wasting when handling binary files, Matthew Dempsky, 2005/03/25
- Re: [Gnu-arch-users] Free space wasting when handling binary files,
Andrew Suffield <=
Re: [Gnu-arch-users] Free space wasting when handling binary files, Simon Geusebroek, 2005/03/25
- Re: [Gnu-arch-users] Free space wasting when handling binary files, John Arbash Meinel, 2005/03/25
- Re: [Gnu-arch-users] Free space wasting when handling binary files, Simon Geusebroek, 2005/03/25
- Re: [Gnu-arch-users] Free space wasting when handling binary files, Matthew Dempsky, 2005/03/25
- Re: [Gnu-arch-users] Free space wasting when handling binary files, Simon Geusebroek, 2005/03/25
- Re: [Gnu-arch-users] Free space wasting when handling binary files, Adrian Irving-Beer, 2005/03/25
- Re: [Gnu-arch-users] Free space wasting when handling binary files, Andrew Suffield, 2005/03/25
- Re: [Gnu-arch-users] Free space wasting when handling binary files, Tom Lord, 2005/03/25
- Re: [Gnu-arch-users] Free space wasting when handling binary files, Simon Geusebroek, 2005/03/29
Re: [Gnu-arch-users] Free space wasting when handling binary files, Aaron Bentley, 2005/03/25