Академический Документы
Профессиональный Документы
Культура Документы
Windows 2008 R2
Article ID: 2021748 - View products that this article applies to.
System TipThis article applies to a different version of Windows than the one you are using. Content in
this article may not be relevant to you. Visit the Windows 7 Solution Center
Expand all | Collapse all
Summary
The 64-bit versions of Microsoft Windows Server 2008 and Microsoft Windows Server 2008 R2 can
support more RAM than the 32-bit versions of Windows Server. When lots of memory is added to a
computer, a paging file may not be required. When you use the Memory-Pages/sec counter to measure
paging file use, the value that is returned may not be accurate. To obtain an accurate measurement of
paging file use, you must also use other performance counters. You can use System Monitor
measurements to calculate the size of the paging file that your computer requires.
Windows Server 2008 and Windows Server 2008 R2 Domain Controllers and DFS Replication, Certificate
and ADAM/LDS Servers are not supported without a configured pagefile. Because the algorithm the
LSASS database cache depends on the "transition pages repurposed/second" perfmon counter, a
pagefile is required to make sure that the database cache is capable to release memory if memory is
requested by other services or applications.
INTRODUCTION
When you set up a 64-bit version of Microsoft Microsoft Windows Server 2008 and Microsoft Windows
Server 2008 R2, the operating system will create a page file that is auto managed (Automatically
manage paging file size for all drives) in your computer. However, as the amount of RAM in a computer
increases, the need for a page file may decrease. The following guidelines and methods will help you
determine the appropriate page file size for your system.
Comparison of memory and CPU limits in the 32-bit and 64-bit versions of Windows
When you set up a 64-bit version of Windows Server 2008 or Windows Server 2008 R2, a page file is
created that is depeding on how much RAM is installed and provided there is sufficient free space on the
system hard disk:
The more RAM that you have available or is added to a computer, it generally tends to decrease the size
of the page file needed. If you have enough RAM installed in your computer, you may not require a
page file at all, unless one is required by a specific application. This all depends on how much virtual
memory is used by your system and/or applications installed.
System Memory Size (RAM) Minimum Page File Size Maximum Page File Size
Windows XP and Windows Server 2003 <1GB 1.5 x RAM 3 x RAM
Windows XP and Windows Server 2003 >= 1 x RAM 3 x RAM
1GB
Table 1. Default Page File Sizes for Windows XP and Windows Server 2003.
System Memory Size (RAM) Minimum Page File Size Maximum Page File Size
<1GB Large enough to hold a 3 x RAM or 4GB, whichever is
kernel-memory crash larger
dump and is RAM plus
300MB or 1GB, whichever
is larger
>= 1GB Large enough to hold a 3 x RAM or 4GB, whichever is
kernel-memory crash larger
dump and is RAM plus
300MB or 1GB, whichever
is larger
Table 2. Default Page File Sizes for Windows Vista, Windows Server 2008, Windows 7 and Windows
Server 2008 R2.
Source: "Windows Internals" 5th edition Chapter 9: Memory Management Page 781.
The following chart illustrates the amount of RAM and the number of CPUs that can be installed on a
computer depending on the operating system that is installed. RAM and CPU limits are much larger in
64-bit Windows Server 2008/Windows Server 2008 R2 operating systems than in 32-bit Windows Server
2008 operating systems.
Windows Server 2008, Standard Edition 4 GB / 1-4 Socket for 32 GB / 1-4 Sockets for CPUs
CPUs
Windows Server 2008, Enterprise Edition 64 GB / 1-8 Socket for 2 terabyte / 1-8 Sockets for
CPUs CPUs
Windows Server 2008, Datacenter Edition 64 GB / 1-64 Socket for 2 terabyte / 1-64 Sockets for
CPUs CPUs
Windows HPC Server 2008 N/A 128GB /1-4 Sockets for CPUs
Windows 7, Professional, Enterprise and 4 GB / 1-4 CPUs 192 GB / 1-4 Sockets for CPUs
Ultimate Editions
Windows Server 2008 R2, Foundation Edition N/A 8GB / 1 Socket for CPUs
There is no specific recommendation for page file size. Your requirements will be based on the
hardware and software that you use and the load that you put on the computer.
To monitor page file usage and requirements, you could use various tools such as:
1. Process Explorer
or
Use one or more of the following methods to help you calculate page file size.
Peak/Limit ____ %
Current/Limit ____%
Warning: You should let the system run thru at least a week, preferably a month to get a good "Commit
Charge Peak (K)"
private virtual memory (called private because it cannot be shared such as garbage
collector heap, native heap and language allocators)
and
handle.exe -a -l -p ApplicationName.exe
Note Not all virtual memory accounts towards the commit limit such as:
or
File Mapping View (virtual memory that represents a file on the disk)
To monitor page file usage and requirements, run Sysmon, and gather a log during typical usage
conditions. Focus on the following counters.
Note Page file use should be tracked periodically. When you increase the use or the load on the system,
you generally increase the demand for virtual address space and page file space.
When you use System Monitor, the values that are returned by the Pages/sec counter for the Memory
performance object may be more than you expect. These values may not be related to either paging file
activity or cache activity. Instead, these values may be caused by an application that is sequentially
reading a memory-mapped file.
The Pages/sec counter counts the number of pages that are read from the disk or that are written to the
disk to resolve memory references to pages. These pages were not in memory at the time of the
reference. The Pages/sec value is the sum of the Pages Input/sec and Pages Output/sec counter values.
The Pages/sec counter includes paging traffic on behalf of the system cache to access file data for
applications.
Pages/sec is the primary counter to watch if you are concerned about excessive memory pressure
(thrashing) and the excessive paging that may result.
However, the Pages/sec counter also accounts for other activity, such as the sequential reading of
memory-mapped files that are either cached or not. Typically, the Pages/sec counter is counting other
activity when you see the following:
Therefore, a high value for the Memory: Pages/sec counter does not necessarily indicate memory
pressure or a System Monitor reporting error. To gain an accurate reading of your system, you must also
monitor other counters.
Use one or more of the following methods to help you calculate page file size.
Method 2: Use performance logs to understand the paging activity on your computer
1. Click Start , point to Administrative Tools , and then click Performance Monitor.
2. Expand Data Collector Sets , right-click User Defined, click on New, click on the "Data
Collector Set".
3. In the Name box, type a name for the log, and then click OK .
4. Select the radio button named Create manually (advanced), click on Next.
5. Select the radio button named Create data logs:, and then check the box for Performance
counter, click on Next.
6. Under the "Which performance counters would you like to log?" Click Add...
7. Under "Select counters from computer", leave <Local computer>.
8. In the Performance object list, click Paging File and then select % Usage
9. Under "Instances of selected object:" select the pagefile such as \\?\C:\pagefile.sys. Click on
Add>>
10. In the Performance object list, click Memory and then click Available MBytes , and then click
Add>>.
11. Click Pages Input/sec , click Add>> , and then click OK .
12. Under "Sample interval:" change it to the interval that you want (15 seconds is the default)
13. Click Next twice
14. Click Finish
Please stop the performance log after a week or whatever time period that you choose.
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 3: Use the Page File Bytes Peak counter to calculate page file size
Click on Start
<<Start Search>>, enter "CMD.exe" w/o the quotation marks and then press Enter.
Please stop the performance log after a week or whatever time period that you choose.
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.
To avoid overloading the system or other disks with page input/output (I/O) activity, use the following
guidelines when you set up the page file on your computer:
• If the page I/O (real disk I/O) rate is more than 10 pages per second, we recommend that you
do not put the page file where the I/O activity occurs on the system disk. When the page I/O
rate is 10 pages per second or more, we recommend that you dedicate a separate hard disk
for paging.
• If the page I/O rate to a particular disk that is used for paging is more than 60 disk I/O
operations per second, use more than one dedicated page hard disk to obtain better
performance. To do this, use multiple non-striped disks for paging, or use raid 0 striped disks
for paging. Dedicate approximately one I/O hard disk to paging for every 60 pages per second
of I/O activity.
For example, if a system is averaging 150 pages of I/O activity per second, use three individual
hard disks, or a three-disk raid 0 stripe set for the page file.
Note These estimates are for hard disks that run at 7200 revolutions per minute (rpm). If you
use a hard disk that runs faster, the I/O rate a disk can handle for page I/O will increase.
Note If peak performance is critical to your system, use peak I/O rates instead of average I/O
rates for these calculations.
This article is specifically for computers that do not need kernel mode or full memory dump analysis. For
business-critical servers where business processes require to server to capture physical memory dumps
for analysis, the traditional model of the page file should be at least the size of physical ram plus 1 MB.
This makes sure that the free disk space of the operating system partition is large enough to hold the
OS, hotfixes, installed applications, installed services, a dump file, and the page file. On a server that has
32 GB of memory, drive C may have to be at least 86 GB to 90 GB. This is 32 GB for memory dump, 48
GB for the page file (1.5 times the physical memory), 4 GB for the operating system, and 2 to 4 GB for
the applications, the installed services, the temp files, and so on. Remember that a driver or kernel
mode service leak could consume all free physical RAM. Therefore, a x64 Windows Server 2008 or x64
Windows Server 2008 R2-based server in 64-bit mode with 32GB of RAM could have a 32 GB kernel
memory dump file, where you would expect only a 1 to 2 GB dump file in 32-bit mode. This behavior
occurs because of the greatly increased memory pools.
Note: What is a modified list? Modified lists represent pages that are not being accessed actively but
have not been saved to disk.
Maximum number of 16 16 16
paging files
Total paging file size 64 gigabytes (non-PAE) 256 terabytes 512 terabytes
256 terabytes (PAE)
Answer: Because there is no Commited Bytes Peak, you cannot get a good reading of what your system
looks like over time, let's say within 1 week or 2 weeks or a months period of utilization.