{"id":2727,"date":"2015-06-23T05:25:32","date_gmt":"2015-06-23T05:25:32","guid":{"rendered":"http:\/\/www.esds.co.in\/kb\/?p=2727"},"modified":"2015-06-23T05:25:32","modified_gmt":"2015-06-23T05:25:32","slug":"hyper-v-dynamic-memory-best-practices","status":"publish","type":"post","link":"https:\/\/www.esds.co.in\/kb\/hyper-v-dynamic-memory-best-practices\/","title":{"rendered":"Hyper-V Dynamic Memory Best Practices"},"content":{"rendered":"<p><img loading=\"lazy\" class=\" size-full wp-image-2728 aligncenter\" src=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/06\/hyper-v_dynamic_memory.jpg\" alt=\"hyper-v_dynamic_memory\" width=\"600\" height=\"357\" srcset=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/06\/hyper-v_dynamic_memory.jpg 600w, https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/06\/hyper-v_dynamic_memory-300x179.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>&nbsp;<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_77 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.esds.co.in\/kb\/hyper-v-dynamic-memory-best-practices\/#Introduction\" >Introduction:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.esds.co.in\/kb\/hyper-v-dynamic-memory-best-practices\/#How_it_works\" >How it works?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.esds.co.in\/kb\/hyper-v-dynamic-memory-best-practices\/#Configuring_a_virtual_memory\" >Configuring a virtual memory<\/a><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Introduction\"><\/span>Introduction:<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>Hyper-V version 3 with Windows Server 2012 has a new feature which dynamically allocates memory (RAM) on a Windows virtual machine. What is that? And is it a complicated process?<\/p>\n<p style=\"text-align: justify\">It is simple; it adds memory to a VM as needed up to a limit defined in the configuration. The dynamic addition is actually a hot-add memory to the VM.<\/p>\n<p style=\"text-align: justify\">With this feature we can more efficiently manage the memory allocation to the virtual machine since without this feature we must first turn off the VM to change the allocated memory. With this feature, everything is handled dynamically. That\u2019s to say hot-add by the Hyper-V manager, which interact with the virtual hosts.<\/p>\n<p style=\"text-align: justify\">Hyper-V also incorporated this feature in Windows Server 2008 R2 with Service Pack1. The following guest operating systems are supported:<\/p>\n<ul>\n<li>Windows Server 2008 SP2<\/li>\n<li>Windows Server 2008 R2 SP1<\/li>\n<li>Windows 8<\/li>\n<li>Windows Server 2012<\/li>\n<\/ul>\n<h1><span class=\"ez-toc-section\" id=\"How_it_works\"><\/span>How it works?<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>We will see a brief example here about adding and deleting memory dynamically on a VM to understand how it works\u2026<\/p>\n<p style=\"text-align: justify\">Our Hyper-V server contains a VM that uses dynamic memory feature. It has 2 GB of memory assigned minimum and begins to saturate.<\/p>\n<p><img loading=\"lazy\" class=\"wp-image-2733 size-full aligncenter\" src=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/06\/Hyper-V_Dynamic_RAM_1.jpg\" alt=\"Hyper-V_Dynamic_RAM_1\" width=\"421\" height=\"308\" srcset=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/06\/Hyper-V_Dynamic_RAM_1.jpg 421w, https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/06\/Hyper-V_Dynamic_RAM_1-300x219.jpg 300w\" sizes=\"(max-width: 421px) 100vw, 421px\" \/>After enabling the dynamic memory feature, Windows will show warning message that the hypervisor needs additional memory through dynamic memory driver: DMVSC, Dynamic Memory VSC.<\/p>\n<p style=\"text-align: justify\">You will clearly understand in order to use this feature requires the system that taking advantage of the compatible virtual host which supports dynamic memory driver.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter wp-image-2735 size-full\" src=\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/06\/Hyper-V_Dynamic_RAM_2.jpg\" alt=\"Hyper-V_Dynamic_RAM_2\" width=\"421\" height=\"308\" srcset=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/06\/Hyper-V_Dynamic_RAM_2.jpg 421w, https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/06\/Hyper-V_Dynamic_RAM_2-300x219.jpg 300w\" sizes=\"(max-width: 421px) 100vw, 421px\" \/><\/p>\n<p style=\"text-align: justify\">OK, now our VM has a 3 GB of RAM, thanks to hot-added memory. The hours pass\u2026the peak load of activity decrease and then our VM does not need as much memory.<\/p>\n<p style=\"text-align: justify\">A signal is sent to the Hyper-V host to withdraw the memory from our virtual machine, but we cannot remove memory directly from a Windows machine enthusiastically, otherwise a crash will obtain with a famous blue screen.<\/p>\n<p style=\"text-align: justify\">To counter this problem there is a solution. In fact, Hyper-V does believe in the system of exploitation when the VM memory is unavailable. Alright, as our VM no longer need to use that part of memory, it is then possible to reassign it to another needy VM. This is called as the \u201cMemory Ballooning\u201d.<\/p>\n<p style=\"text-align: justify\">The added extra memory to a virtual machine, 1GB, will be rendered in the virtual machine. We will allow it to use only minimum 2 GB.<\/p>\n<p style=\"text-align: justify\"><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/06\/Hyper-V_Dynamic_RAM_3.jpg\" alt=\"Hyper-V_Dynamic_RAM_3\" width=\"396\" height=\"362\" \/><\/p>\n<h1><span class=\"ez-toc-section\" id=\"Configuring_a_virtual_memory\"><\/span>Configuring a virtual memory<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p style=\"text-align: justify\">To enable dynamic memory feature on virtual memory in Hyper-V manager, right click on the VM on which you need additional RAM, then click on \u201cSettings\u201d. Then on the left side, click \u201cMemory\u201d and in the right pane, select the check box next to \u201cEnable Dynamic Memory\u201d.<\/p>\n<p>However, there are various fields:<\/p>\n<p style=\"text-align: justify\">-Minimum RAM: it must always be made available to the VM, and then the VM memory will not drop below this value. This is the minimum memory that the VM needs to function.<\/p>\n<p style=\"text-align: justify\">-Buffer: This buffer will be allocated to the VM memory very quickly with an area pre-allocated memory on each VM that can react quickly during a peak load.<\/p>\n<p style=\"text-align: justify\">It may be interesting to define a high value for this field when the VM is running an application that require a large amount RAM chunk for a moment and then release afterwards. This will meet the needs of the application. Conversely, set a low value on a VM if it turns an application that always seeks to use the maximum possible memory.<\/p>\n<p style=\"text-align: justify\">To determine this value, Hyper-V uses the percentage you point it and the amount of memory used at a time T by the virtual machine. After a calculation, it shows a value that will correspond to the available buffer.<\/p>\n<p style=\"text-align: justify\">-Memory Weight: It manages the memory availability on the priority of a machine relative to another. The higher the priority, the more Hyper-V will work to prioritize allocating memory for that VM rather than another whose priority is lower. It is important to prioritize critical virtual machines first and have significant advantage in term of memory.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Introduction: Hyper-V version 3 with Windows Server 2012 has a new feature which dynamically allocates memory (RAM) on a Windows virtual machine. What is that? And is it a complicated process? It is simple; it adds memory to a VM as needed up to a limit defined in the configuration. The dynamic addition is&#8230; <\/p>\n<div class=\"clear\"><\/div>\n<p><a href=\"https:\/\/www.esds.co.in\/kb\/hyper-v-dynamic-memory-best-practices\/\" class=\"gdlr-button small excerpt-read-more\">Read More<\/a><\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[648],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.9.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Hyper-V Dynamic Memory Best Practices<\/title>\n<meta name=\"description\" content=\"Hyper-V version 3 with Windows Server 2012 has a new feature which dynamically allocates memory (RAM) on a Windows virtual machine. What is that? Let&#039;s see together...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esds.co.in\/kb\/hyper-v-dynamic-memory-best-practices\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hyper-V Dynamic Memory Best Practices\" \/>\n<meta property=\"og:description\" content=\"Hyper-V version 3 with Windows Server 2012 has a new feature which dynamically allocates memory (RAM) on a Windows virtual machine. What is that? Let&#039;s see together...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esds.co.in\/kb\/hyper-v-dynamic-memory-best-practices\/\" \/>\n<meta property=\"og:site_name\" content=\"ESDS Official Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ESDSdc\/\" \/>\n<meta property=\"article:published_time\" content=\"2015-06-23T05:25:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/06\/hyper-v_dynamic_memory.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ESDSDataCenter\" \/>\n<meta name=\"twitter:site\" content=\"@ESDSDataCenter\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"3 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#website\",\"url\":\"https:\/\/www.esds.co.in\/kb\/\",\"name\":\"ESDS Official Knowledgebase\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.esds.co.in\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/hyper-v-dynamic-memory-best-practices\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/06\/hyper-v_dynamic_memory.jpg\",\"width\":600,\"height\":357},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/hyper-v-dynamic-memory-best-practices\/#webpage\",\"url\":\"https:\/\/www.esds.co.in\/kb\/hyper-v-dynamic-memory-best-practices\/\",\"name\":\"Hyper-V Dynamic Memory Best Practices\",\"isPartOf\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/hyper-v-dynamic-memory-best-practices\/#primaryimage\"},\"datePublished\":\"2015-06-23T05:25:32+00:00\",\"dateModified\":\"2015-06-23T05:25:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/#\/schema\/person\/d6f54dbda254c30373f777c3afc1ee85\"},\"description\":\"Hyper-V version 3 with Windows Server 2012 has a new feature which dynamically allocates memory (RAM) on a Windows virtual machine. What is that? Let's see together...\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/hyper-v-dynamic-memory-best-practices\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esds.co.in\/kb\/hyper-v-dynamic-memory-best-practices\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/hyper-v-dynamic-memory-best-practices\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/\",\"url\":\"https:\/\/www.esds.co.in\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/hyper-v-dynamic-memory-best-practices\/\",\"url\":\"https:\/\/www.esds.co.in\/kb\/hyper-v-dynamic-memory-best-practices\/\",\"name\":\"Hyper-V Dynamic Memory Best Practices\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#\/schema\/person\/d6f54dbda254c30373f777c3afc1ee85\",\"name\":\"Nilesh\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0ee75c69a8018595f3d1cfb1fc7e524e?s=96&d=mm&r=g\",\"caption\":\"Nilesh\"},\"description\":\"IT tech writer for over 5 years, at ESDS I am to you for the web hosting sector news and technical insights. I also discuss in the context of substantive issues such as new programming languages, high-performance computing and open source.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/2727"}],"collection":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/comments?post=2727"}],"version-history":[{"count":31,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/2727\/revisions"}],"predecessor-version":[{"id":2889,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/2727\/revisions\/2889"}],"wp:attachment":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/media?parent=2727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/categories?post=2727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/tags?post=2727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}