How To Clean Virtual Memory



Swap is a virtual memory concept that allows your system to use a portion of your hard drive as the physical memory (RAM). Your system swaps the inactive pages in memory in RAM to this swap space on the hard disk. This way, your system has more free RAM available for other programs.

How to Clean Your CPAP Hose with Vinegar. There are some that recommend cleaning the CPAP hose with vinegar +/- soapy water half and half. Your product manual will mention which products you should use with your CPAP hose. 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. Create Clear Memory Cache Shortcut. This is one of the easiest solutions to clear memory cache on. This is a video tutorial of how to make your computer faster without having to actually install a physical RAM and using Hard disk space as Virtual RAM.-.

I have shown you to check RAM in Linux and I have also discussed how to check swap usage on Linux. In this quick tip, I’ll show you how to clear swap memory in Linux.

Clear swap in Linux

But first, why would you want to clear swap at all? There could be various reasons. Some time your system will use a lot of swap even when plenty of RAM is available.

This may or may not be associated with swappiness of your system. Sometimes it happens that the RAM doesn’t swap back the pages from swap space to RAM. In such cases, you’ll have to manually clear the swap.

Attention

Virtual

How To Clear Virtual Memory

Before clearing the swap, check that you have enough free RAM available to take all the pages from swap. In other words, you should have more free RAM available than the current swap in use.

You can see the state of RAM and swap using the free command in Linux:

Once you are sure that the size of free RAM is bigger than the swap memory in use, you can clear the swap memory by turning it off and on again.

Pun aside, that’s the way to do it. Disable all the swap using this command:

Now turn the swap back on:

Clean

That’s it. This simple exercise will clear the swap in your Linux system. I hope you find this little tip helpful. Any questions or suggestions are always welcome.

How
Become a Member for FREE
How to clean virtual memory on computer

Clear Virtual Memory Cache

Become a member to get the regular Linux newsletter (2-4 times a month) and access member-only contents.

Join the conversation.