Re: 2.6.10: kswapd spins like crazy

2005-02-04 Thread Terje Fåberg
Nick Piggin <[EMAIL PROTECTED]> skrev: > OK that's good to know. At this stage it is only > working around the intermediate symptoms, and we > might want a different fix for 2.6.11... > > So hopefully you'll be able to test a patch or two > if you get time. Sure. Just drop me a mail. I'm glad i

Re: 2.6.10: kswapd spins like crazy

2005-02-04 Thread Nick Piggin
Terje Fåberg wrote: Terje Fåberg <[EMAIL PROTECTED]> skrev: I'll continue to do the same things I did yesterday before kswapd started to spin. Looks very good so far. I am unable to reproduce the bad kswapd behaviour with your patch, Nick. To double-check I booted into the old kernel an hour a

Re: 2.6.10: kswapd spins like crazy

2005-02-04 Thread Terje Fåberg
Terje Fåberg <[EMAIL PROTECTED]> skrev: > I'll continue to do the same things I did yesterday > before kswapd started to spin. Looks very good so far. I am unable to reproduce the bad kswapd behaviour with your patch, Nick. To double-check I booted into the old kernel an hour ago and I _could_

RE: 2.6.10: kswapd spins like crazy

2005-02-04 Thread Weathers, Norman R.
]; linux-kernel@vger.kernel.org; [EMAIL PROTECTED] Subject: Re: 2.6.10: kswapd spins like crazy Andrew Morton wrote: > Nick Piggin <[EMAIL PROTECTED]> wrote: > >>Oh, attached should be a minimal fix if you would like to try it out. >> >> >>... >>--- l

Re: 2.6.10: kswapd spins like crazy

2005-02-04 Thread Terje Fåberg
Nick Piggin <[EMAIL PROTECTED]> skrev: > No none yet, which is what we should get to the > bottom of. I must be overlooking something, but the > only ways I can see should be due to transient > conditions like page locked or under writeback. > laptop_mode? > > Terje, what is /proc/sys/vm/lapto

Re: 2.6.10: kswapd spins like crazy

2005-02-03 Thread Andrew Morton
Nick Piggin <[EMAIL PROTECTED]> wrote: > > Oh, attached should be a minimal fix if you would like to try it out. > > > ... > --- linux-2.6/mm/vmscan.c~vmscan-minfix 2005-02-04 11:52:37.0 > +1100 > +++ linux-2.6-npiggin/mm/vmscan.c 2005-02-04 11:53:32.0 +1100 > @@ -575,6

Re: 2.6.10: kswapd spins like crazy

2005-02-03 Thread Nick Piggin
Andrew Morton wrote: Nick Piggin <[EMAIL PROTECTED]> wrote: Oh, attached should be a minimal fix if you would like to try it out. ... --- linux-2.6/mm/vmscan.c~vmscan-minfix 2005-02-04 11:52:37.0 +1100 +++ linux-2.6-npiggin/mm/vmscan.c 2005-02-04 11:53:32.0 +1100 @@ -575,6 +57

Re: 2.6.10: kswapd spins like crazy

2005-02-03 Thread Nick Piggin
Nick Piggin wrote: Hmm, your DMA zone has no active pages, and pages_scanned (which triggers all_unreclaimable) is only incremented when scanning the active list. But I wonder, if the pages can't be freed, why aren't they being put on the active list? Oh, attached should be a minimal fix if you w

Re: 2.6.10: kswapd spins like crazy

2005-02-03 Thread Nick Piggin
Terje FÃberg wrote: Terje FÃberg <[EMAIL PROTECTED]> skrev: The kernel is compiling right now, but I cannot reboot this machine until six or seven o'clock tonight (CET). I will report then. Well, well, I rebooted the same kernel, now with MAGIC-SYSRQ enabled. At first the kswapd-effect wouldn

Re: 2.6.10: kswapd spins like crazy

2005-02-03 Thread Terje Fåberg
Terje Fåberg <[EMAIL PROTECTED]> skrev: > The kernel is compiling right now, but I cannot > reboot this machine until six or seven o'clock > tonight (CET). I will report then. Well, well, I rebooted the same kernel, now with MAGIC-SYSRQ enabled. At first the kswapd-effect wouldn't show up, but

Re: 2.6.10: kswapd spins like crazy

2005-02-03 Thread Terje Fåberg
Nick Piggin <[EMAIL PROTECTED]> skrev: > Can you post about 10 seconds of `vmstat 1` output > while this is happening? > > Also: > `cat /proc/vmstat > pre ; sleep 10 ; cat > /proc/vmstat > post` > while this is happening, and send the pre and post > files. > > cat /proc/meminfo also might be he

Re: 2.6.10: kswapd spins like crazy

2005-02-03 Thread Nick Piggin
On Thu, 2005-02-03 at 11:29 +0100, Terje FÃberg wrote: > I recently upgraded my desktop from 2.4.28 to > 2.6.10. Even under moderate memory pressure kswapd > regularly eats almost all available cpu time > whenever there is a little more IO throughput, > like copying large files. The system is extr