Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Virtual Server

Vista - Defragment versus moving files?

Reply
 
Old 11-18-2008   #1 (permalink)
Bo Berglund


 
 

Defragment versus moving files?

I have tried to defragment a virtual disk file on a USB connected
drive (NTFS format) using both the built-in WindowsXP defragger and
the SysInternals Contig program. The VHD file is 25 Gb and there is 41
Gb free space on the drive. Not so many files either on the drive.

But it seems like the strategy these programs use is a bit flawed, it
seems like they try to keep the file placement on the disk basically
the same and just try to move certain parts of it together. The net
effect is that there are about 5-6 used areas on the disk with lots of
free space in between, and these sum up to the 41 Gb. But because of
the spread position of these chunks there is no unused space big
enough to house the complete VHD in one piece.

Why is there no switch for the defraggers to tell them to move all
files up front on the drive and leave the free space at the end? This
seems to be the best strategy to handle big files....
If I remember correctly this is exactly how the defraggers/compactors
used to work 10-15 years ago. But not anymore.

Maybe this function is available in some other compaction software?
If so, could someone please publish a link to such?

--

Bo Berglund (Sweden)

My System SpecsSystem Spec
Old 11-18-2008   #2 (permalink)
PM


 
 

Re: Defragment versus moving files?

PM wrote:
Quote:

>
> 1) Turn off undo disk
> 2) Run the defragger (look at the readme - you need to install it with
> the -i switch before use - it doesn't put anything in the registry
> and you need to copy one file to System32)
> 3) Run Precompact (this is included as a CD image with Virtual Server)
> 4) Turn off the virtual machine, Inspect the VHD file and Compact it.
Oops - step 5, re-enable Undo disk if required!


My System SpecsSystem Spec
Old 11-18-2008   #3 (permalink)
Dave Harry


 
 

Re: Defragment versus moving files?

A few fragments are not going to make any noticable difference to the VHD's
performance, especially if they're large fragments.
It takes such a long time to read through a 25GB file, especially on a USB
drive, that the extra ~8ms per fragment is not going to slow things down
much overall.

--
Dave Harry

"Bo Berglund" <boberglund@xxxxxx> wrote in message
news:lmn4i49jig8jbop82p53cffmte9mqkqjdj@xxxxxx
Quote:

>I have tried to defragment a virtual disk file on a USB connected
> drive (NTFS format) using both the built-in WindowsXP defragger and
> the SysInternals Contig program. The VHD file is 25 Gb and there is 41
> Gb free space on the drive. Not so many files either on the drive.
>
> But it seems like the strategy these programs use is a bit flawed, it
> seems like they try to keep the file placement on the disk basically
> the same and just try to move certain parts of it together. The net
> effect is that there are about 5-6 used areas on the disk with lots of
> free space in between, and these sum up to the 41 Gb. But because of
> the spread position of these chunks there is no unused space big
> enough to house the complete VHD in one piece.
>
> Why is there no switch for the defraggers to tell them to move all
> files up front on the drive and leave the free space at the end? This
> seems to be the best strategy to handle big files....
> If I remember correctly this is exactly how the defraggers/compactors
> used to work 10-15 years ago. But not anymore.
>
> Maybe this function is available in some other compaction software?
> If so, could someone please publish a link to such?
>
> --
>
> Bo Berglund (Sweden)
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Defragment Boot Files - Enable or Disable Tutorials
Defragment Boot Files - Create Shortcut Tutorials
Files that won't defragment Vista performance & maintenance
video files, vista versus XP Vista General
Writing variables to memory versus tmp files PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46