{"id":1231,"date":"2009-02-17T15:40:53","date_gmt":"2009-02-17T14:40:53","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/1231-hyper-v-disk-io-performance-of-dynamic-vs-fixed-virtual-hard-disks.html"},"modified":"2009-02-17T15:40:53","modified_gmt":"2009-02-17T14:40:53","slug":"hyper-v-disk-io-performance-of-dynamic-vs-fixed-virtual-hard-disks","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/1231-hyper-v-disk-io-performance-of-dynamic-vs-fixed-virtual-hard-disks.html","title":{"rendered":"Hyper-V disk I\/O: performance of dynamic vs fixed virtual hard disks"},"content":{"rendered":"<p>The dynamic virtual hard drive is one of the best things about virtualization. It is like Dr Who\u2019s Tardis. The virtualized OS thinks it has plenty of space, while on the host machine your 128GB virtual drive might occupy just 4 or 5GB \u2013 this is typical of the test VMs I set up, running say Server 2008 and a server application or two.<\/p>\n<p>Trouble is, there\u2019s a performance penalty. I first came across this with a hilariously slow Ubuntu install, where the problem is made worse by the lack of integration services, the utilities and drivers that install into the guest to enable smooth interaction with the host.<\/p>\n<p>As an experiment, I created a second Ubuntu VM using a 30GB fixed-size drive. Better? Yes, much better. Here are the figures on my admittedly slow low-end HP Xeon server:<\/p>\n<p>Copy an 891MB file:<\/p>\n<ul>\n<li>Ubuntu 8.10 on 127GB dynamic drive with 1GB RAM: 6 min 45 secs <\/li>\n<li>Ubuntu 8.10 on 30GB fixed drive with 1GB RAM: 3 min 15 secs <\/li>\n<\/ul>\n<p>As a further test, I copied the same file in Server 2008:<\/p>\n<ul>\n<li>Server 2008 on 127GB dynamic drive with 2GB RAM: 5 min 55 secs <\/li>\n<\/ul>\n<p>My immediate thoughts: you would be crazy to use VMs in production with dynamic drives. Always use fixed drives. You can still expand them manually if necessary. Note that Hyper-V defaults to dynamic drives.<\/p>\n<p>Still, these tests are not extensive or rigorous; I\u2019d be interested in other results. I\u2019ll also be creating my next Server 2008 VM on a fixed drive and will repeat the test there.<\/p>\n<p>I\u2019ve posted some <a href=\"http:\/\/www.itjoblog.co.uk\/2009\/02\/hyperv-tips-and-gotchas.html\" target=\"_blank\">further hyper-v tips and gotchas here<\/a>.<\/p>\n<div class=\"wlWriterEditableSmartContent\" id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:5760ced9-501d-4737-a538-08b61d87fca9\" style=\"padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px\">Technorati tags: <a href=\"http:\/\/technorati.com\/tags\/hyper-v\" rel=\"tag\">hyper-v<\/a>, <a href=\"http:\/\/technorati.com\/tags\/disk+io\" rel=\"tag\">disk io<\/a>, <a href=\"http:\/\/technorati.com\/tags\/performance\" rel=\"tag\">performance<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The dynamic virtual hard drive is one of the best things about virtualization. It is like Dr Who\u2019s Tardis. The virtualized OS thinks it has plenty of space, while on the host machine your 128GB virtual drive might occupy just 4 or 5GB \u2013 this is typical of the test VMs I set up, running &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/1231-hyper-v-disk-io-performance-of-dynamic-vs-fixed-virtual-hard-disks.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Hyper-V disk I\/O: performance of dynamic vs fixed virtual hard disks<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[92,97],"tags":[],"class_list":["post-1231","post","type-post","status-publish","format-standard","hentry","category-virtualization","category-windows"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/1231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=1231"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/1231\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=1231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=1231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=1231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}