Re: excessive swap-in time
- From: pa@xxxxxxxxxxxxxxxxxxxxx (Pierre Asselin)
- Date: Mon, 17 Mar 2008 01:27:35 +0000 (UTC)
phil-news-nospam@xxxxxxxx wrote:
On Sat, 15 Mar 2008 15:25:05 +0000 (UTC) Pierre Asselin <pa@xxxxxxxxxxxxxxxxxxxxx> wrote:
| There is a control knob in /proc/sys/vm/swappiness that might
| alleviate that. Content is a decimal number from 0 to 100.
| Higher values tell the kernel to swap out idle apps to make more
| room for filesystem caches. Try echoing a low number into it
| and see if it improves overall performance for you.
What does a low number mean?
I posted without the definition because I had trouble digging it
up. Try googling on "/proc/sys/vm/swappiness", the very first hit
http://lwn.net/Articles/83588/ has a short explanation.
If it means it will leave the process in
RAM, that may not work. The reason is that other processes have caused
this process to swap out, and appropriately so.
Maybe, maybe not. It could have been swapped out to make room for more
file cache, inappropriately so --or maybe even appropriately so, it's
pretty darn hard to guess these things correctly without measuring.
The issue is not about
the fact that this process is swapped out; it is about doing the swapping
in better. Each swapped out page should only need to be swapped back in
just once, if this is the only active process.
Maybe that's the issue, then again maybe not. It's not that hard
to set the swappiness to zero. For what it's worth, that's what
I do on my laptop while on battery power to better keep the disk
spun down. If it doesn't help, just restore the default of 60.
Hmmm, do read a few of the google hits. It's complicated.
Still worth a shot, though.
--
pa at panix dot com
.
- Follow-Ups:
- Re: excessive swap-in time
- From: phil-news-nospam
- Re: excessive swap-in time
- From: Rainer Weikusat
- Re: excessive swap-in time
- References:
- excessive swap-in time
- From: phil-news-nospam
- Re: excessive swap-in time
- From: Pierre Asselin
- Re: excessive swap-in time
- From: phil-news-nospam
- excessive swap-in time
- Prev by Date: Re: excessive swap-in time
- Next by Date: Re: excessive swap-in time
- Previous by thread: Re: excessive swap-in time
- Next by thread: Re: excessive swap-in time
- Index(es):
Relevant Pages
|