How to manage Pagefile virtual memory in Windows 10
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:
- 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.
- 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.
- If you don't use much memory while your pagefile is large, you may want to use a smaller custom size.
- 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:
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.
3. On the Advanced tab, select Performance . In the Performance section, click the Settings button.
4. In the Advanced tab, select the Virtual memory section , then click the Change button .
5. In this step, you will decide how you want to manage the pagefile on your drive (s).Available options include:
- Custom size (step 6).
- Delete (step 7).
- System management (step 8).
- 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.
G) Click OK
H) A dialog box will appear informing you that in order for the changes to take effect, you must restart the system.ClickOKto confirm.
I) A subsequent dialog box will appear.Click Restart Now to restart your computer, so your changes will apply.
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.
E) Click Yes to confirm.
F) Click OK.
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.
H) A next dialog box will appear.Click Restart Now to restart your computer, so your changes will apply.
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.
E) Click OK to confirm the changes.
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.
B) ClickOK
That's all the information in the article today.Good luck!
See more:
- How to create a virtual machine repository for Hyper-V Quick Create
- How to create and use Hyper-V checkpoints in Windows 10
- How to import Hyper-V virtual machines in Windows 10
- How to change the default directory for hosting Hyper-V virtual machines in Windows 10
You should read it
- Clean up traces of Pagefile every time you turn off your Windows 10 computer
- How to set Pagefile.sys limit on Windows 10
- What is Pagefile.sys and should it be disabled?
- What is pagefile.sys? Can pagefile.sys be deleted? Should Pagefile.sys be turned off
- How to automatically delete Pagefile.sys on shutdown in Windows 10
- Instructions for changing Pagefile.sys size and location on Windows
- Instructions for changing Pagefile size and position on Windows
- What is Swapfile.sys, how to delete Swapfile.sys?
- 5 best virtual machines for Windows 11 PCs
- What is Hiberfil.sys? How to delete Hiberfil.sys?
- Steps to install windows 11 on virtual machine, how to install windows 11 on VMware
- How to handle a computer error message Your computer is low on memory on Windows
Maybe you are interested
How does stress damage memory and cause anxiety disorders?
The world's 'stupid' bird, at the moment of life and death it 'loses its memory'
Nvidia launches RTX 4070 version with 'super fast' GDDR6 memory
Nvidia is developing a line of AI GPUs with 144GB HBM3E memory
3 Ways to free up Google Drive space, increase memory
Samsung begins mass production of 'most advanced' 12nm DDR5 memory chips