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

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

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

RE: 2.6.10: kswapd spins like crazy

2005-02-04 Thread Weathers, Norman R.
@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. >> >> >>... >>--- linux-2.6/mm/vms

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

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 if I can

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/laptop_mode

RE: 2.6.10: kswapd spins like crazy

2005-02-04 Thread Weathers, Norman R.
Weathers -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nick Piggin Sent: Thursday, February 03, 2005 7:20 PM To: Andrew Morton Cc: [EMAIL PROTECTED]; linux-kernel@vger.kernel.org; [EMAIL PROTECTED] Subject: Re: 2.6.10: kswapd spins like crazy Andrew

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 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

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 > @@

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

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

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

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,

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

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

2.6.10: kswapd spins like crazy

2005-02-03 Thread Terje Fåberg
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 extremely sluggish during this. The system load goes up to 7.5 or

2.6.10: kswapd spins like crazy

2005-02-03 Thread Terje Fåberg
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 extremely sluggish during this. The system load goes up to 7.5 or

Re: 2.6.10: kswapd spins like crazy

2005-02-03 Thread Nick Piggin
On Thu, 2005-02-03 at 11:29 +0100, Terje Fberg 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 extremely

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 helpful. You

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 now

Re: 2.6.10: kswapd spins like crazy

2005-02-03 Thread Nick Piggin
Terje Fberg wrote: Terje Fberg [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

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

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

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 +575,7 @@