A few words of thanks would be greatly appreciated.

Pagefile.sys File

The Microsoft Windows operating system stores frames of memory that does not fit into the physical memory in the pagefile.sys file. Pagefile.sys is a system file that allows running tasks even when the physical memory has been exceeded. This guide will explain all you need to know about a Pagefile.sys file.

What is pagefile.sys

Pagefile.sys is a file that is used by Microsoft Windows to store frames of memory that do not currently fit into physical memory. This means the system can run more tasks than the memory has enough physical space for and simply swap frames in and out of the memory as required.

Cleaning the pagefile.sys at system shutdown increases the performance of the system. To clean the pagefile.sys, modifications have to be made to the ClearPageFileAtShutdown key value in the Windows registry.

How to Access the Registry

The registry can be accessed by the REGEDIT command. Once the changes have been made, the system has to be restarted for the modifications to take effect. Cleaning the pagefile.sys system file also results in a virtual memory extension.

Virtual Memory Extension

This technique allows you to extend your virtual memory.

In some versions of Windows, you can clean the file pagefile.sys to improve its overall performance. This can be done by creating or modifying the REG_DWORD value from 1 to 0 in the registry key ClearPageFileAtShutdown. This is located here:
HKEY_LOCAL_Machine\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management.

To do this:

  • Open the Start menu, click Run and type: regedit
  • Locate the key and alter the value as directed above.
  • Reboot your machine

This system file is locaed under the root: C:\Pagefile.sys
Photo by Philipp Katzenberger on Unsplash

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
This document, titled « Pagefile.sys File », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).

Subscribe To Our Newsletter!

The Best of CCM in Your Inbox

Subscribe To Our Newsletter!