Wednesday, July 27, 2011

How to Clear Swap Space in Linux (Debian 6.0)

Last time, I posted how to clear the memory cache in linux. This time, I will post on how to clear the memory swap space.

There are very few steps.

1. Clear the swap by turning it off.
$swapoff -a
2. Turn on the swap.
$swapon -a

You can also do this is one line.
$swapoff -a && swapon -a

No comments:

Post a Comment