PDA

View Full Version : Tweaking the Pagefile of Windows


laurentio
8th March 2009, 06:07 PM
Registry Values:
Even when you set the values properly, some systems don't retain your settings. If this happens, perform the following steps:


Start regedt32.exe (not regedit.exe)
Go to

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session Manager\Memory Management

Double-click PagingFiles. The entry will appear as
D:\pagefile.sys 700 700
The first value is the location; the second is the minimum size; and the third is the maximum size.
Ensure the values are correct and click OK.
Reboot the machine.


Pagefile Fragmentation
If the Pagefile gets fragmented your system's performance will decrease. System Internals has released PageDefrag, a free utility that shows fragmentation in the Pagefile and then offers the option of defragmentation at boot time. The utility can be downloaded from HERE (http://www.microsoft.com/technet/sysinternals/utilities/PageDefrag.mspx)http://www.petri.co.il/images/link_out_ico.gif
Once you download just unzip the file and run pagedfrg.exe. Below is a sample output:

http://support.bicestercomputers.co.uk/attachment.php?attachmentid=143&stc=1&d=1236535560


Group Policy Settings
There are a few Group Policy settings available for use.
Create a Pagefile:
Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights AssignmentThis setting determines which users and groups can create and change the size of a Pagefile. You can create a Pagefile by specifying a paging file size for a given drive in System Properties Performance Options.
Default: Administrators


Shutdown: Clear virtual memory Pagefile:
Computer Configuration\Windows Settings\Security Settings\Local Policies\Security OptionsThis setting determines whether the virtual memory Pagefile is cleared when the system is shut down. On a running system, the Pagefile is opened exclusively by the operating system, and it is well protected. However, systems that are configured to allow booting to other operating systems might have to make sure that the system Pagefile is wiped clean when this system shuts down. This ensures that sensitive information from process memory that might go into the Pagefile is not available to an unauthorized user who manages to directly access the Pagefile.
When this policy is enabled, it causes the system Pagefile to be cleared upon clean shutdown. If you enable this security option, the hibernation file (hiberfil.sys) is also zeroed out when hibernation is disabled on a portable computer system.
Default: Disabled