Flushing the swap
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
Quoted 2 lines · Hal Nine
Is there any way of making linux flush out all pages out of swap space? I want to have 0K of used swap space.
swapoff -a
Bernd
Signature · 3 lines
Firmix Software GmbH http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
Embedded Linux Development and ServicesQuoted 2 lines · Hal Nine
Is there any way of making linux flush out all pages out of swap space? I want to have 0K of used swap space.
swapoff -a
swapon -a
Signature · 2 lines
Greetings Bjoern Schmidt
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..
Quoted 10 lines · Hal Nine
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Quoted 2 lines · Hal Nine
Is there any way of making linux flush out all pages out of swap space? I want to have 0K of used swap space.
# swapoff -a
Andreas.
Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected] SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Quoted 2 lines · Hal Nine
Is there any way of making linux flush out all pages out of swap space? I want to have 0K of used swap space.
as about 314 people already said 'swapoff -a' will work, but more to the point is you probably don't want 0K of swap
Quoted 2 lines · Hal Nine
Is there any way of making linux flush out all pages out of swap space? I want to have 0K of used swap space.
Maybe?
# swapoff -a # swapon -a
Quoted 2 lines · Hal Nine
Is there any way of making linux flush out all pages out of swap space? I want to have 0K of used swap space.
What for? If they don't fit into RAM (likely, as swap is essentially "RAM overflow"), you are toast anyway.
You might try swapoff(8)...
Signature · 4 lines
Dr. Horst H. von Brand User #22616 counter.li.org Departamento de Informatica Fono: +56 32 654431 Universidad Tecnica Federico Santa Maria +56 32 654239 Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513