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 PC

Vista - VMs, defragmentation and undo disks

Reply
 
Old 02-03-2009   #1 (permalink)
Poutnik


 
 

VMs, defragmentation and undo disks


Hi,

I would like to test my ideas, if they are wrong..

I think defragmentation does not give so much gain
as for real machines, if VD is small, compared to physical one.
But it is still worthy to do it, at least plain file defragmentation.

I think, if one uses undo disk on VPC,
defragmentation could cause excessive work
for later disk merging.
Therefore it is good to postpone defragmentation
until undo disk is merged, then cancel undo seeting
launch VM and perform defragmentation.

Am I right ?

--
Poutnik

My System SpecsSystem Spec
Old 02-03-2009   #2 (permalink)
Robert Comer


 
 

Re: VMs, defragmentation and undo disks

>Am I right ?

Pretty much. The only thing I'd add is that defragmenting a dynamic
disk is not a good idea, even if you don't have undo disks enabled. It
has the potential to balloon the size up quite a bit. If it really
gets heavily fragmented, then you should go through the procedure for
compacting the disk rather than just defragmenting it.

--
Bob Comer




On Tue, 3 Feb 2009 08:20:40 +0100, Poutnik
<poutnikletspamisoutofabox@xxxxxx> wrote:
Quote:

>
>Hi,
>
>I would like to test my ideas, if they are wrong..
>
>I think defragmentation does not give so much gain
>as for real machines, if VD is small, compared to physical one.
>But it is still worthy to do it, at least plain file defragmentation.
>
>I think, if one uses undo disk on VPC,
>defragmentation could cause excessive work
>for later disk merging.
>Therefore it is good to postpone defragmentation
>until undo disk is merged, then cancel undo seeting
>launch VM and perform defragmentation.
>
>Am I right ?
My System SpecsSystem Spec
Old 02-03-2009   #3 (permalink)
Poutnik


 
 

Re: VMs, defragmentation and undo disks

In article <0dcgo4thjn8gm93klk1e9cr6fkpkj8j1d7@xxxxxx>, bobcomer-
removeme-@xxxxxx says...
Quote:

>
Quote:

> >Am I right ?
>
> Pretty much. The only thing I'd add is that defragmenting a dynamic
> disk is not a good idea, even if you don't have undo disks enabled. It
> has the potential to balloon the size up quite a bit. If it really
> gets heavily fragmented, then you should go through the procedure for
> compacting the disk rather than just defragmenting it.
I would use favorite JKDefrag with default settings,
it compacts well in reasonable time.

--
Poutnik
My System SpecsSystem Spec
Old 02-03-2009   #4 (permalink)
Steve Jain [MVP]


 
 

Re: VMs, defragmentation and undo disks

On Tue, 3 Feb 2009 17:09:45 +0100, Poutnik
<poutnikletspamisoutofabox@xxxxxx> wrote:
Quote:

>In article <0dcgo4thjn8gm93klk1e9cr6fkpkj8j1d7@xxxxxx>, bobcomer-
>removeme-@xxxxxx says...
Quote:

>>
Quote:

>> >Am I right ?
>>
>> Pretty much. The only thing I'd add is that defragmenting a dynamic
>> disk is not a good idea, even if you don't have undo disks enabled. It
>> has the potential to balloon the size up quite a bit. If it really
>> gets heavily fragmented, then you should go through the procedure for
>> compacting the disk rather than just defragmenting it.
>
>I would use favorite JKDefrag with default settings,
>it compacts well in reasonable time.
But, you would still need to compact the VHD. After you defrag, there
are additional steps to take to compact the actual VHD file. Defrag,
precompact, compact.

--
Cheers,
Steve Jain, Virtual Machine MVP
http://vpc.essjae.com/
My System SpecsSystem Spec
Old 02-03-2009   #5 (permalink)
Poutnik


 
 

Re: VMs, defragmentation and undo disks

In article <dg0ho41jvvrqn7786ah99ng1sbtqa7uc3g@xxxxxx>, noreply.-
@-.essjae.com says...
Quote:

>
Quote:

> >
> >I would use favorite JKDefrag with default settings,
> >it compacts well in reasonable time.
>
> But, you would still need to compact the VHD. After you defrag, there
> are additional steps to take to compact the actual VHD file. Defrag,
> precompact, compact.
Hm, interesting pointing out.

I have obviously missed something, supposing dynamic disk
would shrinking if compacted by defrag.

--
Poutnik
My System SpecsSystem Spec
Old 02-03-2009   #6 (permalink)
Steve Jain [MVP]


 
 

Re: VMs, defragmentation and undo disks

On Tue, 3 Feb 2009 19:45:53 +0100, Poutnik
<poutnikletspamisoutofabox@xxxxxx> wrote:
Quote:

>In article <dg0ho41jvvrqn7786ah99ng1sbtqa7uc3g@xxxxxx>, noreply.-
>@-.essjae.com says...
Quote:

>>
Quote:

>> >
>> >I would use favorite JKDefrag with default settings,
>> >it compacts well in reasonable time.
>>
>> But, you would still need to compact the VHD. After you defrag, there
>> are additional steps to take to compact the actual VHD file. Defrag,
>> precompact, compact.
>
>Hm, interesting pointing out.
>
>I have obviously missed something, supposing dynamic disk
>would shrinking if compacted by defrag.
it's a common misconception. Defragging won't decrease the actual
size of the VHD file on the host, in some cases it can increase it.
After you defrag it, you need to zero out the empty space (tool is
included with VPC), and then compact it via the Virtual Disk Wizard in
VPC)

--
Cheers,
Steve Jain, Virtual Machine MVP
http://vpc.essjae.com/
My System SpecsSystem Spec
Old 02-03-2009   #7 (permalink)
Karl E. Peterson


 
 

Re: VMs, defragmentation and undo disks

Steve Jain [MVP] wrote:
Quote:

> On Tue, 3 Feb 2009 19:45:53 +0100, Poutnik
> <poutnikletspamisoutofabox@xxxxxx> wrote:
>
Quote:

>>In article <dg0ho41jvvrqn7786ah99ng1sbtqa7uc3g@xxxxxx>, noreply.-
>>@-.essjae.com says...
Quote:

>>>
>>> >
>>> >I would use favorite JKDefrag with default settings,
>>> >it compacts well in reasonable time.
>>>
>>> But, you would still need to compact the VHD. After you defrag, there
>>> are additional steps to take to compact the actual VHD file. Defrag,
>>> precompact, compact.
>>
>>Hm, interesting pointing out.
>>
>>I have obviously missed something, supposing dynamic disk
>>would shrinking if compacted by defrag.
>
> it's a common misconception. Defragging won't decrease the actual
> size of the VHD file on the host, in some cases it can increase it.
> After you defrag it, you need to zero out the empty space (tool is
> included with VPC), and then compact it via the Virtual Disk Wizard in
> VPC)
Do you prefer that to sdelete?
--
..NET: It's About Trust!
http://vfred.mvps.org


My System SpecsSystem Spec
Old 02-03-2009   #8 (permalink)
Poutnik


 
 

Re: VMs, defragmentation and undo disks

In article <O1rBVijhJHA.5732@xxxxxx>, karl@xxxxxx
says...
Quote:

>
> Steve Jain [MVP] wrote:
Quote:

> > On Tue, 3 Feb 2009 19:45:53 +0100, Poutnik
> > <poutnikletspamisoutofabox@xxxxxx> wrote:
> >
> >
> > it's a common misconception. Defragging won't decrease the actual
> > size of the VHD file on the host, in some cases it can increase it.
> > After you defrag it, you need to zero out the empty space (tool is
> > included with VPC), and then compact it via the Virtual Disk Wizard in
> > VPC)
>
> Do you prefer that to sdelete?
Well, sdelete was in the first place I was thinking about,
when topic came to free space zeroing....

--
Poutnik
My System SpecsSystem Spec
Old 02-03-2009   #9 (permalink)
Karl E. Peterson


 
 

Re: VMs, defragmentation and undo disks

Poutnik wrote:
Quote:
Quote:
Quote:

>> > it's a common misconception. Defragging won't decrease the actual
>> > size of the VHD file on the host, in some cases it can increase it.
>> > After you defrag it, you need to zero out the empty space (tool is
>> > included with VPC), and then compact it via the Virtual Disk Wizard in
>> > VPC)
>>
>> Do you prefer that to sdelete?
>
> Well, sdelete was in the first place I was thinking about,
> when topic came to free space zeroing....
I like that I can script the defrag/sdelete sequence so I don't have to pay
attention until it's done.
--
..NET: It's About Trust!
http://vfred.mvps.org


My System SpecsSystem Spec
Old 02-04-2009   #10 (permalink)
Poutnik


 
 

Re: VMs, defragmentation and undo disks

In article <OxljPYlhJHA.1172@xxxxxx>, karl@xxxxxx
says...
Quote:

>
Quote:

> >
> > Well, sdelete was in the first place I was thinking about,
> > when topic came to free space zeroing....
>
> I like that I can script the defrag/sdelete sequence so I don't have to pay
> attention until it's done.
There was said in web - found yesterday, but I lost link,
that sdelete is not useful for that, "writing 00, than FF, then random"

--
Poutnik
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Undo Disks performance hit or boost ? Virtual PC
closing, discarding, saving, undo disks, oh my... Virtual PC
Defragmentation of 2 HD. Vista performance & maintenance
Defragmentation Vista General
Defragmentation Vista performance & maintenance


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