Re: Flushing the swap
From: Arthur Perry
Date: Mon Jun 07 2004 - 18:04:41 EST
Not to be fecicious, you can reboot.
But if this is not good enough, you can try this:
swapoff -a
swapon -a
This may take a while if your system is busy and a lot of RAM has been used.
It especially will take a long time if your system was dipping into swap because an active process really needed that extra ram.
You can kill off as many memory hungry processes as possible first, to try and do this as painlessly as possible.
My thought is this: if she wants swap, give her swap! It beats a diamond ring.
____________Arthur Perry________________
| Your friendly neighborhood Linux guy |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Registered Pine user .. again..
On Mon, 7 Jun 2004, Hal Nine wrote:
> Is there any way of making linux flush out all pages out of swap
> space? I want to have 0K of used swap space.
>
> h9
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/