Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 24, 2013, 08:20:36 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: Optimizing a disk dedicated to VMWare machines  (Read 1378 times)
thedave
JkDefrag Junior
**
Posts: 5



View Profile WWW
« on: January 06, 2010, 01:40:18 am »

I've been wandering the forums a bit, but haven't quite found what I'm looking for yet, so I thought I'd throw my idea in a post and hope that someone can take the time to tell me where I'm wrong?

I spend much of my life living in 4 virtual machines (VMWare workstation).  To that end, I've got a hard drive dedicated to these VMs, and I don't need to worry about interactions with any other files on the drive.

I've configured the VMDX files to use expanding files, with each file being limited to 2GB.  Since I use snapshots heavily, there is little performance to be gained by going to fixed sized VMDK files.

So the above being said, my thinking is that my optimum layout would be to sort files by directory, leaving approximately 5GB of free space after each directory.

The goal is twofold 1) This will help reduce seek times within a particular VM while it's active by grouping all files related to a given VM together.  2) While I can hope Windows will be smart enough to write related files into this space, even when it doesn't happen, I'm thinking future defragmentations will be faster due to this space being available.

Am I on the right track here?

I'm not really clear if SortByName sorts by the full path+filename, or just the filename, can someone clarify?

Am I reinventing the wheel for a script that has already been written?
Logged
thedave
JkDefrag Junior
**
Posts: 5



View Profile WWW
« Reply #1 on: January 06, 2010, 02:23:07 am »

Ignore my "SortByName" question, I decided to actually pay attention reading the helpfile.

Smiley
Logged
sag47
JkDefrag Junior
**
Posts: 6


View Profile
« Reply #2 on: January 07, 2010, 01:13:37 am »

I attempted something similar in a script that I wrote:
http://www.clubbleach.org/forums/showthread.php?p=4156699

But I'm not sure of the results (currently on day 2 of defragging and still going).  So I guess I can let you know when it's finished if it worked the way I wanted it to.
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #3 on: January 07, 2010, 02:15:40 am »

I've configured the VMDX files to use expanding files, with each file being limited to 2GB.
From a defragmentation point of view it is better to use fixed size virtual disks, so they will not get fragmented and you can run MyDefrag less often.

Quote
leaving approximately 5GB of free space after each directory.
Feel free to do so, but sadly enough Windows will not (always) use that space when a virtual disk needs to grow.

p.s. It is also important to run MyDefrag inside the virtual machines, not only on the host.
Logged
Kasuha
JkDefrag Hero
*****
Posts: 595


View Profile
« Reply #4 on: January 07, 2010, 11:53:16 am »

My opinion is:

If a single VM image is used at a time most of the time, it's better to have it defragmented but its position on the disk is not that important. These files are huge and they will get to the 'slow zone' soon anyway. So simple defragment(fast) should do the trick most of the time and only when the free space becomes too fragmented to prevent this command to work it's time to pack them together by some of SortBy... commands or MoveDownFill(). FastFill() is probably not going to help here and FastFill(WithShuffling) is extremely ineffective on such configuration so I don't recommend it.

If multiple VM images are used at a time (e.g. on a VM server) ... then fragmentation of individual files is not that important because 'access fragmentation' caused by interleaved access to individual images is the main problem. Occasional SortBy... time to time to defragment them and pack together at the same time is a good idea, but for the rest I'd simply use ForcedFill() just to keep them in one block.
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!