paging file – Windows Blog by Brink

paging file

Enable or Disable Clear Virtual Memory Paging File at Shutdown in Windows 11

A paging file (aka: “page file” and “virtual memory”) enables the system to remove infrequently accessed modified data from physical memory to let the system use physical memory more efficiently for more frequently accessed data. Windows also uses the page file to store data when physical memory (RAM) is full.

The Shutdown: Clear virtual memory pagefile policy setting determines whether the virtual memory paging file is cleared when the device is shut down or restarted. Virtual memory support uses a system paging file to swap pages of memory to disk when they aren’t used. On a running device, this paging file is opened exclusively by the operating system, and it’s well protected. However, devices that are configured to allow other operating systems to start should verify that the system paging file is cleared as the device shuts down. This confirmation ensures that sensitive information from process memory that might be placed in the paging file isn’t available to an unauthorized user who manages to directly access the paging file after shutdown.

Important information that is kept in real memory might be written periodically to the paging file. This periodical write-operation helps devices handle multitasking functions. A malicious user who has physical access to a server that has been shut down can view the contents of the paging file. The attacker can move the system volume into a different computer and then analyze the contents of the paging file. This process is a time-consuming one, but it can expose data that is cached from RAM to the paging file. A malicious user who has physical access to the server can bypass this countermeasure by unplugging the server from its power source.

Enabling the Shutdown: Clear virtual memory pagefile policy causes the amount of time that is required to complete a shut down or restart depends on the size of the page file. It takes longer to shut down and restart the device, especially on devices with large paging files. Because the process overwrites the storage area that is used by the page file several times, it could be several minutes before the device completely shuts down or restarts.

This tutorial will show you how to enable or disable clear virtual memory paging file at shutdown or restart for all users in Windows 10 and Windows 11.

Read more…

Enable or Disable Virtual Memory Paging File Encryption in Windows 11

A paging file (aka: “page file” and “virtual memory”) enables the system to remove infrequently accessed modified data from physical memory to let the system use physical memory more efficiently for more frequently accessed data. Windows also uses the page file to store data when physical memory (RAM) is full.

Encrypting the page file prevents malicious users from reading data that has been paged to disk, but also adds processing overhead for filesystem operations.

This tutorial will show you how to enable or disable virtual memory paging file encryption in Windows 10 and Windows 11.

Read more…

Manage Virtual Memory Paging File in Windows 11

A paging file (aka: “page file” and “virtual memory”) enables the system to remove infrequently accessed modified data from physical memory to let the system use physical memory more efficiently for more frequently accessed data.

Windows also uses the page file to store data when physical memory (RAM) is full.

The system automatically manages the size of the paging file (“C:\pagefile.sys”) on the Windows drive by default.

However, there may be times you may need to manually manage the paging file. For example:

  • If the C: drive that Windows is installed on is small in size, you may wish to remove the paging file from that drive, and add a paging file to another drive with more space instead.
  • If you use a lot of memory, then you may wish to add a paging file to another drive to have available if needed.
  • If you don’t use a lot of memory and your paging file is large in size, you may wish to use a smaller custom size.
  • If you are getting a BSOD PAGE_FAULT_IN_NONPAGED_AREA or KERNEL_DATA_INPAGE_ERROR or Low Memory type error when the paging file size is not system managed, you may need to set a larger custom size for the paging file.

This tutorial will show you how to manage the virtual memory paging file for each drive on your Windows 10 and Windows 11 PC.

Read more…