public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kswapd (& clock?) problems in 2.6.10
@ 2005-01-15 13:40 aeriksson
  2005-01-16  4:11 ` Nick Piggin
  0 siblings, 1 reply; 2+ messages in thread
From: aeriksson @ 2005-01-15 13:40 UTC (permalink / raw)
  To: linux-kernel


Since installing 2.6.10 kswapd has decided to loop wildly on two
occations. Both occations happened after starting a big compiles.
Checking vmstat, I noticed a steady stream of io/bi figures ranging
between 2-5K (which is about what I can get out of this box during
normal operation), but no swap io(?). Manwhile the load (xload)climbs
to about 10, and the system looses interactive responsiveness.

Now after the last time, after reboot, I noticed that the clock was
missing 3 hours, which is about the time I left the box unattended. It
might be that kswapd stresses the system to the point that the clock
cannot move forward, (or the clock does something bad and kswapd gets
tricked by it???).

Thoughts anyone?

/Anders





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: kswapd (& clock?) problems in 2.6.10
  2005-01-15 13:40 kswapd (& clock?) problems in 2.6.10 aeriksson
@ 2005-01-16  4:11 ` Nick Piggin
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Piggin @ 2005-01-16  4:11 UTC (permalink / raw)
  To: aeriksson; +Cc: linux-kernel

aeriksson@fastmail.fm wrote:
> Since installing 2.6.10 kswapd has decided to loop wildly on two
> occations. Both occations happened after starting a big compiles.
> Checking vmstat, I noticed a steady stream of io/bi figures ranging
> between 2-5K (which is about what I can get out of this box during
> normal operation), but no swap io(?). Manwhile the load (xload)climbs
> to about 10, and the system looses interactive responsiveness.
> 
> Now after the last time, after reboot, I noticed that the clock was
> missing 3 hours, which is about the time I left the box unattended. It
> might be that kswapd stresses the system to the point that the clock
> cannot move forward, (or the clock does something bad and kswapd gets
> tricked by it???).
> 
> Thoughts anyone?
> 

Are you sure it is a bug? kswapd has been recently fixed so it properly
starts freeing memory before the critical shortage is reached where
processes have to synchronously free memory for themselves.

This will make kswapd take more CPU time, but it should be doing work
that would otherwise need to be done by someone else. The lack of any
swapping activity indicates that kswapd is not actually having too much
trouble freeing memory (or you have swap turned off!)

If you still think it is a bug, if kswapd keeps running after the compile
stops, or if the system stops doing useful work, then let's see what the
problem is:

Can you make sure you kernel is compiled with "magic sysrq key" turned
on (under kernel hacking menu). While the weird kswapd behaviour happens
next, press alt+sysrq+m 3 or 4 times, then dump dmesg to a file
`dmesg > dmesg.out`, and send that file in.

Thanks,
Nick


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-16  4:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-15 13:40 kswapd (& clock?) problems in 2.6.10 aeriksson
2005-01-16  4:11 ` Nick Piggin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox