topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday March 29, 2024, 1:49 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: To Compress or not to compress  (Read 6274 times)

Cpilot

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 293
    • View Profile
    • Bite Notes
    • Read more about this member.
    • Donate to Member
To Compress or not to compress
« on: May 14, 2008, 09:19 PM »
Just out of curiosity, how do you all feel about compressing your main drives?
Does everyone do it?
Any pros and most importantly cons?
I can google around I suppose and get opinions but I was wondering how folks here feel about it.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: To Compress or not to compress
« Reply #1 on: May 14, 2008, 09:28 PM »
Afaik there's no "full drive compression" with NTFS, pretty much died out with stacker/doublespace back in the DOS days. NTFS does support per-file compression though, and it can be inheritable for directory structures - so in theory I guess it could be applied automatically for a whole drive.

I only use it selectively, though, since some data just doesn't compress well, and your boot files must NOT be compressed (or NTFS-encrypted, for that matter). Theoretically, with a fast CPU, it can be an advantage on some types of files, because systems are often disk I/O limited. Source code (mainly static stuff like the huge collection of PlatformSDK headers) compress pretty well...

In reality, however, I haven't seen much speed improvement from this. It might help with the initial build of a program after a cold boot, but after that, the necessary files tend to be in filesystem cache, and the disk isn't involved at all. Also, you don't gain that much disk space from the compression, and drives are cheap these days. Last, iirc there's some fragmentation-related issues once you enable NTFS compression, but I can't remember the details and I'm not in the mood for googling it up  :)
- carpe noctem

Cpilot

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 293
    • View Profile
    • Bite Notes
    • Read more about this member.
    • Donate to Member
Re: To Compress or not to compress
« Reply #2 on: May 14, 2008, 09:40 PM »
Last, iirc there's some fragmentation-related issues once you enable NTFS compression, but I can't remember the details and I'm not in the mood for googling it up 
No biggy, like I said, just interested in the users here.
I can google around also but I'm more interested in personal takes on it.

Lashiec

  • Member
  • Joined in 2006
  • **
  • Posts: 2,374
    • View Profile
    • Donate to Member
Re: To Compress or not to compress
« Reply #3 on: May 15, 2008, 09:07 AM »
I only compress loose files in ZIP or RAR format, though the perspective of compressing the entire drive(s) look tempting, it's not that I'm dying for that extra free space. I guess Microsoft feels the same, as that particular option was never featured as "ZOMG! Look at this". BTW, does anyone know what are the savings compared to traditional algorithms (on the same files that is?

Afaik there's no "full drive compression" with NTFS, pretty much died out with stacker/doublespace back in the DOS days. NTFS does support per-file compression though, and it can be inheritable for directory structures - so in theory I guess it could be applied automatically for a whole drive.

Then what about the first checkbox:

Screenshot - 15_05_2008 , 16_05_54.png

that reads "Compress contents to save disk space"?

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: To Compress or not to compress
« Reply #4 on: May 15, 2008, 09:23 AM »
NTFS compression uses a LZW variant, so I guess it's roughly comparable to .zip - too lazy to test, though. The format-time option probably just sets a flag in the volume header saying that "by default, every file on this volume will be compressed" - the compression certainly is file-based (but again, it is inheritable on folders - ie., if you mark a folder for compression, new files and folders created in there will automatically be compressed).

Now, think about what happens for non-static files... if you want to write some data in the middle of a file. NTFS compresses in cluster sizes  (and only works with cluster sizes of <= 4kb) - changing the data in a cluster could mean it will now take two clusters after compression, instead of a single one. What does this do for fragmentation? :)
- carpe noctem

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • View Profile
    • Donate to Member
Re: To Compress or not to compress
« Reply #5 on: May 15, 2008, 10:00 AM »
FWIW I don't compress much of anything except for net transfers.
I use desktop machines and storage for them is so cheap these days I can't see the point of compression.