public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
From: Michael Schmitz <schmitzmic@gmail.com>
To: Mikael Pettersson <mikpelinux@gmail.com>
Cc: Andreas Schwab <schwab@linux-m68k.org>,
	Linux/m68k <linux-m68k@vger.kernel.org>
Subject: Re: [3.13 regression] kswapd0 and ksoftirqd/0 CPU hogs
Date: Wed, 01 Apr 2015 16:08:51 +1300	[thread overview]
Message-ID: <551B6143.4030805@gmail.com> (raw)
In-Reply-To: <21786.40688.53001.509365@gargle.gargle.HOWL>

Hi Mikael,
>  > has anyone found a solution to this one?
>  > 
>  > 3.18-rc5 has kswapd0 hogging the CPU - haven't seen ksoftirqd0 yet.
>  > Unpacking a large tarball tends to trigger this for me.
>
> Alas, no.  I went back to the 3.10.xx kernels and they work Ok for me
> (they tend to hang during shutdown, but I can live with that).
>   

I've followed the vm stats while running gunzip -c on a large file. I 
get an 'invalid compressed data' error at the very end of the gunzip 
run, and the file md5sum does not match what I get when uncompressing 
that file on another system with no error

As long as that file will fit into available memory, all that happens is 
kswapd0 and/or kswapd1 running forever after gunzip has finished. kswapd 
running full tilt appears to coincide with the number of free pages 
hitting the min_free_kbytes limit. The number of dirty pages never grows 
very large (hovers around 1000, less than 1% of RAM size) and remains 
below the nr_dirty_threshold (10800) and nr_dirty_background_threshold 
(5400) limits at all time. (Both limits progressively shrink over time - 
is that normal?).

If I force the VM to only use part of the RAM (by setting 
min_free_kbytes to say 10% of RAM size), the system becomes unresponsive 
as soon as the limit is reached. The swap tasks start to eat substantial 
amounts of CPU once the number of free pages approaches  that limit , 
nr_dirty drops at that time, and nr_dirty_threshold as well as 
nr_dirty_background_threshold begin to rise again  - above the initial 
values, in fact.
> I should do a git bisect...
>   

Would be nice to be able to force this a lot quicker. I'll try with 
smaller files to uncompress, and larger min_free limit.

Cheers,

    Michael

> /Mikael
>
>  > 
>  > Cheers,
>  > 
>  >   Michael
>  > 
>  > 
>  > On Tue, Jul 1, 2014 at 11:43 PM, Mikael Pettersson <mikpelinux@gmail.com> wrote:
>  > > Andreas Schwab writes:
>  > >  > Mikael Pettersson <mikpelinux@gmail.com> writes:
>  > >  >
>  > >  > > Reverting to 3.12.16 completely eliminates these problems.
>  > >  >
>  > >  > Even 3.11 has the kswapd0 cpu hog problem.
>  > >
>  > > Hmm, I just got the kswapd0 CPU hog on 3.12.16 too (while compiling
>  > > java code during a gcc package rebuild).
>  > >
>  > > So kernels >= 3.11 have the kswapd0 CPU hog bug, and kernels >= 3.13
>  > > also have the ksoftirdq/0 CPU hog bug.
>  > >
>  > > What's the last known-good kernel? 3.10?
>  > > --
>  > > To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
>  > > the body of a message to majordomo@vger.kernel.org
>  > > More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>   

  reply	other threads:[~2015-04-01  3:09 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-06 11:38 [3.13 regression] kswapd0 and ksoftirqd/0 CPU hogs Mikael Pettersson
2014-06-06 11:43 ` Geert Uytterhoeven
2014-06-06 13:11   ` Mikael Pettersson
2014-06-07 13:22     ` Mikael Pettersson
2014-06-11  8:20       ` Mikael Pettersson
2014-06-11  8:45 ` Andreas Schwab
2014-07-01 11:43   ` Mikael Pettersson
2015-03-31  1:16     ` Michael Schmitz
2015-03-31 13:19       ` Mikael Pettersson
2015-04-01  3:08         ` Michael Schmitz [this message]
2015-04-01  4:45           ` Finn Thain
2015-04-01  5:21             ` Michael Schmitz
2015-04-06 21:25             ` Michael Schmitz
2015-04-07  0:06               ` Finn Thain
2015-04-07  5:38                 ` Michael Schmitz
2016-02-21 17:06         ` Mikael Pettersson
2016-02-21 19:31           ` Michael Schmitz
2016-02-22 10:01           ` Geert Uytterhoeven
2016-03-06  7:21             ` Mikael Pettersson
2016-03-06  8:54               ` Geert Uytterhoeven
2016-03-06  9:20                 ` Mikael Pettersson
2016-04-13 18:57                   ` Mikael Pettersson
2016-05-31  4:52           ` Finn Thain
2016-05-31 10:06             ` Mikael Pettersson
2016-05-31 10:21               ` Geert Uytterhoeven
2016-05-31 10:39                 ` John Paul Adrian Glaubitz
2016-05-31 10:41                   ` Geert Uytterhoeven
2016-06-01  6:36                 ` Mikael Pettersson
2015-04-01 16:11       ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=551B6143.4030805@gmail.com \
    --to=schmitzmic@gmail.com \
    --cc=linux-m68k@vger.kernel.org \
    --cc=mikpelinux@gmail.com \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox