{"id":15877,"date":"2014-01-07T13:08:00","date_gmt":"2014-01-07T13:08:00","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=15877"},"modified":"2014-01-07T13:08:00","modified_gmt":"2014-01-07T13:08:00","slug":"hyper-v-virtual-numa-versus-dynamic-memory","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=15877","title":{"rendered":"Hyper-V Virtual NUMA Versus Dynamic Memory"},"content":{"rendered":"<p>When you are using VMs with a large amount of memory then NUMA topology becomes important. Hyper-V can reveal the underlying physical NUMA topology to the VM so that the guest OS and NUMA-aware apps (such as SQL Server) efficiently assign memory and schedule processes to make the most of the boundaries.<\/p>\n<p>There is something important to note. Enabling Dynamic Memory in the settings of a VM disables virtual NUMA. That means that the vast majority of VMs will not have virtual NUMA. To squeeze the best processor\/memory performance out of larger VMs you will need to use static RAM, as noted <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/windows\/hardware\/dn567657.aspx\" target=\"_blank\">here<\/a> under Virtual NUMA:<\/p>\n<blockquote>\n<p>Virtual NUMA and Dynamic Memory features cannot be used at the same time. A virtual machine that has Dynamic Memory enabled effectively has only one virtual NUMA node, and no NUMA topology is presented to the virtual machine regardless of the virtual NUMA settings.<\/p>\n<\/blockquote>\n<p>So you have a balancing act to do:<\/p>\n<ul>\n<li>Applications and large VMs that might benefit from virtual NUMA probably should have static memory. Enabling Dynamic Memory would indirectly reduce the potential performance of the services provided by that VM because virtual NUMA would be disabled.<\/li>\n<li>Note that workloads that are not NUMA-aware cannot make use of virtual NUMA. Therefore enabling Dynamic Memory will not impact performance, and it makes sense to optimize the RAM assignment.<\/li>\n<li>Maybe service performance isn\u2019t a big deal (!?!?!?) but the cost of RAM is. Then you would always (if the app\/guest OS support it) enable Dynamic Memory.<\/li>\n<\/ul>\n<p>This is not ideal. Introducing a human decision into a cloud where uneducated \u201cusers\u201d are deploying their own VMs makes things less efficient. Hopefully MSFT will overcome the Dynamic Memory versus virtual NUMA conflict in a future version, but when you think about it, this would difficult to do.<\/p>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c3f173e4-3706-44ae-92d6-487e88c42fd3\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/Windows+Server+2012\" rel=\"tag\">Windows Server 2012<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Windows+Server+2012+R2\" rel=\"tag\">Windows Server 2012 R2<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Hyper-V\" rel=\"tag\">Hyper-V<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Virtualisation\" rel=\"tag\">Virtualisation<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Performance\" rel=\"tag\">Performance<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>When you are using VMs with a large amount of memory then NUMA topology becomes important. Hyper-V can reveal the underlying physical NUMA topology to the VM so that the guest OS and NUMA-aware apps (such as SQL Server) efficiently assign memory and schedule processes to make the most of the boundaries. There is something &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=15877\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Hyper-V Virtual NUMA Versus Dynamic Memory&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[20],"tags":[181,86,195,118,120],"class_list":["post-15877","post","type-post","status-publish","format-standard","hentry","category-hyper-v","tag-hyper-v","tag-performance","tag-virtualisation","tag-windows-server-2012","tag-windows-server-2012-r2"],"aioseo_notices":[],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/15877","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15877"}],"version-history":[{"count":0,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/15877\/revisions"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}