Mailinglist Archive: opensuse (1606 mails)
|< Previous||Next >|
Re: [opensuse] Re: Transparent content compression for space savings on linux like on NTFS?
- From: "Brian K. White" <brian@xxxxxxxxx>
- Date: Sun, 31 Aug 2008 21:22:06 -0400
- Message-id: <93027886A45B40808EC9BFE42D48787B@venti>
----- Original Message -----
From: "Linda Walsh" <suse@xxxxxxxxx>
Cc: "Randall R Schulz" <rschulz@xxxxxxxxx>
Sent: Saturday, August 30, 2008 3:28 PM
Subject: [opensuse] Re: Transparent content compression for space savings on
linux like on NTFS?
Randall R Schulz wrote:
... I laughed when I read that ...
I'm pleased to have indebted you to me for the provision of laughter.
:-) -- there really isn't enough laughter in life these days...
Ever noticed how much of our 'humor' involves putting someone or something
else "down"? Certainly "clowns" exploit this easy source of getting
laughs, but it's odd that a small percentage of what we find humorous
doesn't involve someone or something else's discomfiture or mistake.
But that's a philosophical issue for another place, perhaps.
(* look at the silly linda getting all serious over philosophical roots
of what we find humorous...*) ... (* ok, some are more easily amused than
others...*) (* but being easily amused can be a good thing: you are
more often amused? *) :-)
The real Question (missing feature in Linux?):
Windows (NT-based) does have transparent, on-the-fly compression that
can be enabled on NTFS. The transparent compress/decompress works with with
apps. If one enables compression for a volume, NT will look for
to save space on on fixed-block sizes that are 16 times the Cluster size
up to a max "compression unit", "CU", of 64k. This implicitly makes 4k the
largest cluster size that will still allow file compression to be enabled on
NT requires that compression save at least 1 cluster, or it doesn't
bother, but a file of all one's, for example, could be stored in about 1/16th
the cluster space of a non-compressed file (a file of all 'zero's, can get
savings with "sparse files"). But this means each integral "CU" is checked
for possible compression savings -- so data files might have some ranges
but not others. The fact that NT implements compression in "CU"-sized chunks
means there is very little hit in speed for random-access. Obviously, the
hit, will "vary" by the ratio of CPU-power:disk speed...with a speed hit being
more noticeable if the drive is a 15K RPM SAS(scsi)-based RAID compared to a
IDE-based non-raid systems.
On linux, I don't know of an implementation that does this as transparently
as NT does with NTFS. Since the clusters are marked 'compressed' in the file
there likely has to be some flag available on a "per-CU" basis in the NTFS
information. On a data-read of a compressed section, NTFS decompresses the
contents of the CU AND allocates the full, uncompressed file-space needed by
"CU" as *backing store* for the data that's decompressed into the block
If the data isn't modified, the backing store doesn't get written to, so the
CU stays compressed.
If the user modifies the data, the modified data can be automatically written
back to disk into the sectors that were allocated for backing store of the
file. At *some* point, (in writing), NT will try to compress the data in the
to check for space savings of a cluster or more.
Anyway -- I suppose the actual linux implementation is left as an exercise
the user...? :-)
I think the OP already knew about compressed filesystems.
The question was not about compressed filesystems.
It was about treating a zip file as a directory.
As for laughter, I laughed yet again when I saw how he chose to react to my
admitting I was wrong for laughinging.
And I am indebted to him as he says, not for the laughter so much as for the
research, since he was the one who came up with the fuse answer in the first
place. Although I don't think I have much use for mounting an archive as a
filesystem, it's interesting to know about none the less. Maybe it's slightly
fewer keystrokes for working on initrd's which are now cpio files instead of
Brian K. White brian@xxxxxxxxx http://www.myspace.com/KEYofR
filePro BBx Linux SCO FreeBSD #callahans Satriani Filk!
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
|< Previous||Next >|