Can We Clear Cache Memory in Linux?

Can We Clear Cache Memory in Linux?
Contents

If you want to manually clear the cache that can be done easily by sending an echo command to the /proc filesystem indicating to the kernel to drop the cache and free the memory used for the cache.

How do I free up cache memory in Linux?

Every Linux System has three options to clear cache without interrupting any processes or services.

  1. Clear PageCache only. # sync; echo 1 > /proc/sys/vm/drop_caches.
  2. Clear dentries and inodes. # sync; echo 2 > /proc/sys/vm/drop_caches.
  3. Clear PageCache, dentries and inodes. …
  4. sync will flush the file system buffer.

6 июн. 2015 г.

Can I clear cache memory?

Delete the cache: The fast way with a shortcut.

A new window opens, where you can setup the options to delete the cache. Select the period “since installation”, to empty the whole browser cache. Check the Option “Images and Files in Cache”. Confirm your settings, by clicking the button “delete browser data”.

Robert Thorne
Author

Robert Thorne

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.