How to Clear RAM Memory Cache, Buffer and Swap Space on Linux

Cara clear case di linux 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. # sync; echo 3 > /proc/sys/vm/drop_caches Penjelasan comman di atas sync akan flush file system buffer. Command dipisahkan dengan “;” berjalan secara beruntun. Shell menunggu perintah selanjutnya sampai selesai […]