Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: tl@cd.chalmers.se (Torbj|rn Lindgren)
Subject: Re: Sparse files take up more space when copied
Date: 15 Nov 1994 19:52:33 GMT	[thread overview]
Message-ID: <3ab3i1$rlp@nyheter.chalmers.se> (raw)
In-Reply-To: 3aaj2f$qql@xdm084.ccc.cranfield.ac.uk

In article <3aaj2f$qql@xdm084.ccc.cranfield.ac.uk>,
Peter Lister <p.lister@cranfield.ac.uk> wrote:
>I tarred the directory and gzip managed 94% compression on the tar
>file (yes, that's right, reduced the size by 94%), so these files are
>obviously pretty sparse. It would seem that I-DEAS can take advantage
>of some pretty good file compression in the OSF1 filesystem when it
>writes it's files, but tar,cp,etc don't manage this. My guess is that
>I-DEAS uses mmap(3) and that that virtual memory paging writes the
>file blocks more efficiently than stream I/O as used by cp, tar, etc.

It uses sparse allocated files (often created by seeking or by
mmaping).

GNU cp (I think it's included in fileutils, that would be the logical
place for it) creates this kind of file when you tell it to copy a
file (if there are any blocks of zeros of course), which means that
sometimes files are smaller after you have copied them :)

The real size of a file is easy to check by using the -s parameter to
'ls'.


      parent reply	other threads:[~1994-11-15 19:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-11-15 15:11 Sparse files take up more space when copied Peter Lister
1994-11-15 16:08 ` Peter da Silva
1994-11-15 16:30   ` Peter da Silva
1994-11-16  0:56     ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1994-11-16  0:08   ` John Hascall
1994-11-17 20:35     ` Peter da Silva
1994-11-15 19:52 ` Torbj|rn Lindgren [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox