Best Practices – How to calculate page file size (pagefile) on windows server 2008 R2 / 2012

Problem:

How to calculate page file size

Solution:

Applied to: Microsoft Windows Server 2008 R2 and 2012

http://support.microsoft.com/kb/889654

Use one or more of the following methods to help you calculate page file size.

Method 1: Use performance logs to understand the paging activity on your computer

  1. Click Start, point to Administrative Tools, and then click Performance.
  2. Expand Performance Logs and Alerts, click Counter Logs, right-click the blank space in the right-pane, and then clickNew Log Settings.
  3. In the Name box, type a name for the log, and then click OK.
  4. On the General tab, click Add Counters.
  5. Click Use local computer counters.
  6. In the Performance object list, click Paging File.
  7. Click Select counters from list, click % Usage, and then click Add.
  8. In the Performance object list, click Memory.
  9. In Select counters from list, click Available Bytes, and then click Add.
  10. In Select counters from list, click Pages Input/sec, click Add, and then click Close.
  11. Click OK.

Use the log that you collect during typical computer use to understand the paging activity on your computer. Then, adjust the page file size accordingly.

Method 2: Use the Page File Bytes Peak counter to calculate page file size

  1. Click Start, point to Administrative Tools, and then click Performance.
  2. Click System Monitor.
  3. In the right pane, click + (the Add button).
  4. Click Use local computer counters.
  5. In the Performance object list, click Process.
  6. Click Select counters from list, click Page File Bytes Peak, click Add, and then click Close.
  7. Let the counter run during typical use of your computer.
  8. Note the maximum value for the Page File Bytes Peak counter, and then multiply the value by 0.70. The sum of the equation is the size to set for your page file.

Method 3: Calculate the minimum and maximum page file size

To determine the approximate minimum page file that is required by your system, calculate the sum of peak private bytes that are used by each process on the system. Then, subtract the amount of memory on the system.

To determine the approximate maximum page file space that is required for your system, calculate the sum of peak private bytes that are used by each process on the system. Then, add a margin of additional space. Do not subtract the amount of memory on the system. The size of the additional margin can be adjusted based on your confidence in the snapshot data that is used to estimate page file requirements.

Note This estimate is accurate only if the snapshot of data that is used to make the calculations is accurate.

Best Regards,

ITquadro – specialized Blog

ITquadro consulenti informatici specializzati in ambienti microsoft windows server 2008 R2 e Microsoft Windows Server 2012. Ci trovate su Bologna ed Emilia-Romagna ma anche su Milano e Roma.
Siamo un’azienda di consulenza informatica a Bologna