Best Practices for Page File and Minimum Drive Size for OS Partition on Windows Servers

Best Practices for Page File and Minimum Drive Size for OS Partition on Windows Servers

Applies to: Windows Server 2003/R2, Windows Server 2008, Windows Server 2008 R2 and Windows Server 2012

Context:

In forums every now and then people ask questions about setting up page files on Windows Servers, Minimum disk size for OS partition and their best practices. Hence I thought of writing my views in this Wiki article !

If you are  reading this article I presume that, you might know What is Pagefile in Windows and why that is needed etc..., I am not going to write the stuff which can be searched and found easily. 

Description:

*** Here are the best practices which I follow, they are NOT Microsoft Recommendations !!! ***

As a best practice, you need to set page file "1.5 times" the RAM or memory available on any Windows Servers.

Servers hosting Databases or resource hungry applications like SAP are recommended to have page file set "3 times" the the RAM or memory available.

Also, it is recommended to split page file on two different drives (Preferably on two different Physical/Virtual Disks) on the server for better disk I/O performance. 

For Windows Server 2003, OS (C drive) partition size should be set as 40 GB irrespective of OS version (Std, Ent etc…) and platform (32bit or 64bit) and C drive should have 4 GB page file.

For Windows 2008, Windows Server 2008R2 and Windows Server 2012,  OS (C drive) partition size should be set as 66 GB irrespective of OS version (Std, Ent etc…)  and platform (32bit or 64bit) and C drive should have 6 GB page file.

Is it OK to split page file ? Is that an recommended approach ?

Answer is Yes !

Now a days, usually servers have more than 16 GB RAM in an Enterprise level setup.Here is an example with which I would try to explain how you can split the page file.

Say, you have 16 GB RAM on a server, 1.5 times the RAM 16 GB = 24 GB;  you need to set 24 GB Page file on the Server.

Now, how would you distribute the page file ? Here is the way,

You need to create a separate Drive (Let's say drive P)  and split the Page file (other than the preset page file on C drive).

For Windows Server 2003, C drive already has 4 GB, now on a newly created drive P,  set 20 GB page file (i.e. 24 - 4=20 GB), make sure you have at least 25 GB "P" Drive to accommodate 20 GB page file.

For Windows 2008, Windows Server 2008R2 and Windows Server 2012, C drive already has 6 GB, now on a newly created drive P, set 18 GB page file (i.e. 24 - 6=18 GB), make sure you have at least 23 - 25 GB "P" Drive to accommodate 18 GB page file.

What is the recommended size for page file  if server has 128 GB or 256 GB or 512 GB or 1 TB RAM ?

Theoretical answer is, page file should be 1.5 times the RAM available on server however, practically it's not always feasible  to set huge amount of page file on server as it requires very large disk space. For the server's with heavy amount of RAM, you might want to limit the Page File size equal to 128 GB at least.

P.S. You may choose OS partition size as more than 66 GB as well such has 70 GB or 80 GB. However, pagefile calculations remains the same.

Hope that helps.

- End of the article -

See Also:

What is the Page File for anyway?

Learn Best Practices for Optimizing the Virtual Memory Configuration

Adjusting Paging File Size - Old article however, contents are still relevant !

Community Content:

What are the maximum and minimum pagefile recommendation for Windows server 2008 R2 sp1? 

The free space of C Drive is gradually decreasing daily  

Windows Server 2012 - Page File Recommendations

Page file.sys

Page File Configuration Settings Best Practices

Best Practice : Page File Management

pagefile best practice

Windows 2008 R2 Paging File Best Practice

Gold Image Build setting question

Windows 2008 Web server pagefile

pagefile.sys is full

.
Leave a Comment
  • Please add 3 and 5 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Comments
  • Santosh Bhandarkar edited Revision 15. Comment: tags update  

  • Santosh Bhandarkar edited Revision 12. Comment: a typo corrected ! Philippe (Yagmoth555), thanks for fixing earlier typo's :-)

  • Ed Price - MSFT edited Revision 13. Comment: Title casing. Tags.

  • Santosh Bhandarkar edited Revision 18. Comment: minor update

  • Santosh Bhandarkar edited Original. Comment: Tags Update

  • FZB edited Revision 1. Comment: typo

  • Santosh Bhandarkar edited Revision 2. Comment: update

  • Santosh Bhandarkar edited Revision 3. Comment: Tags Update

  • Santosh Bhandarkar edited Revision 4. Comment: Tags Update

  • Santosh Bhandarkar edited Revision 5. Comment: Tags Update

Page 1 of 2 (15 items) 12
Wikis - Comment List
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Santosh Bhandarkar edited Revision 15. Comment: tags update  

  • Santosh Bhandarkar edited Revision 12. Comment: a typo corrected ! Philippe (Yagmoth555), thanks for fixing earlier typo's :-)

  • Ed Price - MSFT edited Revision 13. Comment: Title casing. Tags.

  • Santosh Bhandarkar edited Revision 18. Comment: minor update

  • @wallyb132, thanks for pointing out the discrepancy. I have updated the article now.

    I was referring about placing page files on 2 different physical/virtual disks. In case of Virtual Machines, you will have a freedom to add additional virtual disk as and when needed. however, in case of physical server, if you  have only one disk (Which is a rare case now a days, most of the servers will have more than 2 disks), you may create a partition on that single disk and split the page file.

  • Santosh, maybe you can get some enlightment from Mark Russinovich on why using a simple formula for pagefile is wrong:

    blogs.technet.com/.../3155406.aspx

  • Thanks for a wonderful article, but most of our servers meets the pre-requisites given for a page file allocation but still we are getting alerts on high page file usage over 90%. Welcome your comments on it for a workaround !!!!

  • Can you clarify your meaning of "it is recommended to split page file on two different drives on the server for better disk I/O performance"

    Are you talking about using 2 separate physical drives or 2 different partitions, your article is unclear.

  • @ rogers_15, Please see my reply in the forum thread which had started : social.technet.microsoft.com/.../optimize-page-file-usage

  • Santosh Bhandarkar edited Original. Comment: Tags Update

  • FZB edited Revision 1. Comment: typo

  • Santosh Bhandarkar edited Revision 2. Comment: update

  • Santosh Bhandarkar edited Revision 3. Comment: Tags Update

  • Santosh Bhandarkar edited Revision 4. Comment: Tags Update

  • Santosh Bhandarkar edited Revision 5. Comment: Tags Update

Page 1 of 3 (31 items) 123