swap issues on Linux
clear the swap usage
free -to (Total memory usage)
free -m (Memory usage of swap)
swapoff -a && swapon -a ( swap off and on)
free
cat /proc/swaps
sync; echo 3 > /proc/sys/vm/drop_caches
To free pagecache:
# echo 1 > /proc/sys/vm/drop_caches
To free dentries and inodes:
# echo 2 > /proc/sys/vm/drop_caches
To free pagecache, dentries and inodes:
echo 3 > /proc/sys/vm/drop_caches
Note: Works well on Production Servers
Recent Comments