Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 21, 2013, 07:53:06 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Defrag compressed files ONLY IF spread out over more than their actual size  (Read 170 times)
tOM Trottier
JkDefrag Hero
*****
Posts: 82


tOM


View Profile
« on: February 07, 2013, 10:06:55 pm »

Compression is useful for small files and for seldom-used files like system recovery files, but it does lead to many many fragments.

Compressed files have lots of fragments, each (except last) 64k in logical size, but 4-64k compressed. See https://en.wikipedia.org/wiki/Ntfs#File_compression

So any compressed file over 64k is fragmented.

So I would like to suggest that MyDefrag look at the distance on disk between the physically first fragment and the end of the physically last fragment of compressed files (less any unmoveable clusters). If this is less than the file size, then the file should be treated as already defragmented.

This will avoid moving around fragments which are already contiguous or nearly so.

Logged
dtfinch
JkDefrag Supporter
***
Posts: 14


View Profile
« Reply #1 on: February 08, 2013, 05:26:31 pm »

I believe it already does, and contiguous fragments are reported as one. They still take a very long time to analyze and move though. You might even want to deal with them in your first zone to ensure they won't be vacated by later zones, with just a defragment(fast) to avoid moving them unnecessarily.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!