Will running virtual machines from a hybrid SSD see a significant speed increase?

6

1

I have virtual machines running off an external 7200rpm hard drive connected to a laptop with eSATA. I'd like to upgrade the drive to an SSD but can't afford one at the size I need.

Would using a hybrid SSD for this purpose give a significant speed increase?

Alex Angas

Posted 2010-10-22T02:57:18.310

Reputation: 2 210

How did this work out? I'm in a similar situation now. – George Mauer – 2011-06-29T20:22:01.760

@GeorgeMauer Because I need to run multiple VMs and don't want to make a mistake with my company's money, I decided not to go ahead. However you'll note that neither answer thus far contains any measurements so it could still be a good approach. – Alex Angas – 2011-06-30T01:02:53.720

Answers

3

I tend to agree with Billy. Performance metrics from http://www.hardwaregeeks.com/index.php/site/comments/seagate_momentus_xt_500gb_hybrid_ssd/ suggest that for a single VM, the performance increase is definitely there. Hybrid drives attain their speed boosts by caching frequently-used sectors of the hard drive into flash memory, speeding up reads. Multiple VM's, if started up and shut down frequently, might spread out the reads and writes too much to allow the hybrid drive to make much of a difference.

However, if you have machines that are suspended and resumed frequently, those suspension files might stay in cache longer (as they would be the most commonly-accessed files), giving you the boost you're looking for. I'm not sure how intelligent or aggressive the caching mechanism is on these drives, but as far as I understand it, the longer you use a drive, the more accurate the caching algorithm would be at keeping the right files in flash cache.

yuriismaster

Posted 2010-10-22T02:57:18.310

Reputation: 141

+1. Also remember that the drive doesn't know anything about files, only blocks. So if there's only a portion of a file that's accessed the drive will have no problem using that as the portion cached in flash. – Billy ONeal – 2010-10-22T16:02:47.587

As Seagate says their algorithm excludes large files from being cached on SSD. I guess this rules out VMs them, but test should be conducted to prove this. I can also see why is that? Well simply because hybrid drive should increase overall performance (like multiple apps not just a huge one) and should perform fair usage policy when choosing files to cache. – Robert Koritnik – 2012-01-17T23:53:44.570

4

Depends. Hybrid drives provide increased performance when there's a segment of the drive which is commonly accessed, and therefore which can be cached in flash.

I would suspect that for a single vm, that would be faster, but for multiple VMs, each time a VM got started it would flush out most of the flash cache back to disk anyway.

Billy ONeal

Posted 2010-10-22T02:57:18.310

Reputation: 7 021

I've never tried this but I concur wholeheartedly. – Shinrai – 2010-10-22T15:17:37.497

It should be noted that this frequently cached LBAs only include those with not too big files. I'm pretty sure VM files would be ruled out of this equation. But tests should either prove or reject this thesis. – Robert Koritnik – 2012-01-17T23:50:27.757

1@Robert: The drive doesn't know about files, it only knows about disk blocks. I don't think the size of a file ever enters the picture. (After all, the drive has to work with whatever filesystem you might put there) – Billy ONeal – 2012-01-18T01:04:37.900

0

I use Linux. I have an SSD of 128GB (Sandisk Ultra Plus). I don't use all of it for the operating system, just 18GB. And I use a 1TB external hard disk for the /home with the users.

So using LVM I have cut 40GB from the unused part of the SSD for 2 small virtual machines with WindowsXP and Win7, and mounted this partition under /home/user/Virtualbox VMs/

I've moved all the files into the SSD and now the Windows VMs run from SSD.

Well, what a boost of performance! It's like they run natively.

Linux has lot of useful tools for doing everything with your disks. With LVM you can cut, enlarge, shrink part of the SSD to use for whatever you want. And there are tools to use SSD as cache for mechanical drives.

If you need Windows? Ok, if you're not a gamer, just into virtual machine running from SSD you'll not miss performance.

Mechano

Posted 2010-10-22T02:57:18.310

Reputation: 1