Recently I was asked to help troubleshoot performance issues on an older, seasoned SharePoint 2007 installation. (No Developer Dashboards here!). We ran through a lot of performance counters, checked the SQL performance, and made sure that indexing and backups weren’t coinciding with business hours. All good. So why were the pages so sluggish?
Looking at counters on the web front end server showed the server was swapping memory. A lot. The server originally began life with only 2-4GB of RAM and a single 60GB hard disk. Over time, it had grown to 16GB of RAM with an extra 500GB disk for index files (so, a lot of free space there!) However, we found that the page file (previously known as the swap file!) was still locked at 2GB. Expanding this to about 24GB, spread across multiple local disks, really improved not only system performance but also perceptions of system responsiveness.
To sum up -- do NOT assume you don’t need page files, even on virtualized servers. The general rule of thumb – Microsoft recommends the total page file size should be 1-3X the size of total physical RAM. (If you allow Windows to automatically regulate this, the size is usually OK. Further details can be found at http://support.microsoft.com/kb/2021748 (see below for summary tables).
Default Page File Sizes for Windows XP and Windows Server 2003.
|
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 >= 1GB |
1 x RAM |
3 x RAM |
Default Page File Sizes for Windows Vista, Windows Server 2008, Windows 7 and Windows Server 2008 R2.
|
System Memory Size (RAM) |
Minimum Page File Size |
Maximum Page File Size |
|
<1GB |
Large enough to hold a kernel-memory crash dump and is RAM plus 300MB or 1GB, whichever is larger |
3 x RAM or 4GB, whichever is larger |
|
>= 1GB |
Large enough to hold a kernel-memory crash dump and is RAM plus 300MB or 1GB, whichever is larger |
3 x RAM or 4GB, whichever is larger |
I’m at SPTechCon on Boston all week – will share more shortly!