Performance Settings and pagefile.sys Should be Investigated after Upgrading RAM on Windows
After upgrading the RAM on your Windows XP or Windows Vista computer (laptops and desktops) you should review your performance settings. The primary concern will be your pagefile.sys size to make sure it matches or exceeds the amount of RAM you have in the computer. For those of us that are familiar with Linux more so than Windows the pagefile is also called the swap file in Windows. The pagefile or swap file is used for anything that won’t fit into RAM so technically it is an overflow for RAM so the excess has somewhere to go.
RAM: Random Access Memory
The general rule on a Windows PC is to have the the pagefile.sys be 1.5 times the size of the amount of RAM in the computer. If you have 2 Gigabytes of RAM then you would want the pagefile to be 3 Gigabytes. If you had 1 GB of RAM you would want your pagefile to be 1.5 GB in size. I have found on my Windows XP laptop that I get the best performance with a pagefile.sys size of 2 Gigabytes when I have 2 gigabytes of RAM installed. I made sure to test the amount of data being dumped into the pagefile and over a longer period of time the peak usage of the pagefile. To test this on Windows XP download WinXP-2K_Pagefile.zipthat includes numerous pagefile tools created by Bill James. The specific tool I used from that zip file is WinXP-2K_Pagefile.vbs and will display the current pagefile size, the location of the file, the current usage, and the session peak usage. Extract the contents of the zip file you have downloaded and then double click the WinXP-2K_Pagefile.vbs application. You will see results like the below.
To get an accurate reading start some of the more memory intensive applications you run from time to time such as Adobe Photoshop or something similar. You should see the pagefile size really jump up after opening an application like that which will give you a more real world reading than if no applications are open.
If you decide that the current setting is not satisfactory then you can modify the pagefile settings by following the below instructions.
- Run an Application: Click the start button in the lower left of your Windows XP computer and then click on Run.
- System Properties:Start the System Properties application by typing sysdm.cpl into the run box and clicking enter.
- Advanced Settings: Now click the Advanced tab to bring up the Advanced System Properties.
- Performance Settings: Now click the Settings button under the Performance heading.
- Advanced Performance Options: Now you will click on the Advanced tab which brings up the Advanced Performance Options and will look like the below.
- Virtual Memory:Click the Change button under the Virtual Memory heading to modify the pagefile settings. You will see a window like the below.
- Custom Size: I recommend creating a custom size and entering the same size for Initial and Maximum sizes based on your testing the the VBS script previously. In my case the Initial and Maximum settings were 2048 MB or 2 GB.
- Save Settings: Click OK out of the Virtual Memory settings, then click OK out of the Performance Options Settings, click Apply in System Properties, and lastly OK in System Properties.
- Restart and Verify: You will be required to reboot for the settings to take effect so close all applications and then reboot. Once the computer is restarted click on the Visual Basic Script to make sure the settings have taken effect.
Visit this URL for other performance settings that can help improve performance with both Windows XP and Windows Vista.