PC Review


Reply
Thread Tools Rate Thread

disk compression?

 
 
andrea catto'
Guest
Posts: n/a
 
      30th Apr 2004
guys, I want to understand how the transparent disk compression works,
I already know it works as a compression layer between the OS and the
cluster/sector access.

but I am confused,

even if a cluster or chunk or block can be shrunk into less than its
original size, there will be unused parts and the end in such a unit.

the compression would be effective only if those unused units are reutilized
somehow, but how ?
I don't get it.

please help me out


 
Reply With Quote
 
 
 
 
andrea catto'
Guest
Posts: n/a
 
      2nd May 2004
thank you, I got it now, partially figured it out by myself after a lot of
speculation, and partially confirmed with your article.

since the msdos days I no longer followed low level disk management so I was
forgetting how clusters are managed as independent units that are
individually taken care of by the OS.

the OS, at least in the fat, has a representation of each cluster in form of
pointers within the FAT, so the number of clusters in a disk equals the
number of pointers (multiplied by 4/8 bytes each) in the fat.

baiscally, since 99% of the apps deal with files, not low level, they don't
know nor they care of how the files are distributed across the disk.
the OS normally already may jump from place A to B any time it needs to deal
with the next data chunk of a file.
to the file this is totally transparent, a file only deals with a (virtual)
progressive file pointer/position.
basically because of this abstraction layer the compression is a piece of
cake to implement.
instead of writing the data to a cluster as its demanded, the OS takes an
extra step and 'tries' compressing it, if it's reasonably smaller, it'll be
able to fit more per cluster-unit therefore reducing the odds of requiring a
new cluster-allocation from the OS.
that's way clear now.

I am hoping this explains the idea to others too since I like sharing.

1st highest level layer) the seamless and transparent file management, which
allows dealing with virtually sequential file pointers/access.
2nd layer) OS file management which decides when it's time to 'skip' to
another cluster-unit to allow the progressive file pointers seamlessely.
3rd layer) (IF COMPRESSION IS SET ONLY) try to compress as much as possible
before writing to fit more in a cluster-unit.
4th layer) (as suggested) cacheing.
5th layer) almost lowest level disk coordination regardless of the geometry
(which I recall it was int 25h,int 26h in dos)
6th layer) lowest level disk geometry coordination considering
head/disk/clusters etc... (which I recall it was int 13h in dos).

does this make sense to you all ?

"andrea catto'" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> guys, I want to understand how the transparent disk compression works,
> I already know it works as a compression layer between the OS and the
> cluster/sector access.
>
> but I am confused,
>
> even if a cluster or chunk or block can be shrunk into less than its
> original size, there will be unused parts and the end in such a unit.
>
> the compression would be effective only if those unused units are

reutilized
> somehow, but how ?
> I don't get it.
>
> please help me out
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk Compression Dave Windows XP General 17 7th Mar 2007 04:00 PM
Disk Compression not available =?Utf-8?B?Ui5CcmFuZG9u?= Windows XP Help 0 1st Dec 2004 04:41 AM
Disk Compression Alan Hodge Microsoft Windows 2000 Advanced Server 0 23rd Sep 2004 02:28 PM
Disk compression PJ Windows XP Performance 1 9th Jan 2004 04:43 PM
disk compression Bryant Windows XP General 1 17th Dec 2003 06:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:47 PM.