From: Andy Whitcroft <apw@canonical.com>
To: Andy Whitcroft <apw@canonical.com>,
David Howells <dhowells@redhat.com>,
tytso@mit.edu, Dave Airlie <airlied@gmail.com>,
Dave Airlie <airlied@redhat.com>,
linux-kernel@vger.kernel.org
Subject: Re: Why is kslowd accumulating so much CPU time?
Date: Wed, 16 Jun 2010 15:55:30 +0100 [thread overview]
Message-ID: <AANLkTikasMn4s1-VgQstblkfP1sy-grJC8NVEUwJ9qKF@mail.gmail.com> (raw)
In-Reply-To: <20100616143659.GA14616@elliptictech.com>
On Wed, Jun 16, 2010 at 3:36 PM, Nick Bowler <nbowler@elliptictech.com> wrote:
> On 12:37 Wed 16 Jun , Andy Whitcroft wrote:
>> > Can you see what they're doing?
>> >
>> > watch -n0 cat /sys/kernel/debug/slow_work/runqueue
>>
>> Turned on the debugging and applied the patch from Ted, and when
>> things are bad I see constant cycling of all four threads in the
>> output showing similar to the below, note only one thread shows at a
>> time:
>>
>> Every 0.1s: cat /sys/kernel/debug/slow_work/runqueue Wed Jun 16 12:34:52 2010
>>
>> THR PID ITEM ADDR FL MARK DESC
>> === ===== ================ == ===== ==========
>> 0 897 ffff88012bb07510 12 20ms DRM_CRTC_HELPER: i915@pci:0000:00:02.0
>
> Indeed, this looks very similar to mine, except my DESC field is blank
> for some reason. The FL value is sometimes 12, sometimes 2.
DESC is only filled in if you have Ted's patch applied (earlier in this thread).
> When things are bad, all four of the kslowd threads are pegged at 16%
> CPU usage. On my T500, they _never_ calm down once they're pegged.
> However, things seem to be working normally at boot. It seems that
> there is some initial trigger which pegs the threads, then the cursor
> lag and other problems are just fallout after that. The system is
> essentially unusable after this point.
>
> The threads sometimes get pegged immediately after booting the system,
> sometimes it can last an hour or more before showing any problems.
> Unfortunately, this is making bisection essentially impossible.
>
> This seems to have been introduced somewhere between 2.6.35-rc1 and
I suspect this is introduced by the commit which pulled polling of DRM
connectors into the core.
-apw
next prev parent reply other threads:[~2010-06-16 14:55 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-09 18:36 Why is kslowd accumulating so much CPU time? Theodore Ts'o
2010-06-09 18:56 ` David Howells
2010-06-09 19:00 ` David Howells
2010-06-13 8:23 ` Dave Airlie
2010-06-13 19:49 ` tytso
2010-06-13 20:00 ` Dave Airlie
2010-06-14 18:42 ` Nick Bowler
2010-06-14 21:46 ` tytso
2010-06-15 17:25 ` Andy Whitcroft
2010-06-15 18:07 ` David Howells
2010-06-16 11:37 ` Andy Whitcroft
2010-06-16 13:33 ` Andy Whitcroft
2010-06-16 14:36 ` Nick Bowler
2010-06-16 14:55 ` Andy Whitcroft [this message]
2010-06-17 13:25 ` Nick Bowler
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=AANLkTikasMn4s1-VgQstblkfP1sy-grJC8NVEUwJ9qKF@mail.gmail.com \
--to=apw@canonical.com \
--cc=airlied@gmail.com \
--cc=airlied@redhat.com \
--cc=dhowells@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.edu \
/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;
as well as URLs for NNTP newsgroup(s).