How To Clean Virtual Memory

Posted on  by admin

Quick Navigation :

  1. Can I Download Virtual Memory
  2. How To Clear Virtual Memory Mac
  3. How To Clear Virtual Memory

Open System Properties. To open it, you can use the methods in How to Open System Properties on. Enable the Shutdown: Clear virtual memory page file setting. This configuration causes the operating system to clear the paging file when the device is shut down. The amount of time that is required to complete this process depends on the size of the page file. Because the process overwrites the storage area that is used by the page file. Click the Advanced tab, and then, under Virtual memory, click Change. Clear the Automatically manage paging file size for all drives check box. Under DriveVolume Label, click the drive that contains the paging file you want to change. Remove Login Items to lower Mac memory usage. Login items are programs that load automatically. A computer can address more memory than the amount physically installed on the system. This extra memory is actually called virtual memory and it is a section of a hard disk that's set up to emulate the computer's RAM. The main visible advantage of this scheme is that programs can be larger than physical memory.

Virtual memory is a memory management technique that is implemented by using both hardware and software. It makes the application think it has a contiguous and available storage space or address space. However, in fact, virtual memory usually is divided into several physical memory fragments, and some of them are stored on the external disk storage which can be used to exchange data when needed. Currently, most operating systems use virtual memory, like the Windows family's “virtual memory”, or the Linux “swap space”.

If you find the Windows 8/8.1 operating system gets stuck in the Windows logo page when starting it and you are unable to enter the system, you have to force shutdown and then restart it. After that, you can adjust the virtual memory to fix this problem.

Recommend: Want to know more information about operating system stuck in Windows Logo? Here, I guess you might be interested in this post: How Do You Fix 'Window 10 Stuck on Loading Screen' Issue.


Computers need memory (it is a temporary storage area which holds the data and instructions that the CPU needs) to execute all programs. Thus, the more programs memory holds, the less free space memory has. Therefore, Windows operating systems like adopting the virtual memory technology to increase computer's memory capability.

This technology will leave a part of hard disk space to act as memory. If the system is low on memory, the virtual memory will play its full part. Virtual memory combines your computer's RAM with temporary space on your hard disk. When RAM runs low, virtual memory helps to move data from RAM to a space called a paging file. Moving data to paging file can free up the RAM so your computer can complete its work.

In general, the more RAM your computer has, the faster the programs run. If the computer is running pretty slow since there is little free space on the RAM, you can increase virtual memory to fix the problem. However, your computer can read data from RAM much more quickly than from a hard disk. So increasing the capacity of RAM is a better solution.

Virtual memory is, in fact, a giant file called PageFile.Sys, which is invisible in most cases. To see the file, you need to open the Explorer and then close the system file protection function. Therefore, virtual memory sometimes is also known as “page file”.

Recommend: You should not delete the Page Files. Read this post: Solutions to Deleting Drive C, EFI System Volume, Recovery/OEM Volume, etc to find more details.

Memory will play a big role during the process of running computer because computer needs it to execute all programs. Thus, Windows would like to use virtual memory to improve computer's memory. Virtual memory exists in the PAGEFILE.SYS file.

Reasonable Setting

How to verify the size of virtual memory?

Novice to Virtual Memory

Since Linux needs complicated commands, we take Windows 10 for example to show how to set virtual memory.

1: Open 'File Explorer', right click 'This PC', and select 'Properties'.

2: Select 'Advanced system settings' in the pop-up window.

3: In the 'System Properties' window, click 'Advanced' tab, and then click 'Settings' under 'Performance'.

4: In the 'Performance Options' window, click 'Advanced' tab, and then click 'Change' under 'Virtual memory'.

5: In the 'Virtual Memory' window, uncheck 'Automatically manage paging file size for all drives' and then choose a relatively free space to store the Pagefile.sys file.

6: Check 'Custom size' and then type a new size in megabytes in the Initial size (MB) or Maximum size (MB) box. Here, the recommended size is equivalent to 1.5 -3 times the amount of RAM on your system.

7: Click “Set”, and then click “OK”.

Veteran to Virtual Memory

In fact, setting virtual memory size strictly according to the 1.5 to 3 times multiple relationships is not science. We had better set it according to actual needs. In the process of setting virtual memory size, you may turn to the Windows built-in performance monitor (taking Windows 10 as an example).

1: Press 'Windows + R' keys to call out 'Run' box, type 'perfmon.msc', and press 'Enter'.

Can I Download Virtual Memory

2: In 'Performance Monitor' window, expand 'Data Collector Sets', right-click on 'User Defined', and choose 'New' > 'Data Collector Set'.

3: In the new window, type a name ('paging file' as an example), check 'Create manually (Advanced)', and click 'Next'.

4: Check 'Performance counter' under 'Create data logs' section and click 'Next'.

5: Click 'Add' button to add counters. In the upper left box, find and expand 'Paging File'. Highlight items under it, highlight 'Total' in the lower left box, and then click 'Add>>' button to add the two counters into the right box one by one. Then, click 'OK' button.

6: Please change 'Sample interval' to a proper number, according to your need. Then, click 'Next'.

7: Choose where you like the data to be saved. Then, click 'Next'.

8: Make sure that 'Save and close' option is checked and then click 'Finish'.

9: Expand 'User Defined' under 'Data Collector Sets' and you will find the new data collector set you created just now. Right-click on it and choose 'Start'.

10: Make your daily operation on computer, and run all different applications and games that you use frequently. After using it for a few hours, the new data collector set can make a basic and complete assessment of your usage.

11: At this time, right-click on the paging file data collector set and choose 'Stop'. Then, go to 'Reports' > 'User Defined' > 'paging file'. Under 'paging file', there is a report about virtual memory usage. Click this report to view it.

12: What you should note here is that the value in the report refers to the percentage of the paging file amount in use. That is to say, according to report, you will find that although system leaves 2GB paging file, only 25% paging file will be used. Therefore, the maximum size of the paging file is set to 512MB to save free space.

Tip: Windows built-in tool 'System Information' will tell you Total Physical Memory and Total Virtual Memory on the PC. You can open this tool from Windows search box.

Related Information

The Location of Virtual Memory

It's also important to notice that you had better put the paging file on the drive which does not contain operating system or applications if you have more than one disk. Keeping applications and paging files on different disks not only can minimize the usage of disk but also can improve the efficiency of disk. However, if you have only one disk and you put the paging files on a different volume in the same disk, it will not improve the efficiency of disk.

Virtual Memory Paging File and Disk Fragmentation

Virtual memory combines your computer's RAM with temporary space on your hard disk. The hard disk may contain Disk Fragmentation since its files are written in a non-sequential way. Therefore, if the paging file or the virtual memory partition is patchy, the disk seeking time may be increased but disk performance may be decreased.

Some people think that there will be disk fragments if Windows frequently read the pagefile.sys file. Actually, it's not. Once pagefile.sys is created, its distribution type in the partition will be fixed. Reading and writing file will not influence the size of pagefile.sys file. However, the system will create temppf.sys after running out of the pagefile.sys, which will result in disk fragmentation. In Linux operating system, if you divide a separate partition to act as the memory, you can basically eliminate the effects brought by disk fragmentation.

Different Ways for Fixing “Tool Little Virtual Memory”

In general, Windows XP uses the free space of C drive to act as the virtual memory by default. Thus, the larger free space the C drive has, the faster the system runs. Virtual memory will change dynamically as you use the C drive. Therefore, the C drive is easy to generate disk fragmentation to affect system operation speed. So well, you had better set another volume like D: as the virtual memory.

Steps to Check the Location of Virtual Memory

Here, we take Windows XP for example. Right-click “My Computer” icon and choose “Properties” from the bottom. From the System box, click “Advanced System Settings”, and then view “Advanced” tab, and click “Settings” under Performance. In the Performance Options box, select the “Advanced” tab, and click “Change” button under Virtual memory. After that, you can see the Virtual Memory dialog box.

As a matter of fact, you had better set a fixed value for the virtual memory to avoid disk fragmentation. And the specific values depend on your physical memory size. And it is 1.5 times to 3 times the size of physical memory. For instance, if you have 512MB memory, you can set 256-768MB virtual memory (the total size of RAM and virtual memory is generally above 256MB). If your memory size is over 2GB, you need no virtual memory.

But, in some special situations, you also need the virtual memory. For instance, your system is low on memory when playing large 3D games and making large pictures, you can consider setting virtual memory. Setting method as follows:

Let us suppose that you have 256M memory and you want to set D drive as the virtual memory. At this time, you should remove the default virtual memory (C drive) at first, and leave the C drive selected. Next, choose the “No paging files (N)” and click the “Set” button to remove the C drive virtual memory. After that, select the D drive, and click “Customer Size”. And then, type 512 in the following “Initial Size” and “Maximize size” box and click “Set” button. Finally, click “OK” button. Now, the system will be restarted to make this change take effect.

Setting Method

How to delete virtual memory

Manual Setting

Here, we take Windows XP for example to show how to set the virtual memory.

1: Right-click “My Computer” icon and choose “Properties” from the bottom.

2: From the System box, click “Advanced System Settings”, and then view “Advanced” tab, and click “Settings” under Performance.

3: In the Performance Options box, select the “Advanced” tab, and click “Change” button under Virtual memory.

4: Choose a suitable drive, and check the “Customer size”, and then write the accurate values in the “Initial Size” and “Maximize size” box. Next, click “Set” and “OK”. After that, restart the computer. After restarting, all work has been done.

Adjust the Pagination Location

How To Clear Virtual Memory Mac

The Win386.swp file (swap file) is saved in the root directory C. In fact, the Win386.swp file can be stored in any partition. If the system volume C doesn't have enough free space, you can store it on another partition. However, how to complete this task? Firstly, you should open the System.ini file (under the C: Windows) via the Notepad. Then, in the [386Enh] section, change the location of Win386.swp file. For instance, you can change “Paging Drive= C: WindowsWin386.swp” to “Paging Drive= D: WindowsWin386.swp”.

Windows 2000/XP users can click “Control Panel-System-Advanced-performance”, and then click “Settings-Advanced-Change” to open the virtual memory dialog-box. At this time, if you want to store the Win386.swp file on another partition, you have to remove the paging file from the original partition, and then choose the desired partition you need. (By default, the system partition contains paging file.)

Windows XP requires 256 MB physical memory at least. If you like paying large 3D games but your Windows XP system is low on memory, don't panic since the system will automatically adjust virtual memory size.

Note: You can set 2MB virtual memory at least, but its maximum size cannot exceed the current remaining hard disk space and cannot exceed the 32-bit operating system's addressing range (4GB).

Disable Paging Executive

If your RAM is larger than 1GB, you don't have to use paging file. And you can disable it. Steps: click “Start” and choose “Run”, and then type “Regedit”. Next, choose “HKEY-LOCAL-MACHINESYSTEMCurrentControlSetControlSessionManagerMemoryManagement”. Now, select the “Disable Paging Executive” and type 1 in its value data.

How To Clear Virtual Memory

Note: This way may cause system instability. And some programs can not run. Therefore, please change it according to the actual situations.

If your RAM is larger than 4GB, virtual memory will make very little impact. If you don't receive the insufficient memory warning in the daily use, you can rest easy.

Clear Page File

At the same place, you can see a “ClearPageFileAtShutdown” choice. Here, the “Clear” refers to “clean” and arrange the pagefile.sys file instead of completely removing it. Microsoft notes that this is a safe option and it will not influence the performance.

Advanced topics: Windows 2000/XP/2003 users can turn to SweepRAM (a memory optimization program) to free some unused RAM since this free application aims to empty all processes working sets. Working set is a concept in computer science which defines the amount of memory that a process requires in a given time interval. When a process is running, Windows will automatically adjust working set.

To be specific, the frequently visited page will be leaved in the memory, and other pages may be removed from the working set and temporarily stored in the memory “Conversion list” since there is no more free space. When the application accesses a page again, operating system will automatically add these removed pages into the working set.

SweepRAM is a piece of little freeware that will very quickly free some unused RAM, which can help to improve system performance.

How To Clean Virtual Memory

Shutdown Helps to Clear Virtual Memory Pagefile

1: Click “Start” and choose “Run”, and then type “gpedit.msc”.


2: In the Local Group Policy Editor, choose “Computer Configuration - Windows Settings - Security Setting - Local Policies-Security Options - Shutdown: Clear virtual memory pagefile”.

3: Right-click the “Properties” and click “Enabled” and click “OK”.

If there is no local group policy editor, you can try another approach. As follows:

1: Click Win & R, and then type “regedit” to open the Registry Editor.

2:Choose“HKEY-LOCAL-MACHINESYSTEMCurrentControlSetControlSessionManagerMemoryManagement”. And then, double click the “ClearPageFileAtShutdown”.

3: In the Edit DWORD Value dialog box, type 1 in the Value data, and then click “OK” button.

4: Restart the computer to make this change take effect.

Windows is full of annoying little errors and “Out of virtual memory” is one of them. Usually your PC starts freezing first. Then an error appears and tells you that your virtual memory is too low.
In this article we are going to explain what causes this error and how to fix it once and for all.

What is virtual memory?

Virtual memory, also known as page file or swap file, is a file on your hard disk that Windows uses in addition to physical memory (RAM) whenever the need arises. For example, when you are running an application or a process your RAM can’t handle, virtual memory is there to help. Usually the page file is 1.5 times the amount of physical memory, i.e. a system with 512 MB of RAM will have 768 MB page file.

Why does the “low on virtual memory” error occur?

There are two things that usually cause this error:

  • You don’t have enough RAM;
  • An application on your computer is buggy and is causing a memory leak.

How to fix it?

Getting rid of this error is not too difficult, especially if it happens because your computer doesn’t have enough RAM. If that’s the case, all you need to do is add more physical memory to speed up computer performance. If you can’t do it immediately, you can increase the size of the page file. Here’s how to do it:

  • Right-click on My Computer and go to Properties.
  • Click on the Advanced tab (or Advanced system settings link if you are using Windows 7 or Vista) and then click on the Settings button in the Performance section.
  • A new window will open. Go to the Advanced tab.
  • Find the Virtual memory section and click on the Change button.
  • Select the System managed size option or manually change the size of the page file.
  • Click OK.
To quickly resolve «low on virtual memory» error, use a safe FREE tool developed by the Auslogics team of experts.
The app contains no malware and is designed specifically for the problem described in this article. Just download and run it on your PC. free download

Developed by Auslogics

Auslogics is a certified Microsoft® Silver Application Developer. Microsoft confirms Auslogics' high expertise in developing quality software that meets the growing demands of PC users.

However, if the error is caused by a buggy application, you’ll first need to identify the culprit. To do that, open the Task Manager (press Ctrl+Alt+Del on your keyboard) and go to the Processes tab. Then click on View –> Select ColumnsHow To Clean Virtual Memory. Check the Virtual Memory Size checkbox and click OK. Now the Task Manager will be showing how much virtual memory each application is using. If you click on the VM Size column name twice, the processes will be sorted based on how much virtual memory they are using, from largest to smallest. You will instantly see which process in the most hungry one.
Then you’ll need to find the application that’s running the process – some, like firefox.exe, are pretty obvious.
If you are not that familiar with processes, download a program called Process Explorer. It doesn’t require installation – all you need to do is run the .exe file. Basically, this program is a much more thorough Task Manager alternative. Once it’s open, click on View –> Select Columns. Then go to the Process Memory tab and check the Virtual Size checkbox. Click OK. Like in Windows Task Manager, you can sort the results. Every process will have the information about the application running it. If you need even more information, hover your mouse over the process in question.

Now that you know which program is causing low virtual memory, you can try to fix it. First of all try updating the software – usually updates fix bugs like that. If that doesn’t work, try uninstalling and reinstalling the application. If that doesn’t work either, contact the software support team and search the Internet for that particular software problem.

You can also use the tool designed by Auslogics to find out why exactly virtual memory is so slow on your PC. Our software doesn’t contain malware, it’s safe and free.

Is the question how to make my computer faster still bothering you? Read our other tips and tricks on how to increase computer speed.