{"id":392,"date":"2018-06-26T18:04:33","date_gmt":"2018-06-26T16:04:33","guid":{"rendered":"http:\/\/hentati.org\/?p=392"},"modified":"2020-11-25T20:31:40","modified_gmt":"2020-11-25T19:31:40","slug":"how-to-optimize-your-paging-file","status":"publish","type":"post","link":"https:\/\/hentati.org\/index.php\/2018\/06\/26\/how-to-optimize-your-paging-file\/","title":{"rendered":"HOW TO OPTIMIZE YOUR PAGING FILE"},"content":{"rendered":"<p><span style=\"color: #000000;\">Today I will\u00a0share with you my best practices for configuring the paging file in Windows Server 2008 and 2012.<\/span><\/p>\n<p><span style=\"color: #000000;\">Paging file seems to be a very popular subject, as we get questions about it all the time. Many customers are configuring the paging file incorrectly, based on outdated rules-of-thumb that are no longer apply to modern operating systems like Windows Server 2008 and above.<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>Memory, Paging and Paging file<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">Let&#8217;s start with the basics: Windows memory management is based on Virtual Memory, where each process has its own private virtual address space. Windows will move the least used memory pages to a hidden file called the\u00a0page file, when approaching a low memory condition.<\/span><\/p>\n<p><span style=\"color: #000000;\">The Page file is a special file used by Windows to store modified pages, and the process of moving pages from RAM to the Page file is called &#8220;Paging&#8221;.<\/span><\/p>\n<p><span style=\"color: #000000;\">Page files have two primary roles:<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Physical extensions of RAM that store modified data<\/span><\/li>\n<li><span style=\"color: #000000;\">Record information about the state of the system in case of a system crashes<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">I will explain the size requirements for each role.<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>Physical extensions of RAM<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">If your server\u00a0exhausted all available RAM and you don&#8217;t have a page file, applications will crash or hang because Windows is unable to allocate more memory. Even worse, In some cases Windows itself can become unstable.<\/span><\/p>\n<p><span style=\"color: #000000;\">Windows Commit Limit, also known as system commit, is the sum of current paging files\u2019 size and the physical memory that Windows can use to allocate memory.\u00a0For example:\u00a0If you have a 16 GB RAM and a 16 GB paging file, then your commit limit is 32 GB.<\/span><\/p>\n<p><span style=\"color: #000000;\">The Commit Limit can be increased by either changing the current paging files` size, adding new paging files or by adding more RAM.<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>Crash dump size<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">On business-critical servers it&#8217;s recommended to configure the server to capture memory dumps for analysis. Windows is using the paging file as a placeholder for memory dumps, meaning that Windows is writing the crash dump first in the page file, and then the SMSS process copies it to a different memory dump file.<\/span><\/p>\n<p><span style=\"color: #000000;\">This\u00a0have an effect on the page file size, because it needs to accommodate all the information Windows recording during a crash, more on this later.<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>Sizing the paging file<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">The old rules of thumb\u00a0(<strong>Page file size = RAM * 1.5 or RAM * 2<\/strong>) makes no sense in modern systems, where the logic should be: the more RAM you have, the less you need paging file.<\/span><\/p>\n<p><span style=\"color: #000000;\">So, how should you size your Page File?<\/span><\/p>\n<p><span style=\"color: #000000;\">Well, we don&#8217;t have a magical value that will fit any system and any workload. It really depends on the specific workload and the type of server.<\/span><\/p>\n<p><span style=\"color: #000000;\">When sizing the page file we need to consider our applications memory needs and\u00a0crash dump settings.<\/span><\/p>\n<h2><span style=\"color: #000000;\">\u00a0<\/span><\/h2>\n<h2><span style=\"color: #000000;\"><strong>How To Optimize Your Paging File<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">Now that you have a good understanding of the context and rules to optimize the paging file, it\u2019s time to actually dig into the settings themselves. It\u2019s up to you to decide what specific settings to use based on your specific configuration.<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">First, open the start menu and then type\u00a0<strong>performance\u00a0<\/strong>into the search bar.<\/span><\/li>\n<li><span style=\"color: #000000;\">Look for\u00a0<strong>Adjust the appearance and performance of Windows<\/strong>\u00a0under the settings category as you can see in the screenshot below.<\/span><\/li>\n<\/ul>\n<div class=\"lazy wp-block-image\">\n<figure class=\"lazy aligncenter\"><span style=\"color: #000000;\"><img class=\"lazy wp-image-64735\" src=\"https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Performance-Start-Menu-1.jpg.webp\" sizes=\"(max-width: 360px) 100vw, 360px\" srcset=\"https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Performance-Start-Menu-1.jpg.webp 360w, https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Performance-Start-Menu-1-300x167.jpg.webp 300w, https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Performance-Start-Menu-1-80x44.jpg.webp 80w\" alt=\"\" data-original=\"https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Performance-Start-Menu-1.jpg.webp\" \/><\/span><\/figure>\n<\/div>\n<ul>\n<li><span style=\"color: #000000;\">The\u00a0<strong>Performance Options<\/strong>\u00a0window should now open. Switch to the<strong>\u00a0advanced\u00a0<\/strong>tab.<\/span><\/li>\n<\/ul>\n<div class=\"lazy wp-block-image\">\n<figure class=\"lazy aligncenter\"><span style=\"color: #000000;\"><img class=\"lazy wp-image-64736\" src=\"https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Performance-Options-Advanced-Tab-1.jpg.webp\" sizes=\"(max-width: 417px) 100vw, 417px\" srcset=\"https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Performance-Options-Advanced-Tab-1.jpg.webp 417w, https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Performance-Options-Advanced-Tab-1-300x245.jpg.webp 300w, https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Performance-Options-Advanced-Tab-1-61x50.jpg.webp 61w\" alt=\"\" data-original=\"https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Performance-Options-Advanced-Tab-1.jpg.webp\" \/><\/span><\/figure>\n<\/div>\n<ul>\n<li><span style=\"color: #000000;\">With the\u00a0<strong>Advanced<\/strong>\u00a0tab open, click on\u00a0<strong>Change\u00a0<\/strong>under the\u00a0<strong>Virtual memory<\/strong>\u00a0section.<\/span><\/li>\n<\/ul>\n<div class=\"lazy wp-block-image\">\n<figure class=\"lazy aligncenter\"><span style=\"color: #000000;\"><img class=\"lazy wp-image-64737\" src=\"https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Performance-Options-Advanced-Tab-Change-VM-1.jpg.webp\" sizes=\"(max-width: 417px) 100vw, 417px\" srcset=\"https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Performance-Options-Advanced-Tab-Change-VM-1.jpg.webp 417w, https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Performance-Options-Advanced-Tab-Change-VM-1-300x245.jpg.webp 300w, https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Performance-Options-Advanced-Tab-Change-VM-1-61x50.jpg.webp 61w\" alt=\"\" data-original=\"https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Performance-Options-Advanced-Tab-Change-VM-1.jpg.webp\" \/><\/span><\/figure>\n<\/div>\n<ul>\n<li><span style=\"color: #000000;\">The Virtual Memory window will now open. All of the options are greyed out by default. So first we have to uncheck\u00a0<strong>Automatically manage paging file size for all drives.<\/strong><\/span><\/li>\n<\/ul>\n<div class=\"lazy wp-block-image\">\n<figure class=\"lazy aligncenter\"><span style=\"color: #000000;\"><img class=\"lazy wp-image-64738\" src=\"https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/VM-Uncheck-Auto-1.jpg.webp\" sizes=\"(max-width: 392px) 100vw, 392px\" srcset=\"https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/VM-Uncheck-Auto-1.jpg.webp 392w, https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/VM-Uncheck-Auto-1-300x150.jpg.webp 300w, https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/VM-Uncheck-Auto-1-80x40.jpg.webp 80w\" alt=\"\" data-original=\"https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/VM-Uncheck-Auto-1.jpg.webp\" \/><\/span><\/figure>\n<\/div>\n<ul>\n<li><span style=\"color: #000000;\">Now you\u2019ll see the following options open up for you to change.<\/span><\/li>\n<\/ul>\n<div class=\"lazy wp-block-image\">\n<figure class=\"lazy aligncenter\"><span style=\"color: #000000;\"><img class=\"lazy wp-image-64739\" src=\"https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Vm-Custom-Settings-1.jpg.webp\" sizes=\"(max-width: 396px) 100vw, 396px\" srcset=\"https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Vm-Custom-Settings-1.jpg.webp 396w, https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Vm-Custom-Settings-1-227x300.jpg.webp 227w, https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Vm-Custom-Settings-1-38x50.jpg.webp 38w\" alt=\"\" data-original=\"https:\/\/www.online-tech-tips.com\/wp-content\/uploads\/2019\/10\/Vm-Custom-Settings-1.jpg.webp\" \/><\/span><\/figure>\n<\/div>\n<ul>\n<li><span style=\"color: #000000;\">Each drive\u2019s settings can be managed independently. Click on the desired drive in the window above to change its specific settings. Logical partitions will also show up as independent drives.<\/span><\/li>\n<li><span style=\"color: #000000;\">Select\u00a0<strong>custom size\u00a0<\/strong>to specify your own minimum and maximum paging file size. Select\u00a0<strong>No Paging File<\/strong>\u00a0if you don\u2019t want a particular drive to have one at all.<\/span><\/li>\n<li><span style=\"color: #000000;\">The default automatic behavior is to have a minimum size 1.5 times the amount of actual RAM. We don\u2019t recommend you choose a minimum size below this. Once you have set a particular drive the way you like it, remember to click\u00a0<strong>Set\u00a0<\/strong>to lock those choices in.<\/span><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Today I will\u00a0share with you my best practices for configuring the paging file in Windows Server 2008 and 2012. Paging file seems to be a very popular subject, as we &#8230;<\/p>\n","protected":false},"author":1,"featured_media":396,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/posts\/392"}],"collection":[{"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/comments?post=392"}],"version-history":[{"count":3,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/posts\/392\/revisions"}],"predecessor-version":[{"id":446,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/posts\/392\/revisions\/446"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/media\/396"}],"wp:attachment":[{"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/media?parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/categories?post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/tags?post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}