Empty swap and clear memory cache

Just because I was curious, I looked up how to empty swap and memory cache today.

To clear the memory cache:

echo 1 > /proc/sys/vm/drop_caches

 

To empty the swap:

swapoff -a
swapon -a
  1. No comments yet.

  1. No trackbacks yet.