Friday, December 6, 2013

Clear swap cache memory in RHEL Linux

Here is the command to clear the swap cache memory in RHEL Linux.

sync; echo 3 > /proc/sys/vm/drop_caches

or

sync && /sbin/sysctl vm.drop_caches=3 && swapoff -a && swapon -a


Now check the cache using top , free -m or vmstat 2 5.