[opensuse] Re: Transparent content compression for space savings on linux like on NTFS?
- From: Linda Walsh <suse@xxxxxxxxx>
- Date: Sat, 30 Aug 2008 12:28:54 -0700
Randall R Schulz wrote:
----
... I laughed when I read that ...
I'm pleased to have indebted you to me for the provision of laughter.
Sidenote:
:-) -- 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 all
apps. If one enables compression for a volume, NT will look for "opportunities"
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 NTFS.
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 better
savings with "sparse files"). But this means each integral "CU" is checked
for possible compression savings -- so data files might have some ranges compressed,
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 speed
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 slower
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 system,
there likely has to be some flag available on a "per-CU" basis in the NTFS meta
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 the "CU" as *backing store* for the data that's decompressed into the block buffer. 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 memory mapped
file. At *some* point, (in writing), NT will try to compress the data in the CU
to check for space savings of a cluster or more.
Anyway -- I suppose the actual linux implementation is left as an exercise for the user...? :-)
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- Follow-Ups:
- References:
- [opensuse] Transparent Archive (TAR or Zip) Access for Linux?
- From: Randall R Schulz
- Re: [opensuse] Transparent Archive (TAR or Zip) Access for Linux?
- From: John Andersen
- Re: [opensuse] Transparent Archive (TAR or Zip) Access for Linux?
- From: Brian K. White
- Re: [opensuse] Transparent Archive (TAR or Zip) Access for Linux?
- From: Randall R Schulz
- [opensuse] Transparent Archive (TAR or Zip) Access for Linux?
- Prev by Date: Re: [opensuse] pim / kmail 1.10.0 (using kde 4.1.1) crashing on paste in message body
- Next by Date: Re: [opensuse] Opensuse doesn't wait long enough for the disks to spin up before trrying to configure raid
- Previous by thread: Re: [opensuse] Transparent Archive (TAR or Zip) Access for Linux?
- Next by thread: Re: [opensuse] Re: Transparent content compression for space savings on linux like on NTFS?
- Index(es):
Relevant Pages
|