Re: [Slightly OT] Releasing swap space?
On Sun, Aug 14, 2011 at 6:51 AM, AG <firstname.lastname@example.org> wrote:
> Hey list
> Just a quick query about releasing swap space. On occasion according to
> Conky (system monitoring app), the swap space (set at 3Gb) sometimes gets
> used to up to 15% especially if using something like Pan for usenet.
> Is there any value/ harm in releasing this space using something like:
> swapoff -a && swapon -a 
> Thanks for your opinions.
>  found on the web, but not AFAIK Debian specific
If your intend is to try minimizing swapping, trying to keep in RAM as
much as possible, why not using the swappiness kernel configuration?
% 'grep' swap /etc/sysctl.conf
# Start looking at using swap only when ram has that % left.
That means, attempt to start using swap only when there's 6% remaining
free RAM. Now, it's NOT guaranteed that's what the kernel will do,
it's just a hint. You can look on the web for swappiness, you'll find
all kind of blogs and comments...
That might help minimize the use of swap area...