Monday, March 5, 2018

How to Clear RAM Memory Cache and Buffer

How to Clear RAM Memory Cache and Buffer


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

[root@server ~]# sync; echo 1 > /proc/sys/vm/drop_caches
2. Clear dentries and inodes.

[root@server ~]# sync; echo 2 > /proc/sys/vm/drop_caches
3. Clear PageCache, dentries and inodes.

[root@server ~]# sync; echo 3 > /proc/sys/vm/drop_caches 



NEXT ARTICLE Next Post
PREVIOUS ARTICLE Previous Post
NEXT ARTICLE Next Post
PREVIOUS ARTICLE Previous Post