* Re: Flushing the swap
2004-06-07 22:34 Flushing the swap Hal Nine
@ 2004-06-07 22:40 ` Bernd Petrovitsch
2004-06-07 22:50 ` Bjoern Schmidt
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Bernd Petrovitsch @ 2004-06-07 22:40 UTC (permalink / raw)
To: Hal Nine; +Cc: linux-kernel
On Tue, 2004-06-08 at 00:34, 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.
swapoff -a
Bernd
--
Firmix Software GmbH http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
Embedded Linux Development and Services
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Flushing the swap
2004-06-07 22:34 Flushing the swap Hal Nine
2004-06-07 22:40 ` Bernd Petrovitsch
@ 2004-06-07 22:50 ` Bjoern Schmidt
2004-06-07 23:04 ` Arthur Perry
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Bjoern Schmidt @ 2004-06-07 22:50 UTC (permalink / raw)
To: linux-kernel
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.
swapoff -a
swapon -a
--
Greetings
Bjoern Schmidt
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Flushing the swap
2004-06-07 22:34 Flushing the swap Hal Nine
2004-06-07 22:40 ` Bernd Petrovitsch
2004-06-07 22:50 ` Bjoern Schmidt
@ 2004-06-07 23:04 ` Arthur Perry
2004-06-07 23:13 ` Andreas Schwab
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Arthur Perry @ 2004-06-07 23:04 UTC (permalink / raw)
To: Hal Nine; +Cc: linux-kernel
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@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Flushing the swap
2004-06-07 22:34 Flushing the swap Hal Nine
` (2 preceding siblings ...)
2004-06-07 23:04 ` Arthur Perry
@ 2004-06-07 23:13 ` Andreas Schwab
2004-06-07 23:23 ` Chris Wedgwood
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Andreas Schwab @ 2004-06-07 23:13 UTC (permalink / raw)
To: Hal Nine; +Cc: linux-kernel
Hal Nine <hal9@cyberspace.org> writes:
> 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.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
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."
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Flushing the swap
2004-06-07 22:34 Flushing the swap Hal Nine
` (3 preceding siblings ...)
2004-06-07 23:13 ` Andreas Schwab
@ 2004-06-07 23:23 ` Chris Wedgwood
2004-06-08 2:45 ` Horst von Brand
2004-06-08 6:09 ` Felipe Alfaro Solana
6 siblings, 0 replies; 8+ messages in thread
From: Chris Wedgwood @ 2004-06-07 23:23 UTC (permalink / raw)
To: Hal Nine; +Cc: linux-kernel
On Mon, Jun 07, 2004 at 06:34:59PM -0400, 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.
as about 314 people already said 'swapoff -a' will work, but more to
the point is you probably don't want 0K of swap
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Flushing the swap
2004-06-07 22:34 Flushing the swap Hal Nine
` (4 preceding siblings ...)
2004-06-07 23:23 ` Chris Wedgwood
@ 2004-06-08 2:45 ` Horst von Brand
2004-06-08 6:09 ` Felipe Alfaro Solana
6 siblings, 0 replies; 8+ messages in thread
From: Horst von Brand @ 2004-06-08 2:45 UTC (permalink / raw)
To: Hal Nine; +Cc: linux-kernel
Hal Nine <hal9@cyberspace.org> said:
> 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)...
--
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
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Flushing the swap
2004-06-07 22:34 Flushing the swap Hal Nine
` (5 preceding siblings ...)
2004-06-08 2:45 ` Horst von Brand
@ 2004-06-08 6:09 ` Felipe Alfaro Solana
6 siblings, 0 replies; 8+ messages in thread
From: Felipe Alfaro Solana @ 2004-06-08 6:09 UTC (permalink / raw)
To: Hal Nine; +Cc: linux-kernel
On Mon, 2004-06-07 at 18:34 -0400, 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.
Maybe?
# swapoff -a
# swapon -a
^ permalink raw reply [flat|nested] 8+ messages in thread