How to manage Pagefile virtual memory in Windows 10

Paging is a memory management scheme whereby the PC can store and retrieve data from secondary memory for use in main memory.

General information

Paging is a memory management scheme whereby the PC can store and retrieve data from secondary memory for use in main memory.According to this scheme, the operating system will retrieve data from secondary storage in blocks of the same size called pages (pages).Paging is an important part of deploying virtual memory on modern operating systems.These operating systems use secondary memory to allow programs that may have volume beyond the size of available physical memory.

Simply put, the main memory is called random-access memory (RAM), while secondary storage is called disk (short for hard disk drive - hard disk).

Virtual memory is a memory management technique deployed by a combination of both hardware and software.It maps the memory addresses used by a program (called a virtual address) into the real address in the computer memory.The main repository appears as an adjacent address space or a collection of adjacent storage segments.Windows will then manage virtual address space and assign real memory to virtual memory.Hardware devices responsible for translating addresses in the CPU are often referred to as memory management units (MMU).These hardware components will automatically translate virtual addresses to real addresses.Software within Windows can extend these capabilities to provide a virtual address space that can exceed the capacity of real memory.

The main benefits of virtual memory include helping to free applications or managing shared memory capacity and increasing the security of memory separation.

Basically, a paging file (pagefile) is an area on the hard disk that Windows will use as if RAM in case your real RAM is not enough.

By default, Windows automatically manages the pagefile settings for you, but sometimes you may need to manually manage your pagefile manually.For example:

  1. When the C: drive, where your Windows is installed, is too small, you may want to move the pagefile away from that drive to another drive with more space.
  2. Once you've used a lot of memory, you may want to add a pagefile to another drive to be ready for use when needed.
  3. If you don't use much memory while your pagefile is large, you may want to use a smaller custom size.
  4. If you encounter BSOD PAGE_FAULT_IN_NONPAGED_AREA or KERNEL_DATA_INPAGE_ERROR or Low Memory errors , you may need to use a larger custom size for the pagefiles.

This article will show you how to manage the pagefile virtual memory for each drive on your Windows 10 computer.

Note: You must log into the system as an administrator to make changes to the pagefile.

EXAMPLE: pagefile.sys in C: drive in Windows:

Picture 1 of How to manage Pagefile virtual memory in Windows 10

1. Start Control Panel and click the System icon

2. In the System section, click the Advanced system settings link on the left and then close the System window.

Picture 2 of How to manage Pagefile virtual memory in Windows 10

3. On the Advanced tab, select Performance . In the Performance section, click the Settings button.

Picture 3 of How to manage Pagefile virtual memory in Windows 10

4. In the Advanced tab, select the Virtual memory section , then click the Change button .

Picture 4 of How to manage Pagefile virtual memory in Windows 10

5. In this step, you will decide how you want to manage the pagefile on your drive (s).Available options include:

  1. Custom size (step 6).
  2. Delete (step 7).
  3. System management (step 8).
  4. Manage all systems (step 9).

6. Set custom size for pagefile on a drive

A) Leave Automatically section manage paging file size for all drives.

B) Select the drive where you want to set the custom size or add pagefile (eg C drive :).

C) Select the Custom size item .

D) Enter the minimum initial size you want for the pagefile on the selected drive, this size is calculated in MB (1024MB = 1 GB).

E) Enter the maximum initial size you want for the pagefile on the selected drive, which is also calculated in MB.

F) Click the Set button.

Picture 5 of How to manage Pagefile virtual memory in Windows 10

G) Click OK

Picture 6 of How to manage Pagefile virtual memory in Windows 10

H) A dialog box will appear informing you that in order for the changes to take effect, you must restart the system.ClickOKto confirm.

Picture 7 of How to manage Pagefile virtual memory in Windows 10

I) A subsequent dialog box will appear.Click Restart Now to restart your computer, so your changes will apply.

Picture 8 of How to manage Pagefile virtual memory in Windows 10

7. Remove (disable) pagefile on a drive

A) Leave Automatically section manage paging file size for all drives.

B) Select the drive you want to delete the pagefile (eg C :).

C) Select No paging file.

D) Click the Set button.

Picture 9 of How to manage Pagefile virtual memory in Windows 10

E) Click Yes to confirm.

Picture 10 of How to manage Pagefile virtual memory in Windows 10

F) Click OK.

Picture 11 of How to manage Pagefile virtual memory in Windows 10

G) A dialog box will appear informing you that in order for the changes to take effect, you must restart the system.Press ok to confirm.

Picture 12 of How to manage Pagefile virtual memory in Windows 10

H) A next dialog box will appear.Click Restart Now to restart your computer, so your changes will apply.

Picture 13 of How to manage Pagefile virtual memory in Windows 10

8. Set the size of the pagefile on a system managed drive

A) Uncheck Automatically manage paging file size for all drives.

B) Select a drive for which you want to set the file manager pagefile size (for example, C: drive).

C) Select the System managed size option.

D) Click the Set button.

Picture 14 of How to manage Pagefile virtual memory in Windows 10

E) Click OK to confirm the changes.

Picture 15 of How to manage Pagefile virtual memory in Windows 10

F) The next steps are similar to the above 2 sections.

9. Set the size of pagefile on all system managed drives

A) Select Automatically section manage paging file size for all drives.

Picture 16 of How to manage Pagefile virtual memory in Windows 10

B) ClickOK

That's all the information in the article today.Good luck!

See more:

  1. How to create a virtual machine repository for Hyper-V Quick Create
  2. How to create and use Hyper-V checkpoints in Windows 10
  3. How to import Hyper-V virtual machines in Windows 10
  4. How to change the default directory for hosting Hyper-V virtual machines in Windows 10
Update 26 May 2019
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile