From: Adrian Cox <adrian@humboldt.co.uk>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: Worst case performance of up()
Date: Sat, 02 Dec 2006 10:35:54 +0000 [thread overview]
Message-ID: <1165055754.4380.15.camel@localhost.localdomain> (raw)
In-Reply-To: <1164661336.11001.9.camel@localhost.localdomain>
On Mon, 2006-11-27 at 21:02 +0000, Adrian Cox wrote:
> On Sat, 2006-11-25 at 07:45 +1100, Benjamin Herrenschmidt wrote:
> > On Fri, 2006-11-24 at 16:21 +0000, Adrian Cox wrote:
> > > Does anybody have any ideas what could make up() take so long in this
> > > circumstance? I'd expect cache transfers to make the operation about 100
> > > times slower, but this looks like repeated cache ping-pong between the
> > > two CPUs.
> >
> > Is it hung in up() (toplevel) or __up (low level) ?
>
> Not yet proven.
By using a scope, I have further data: the system is hung in this line
of resched_task() in kernel/sched.c:
set_tsk_thread_flag(p, TIF_NEED_RESCHED);
During this time, there is a great deal of ARTRY activity on the bus.
The sequence ends when the other CPU takes a timer tick.
I'll need to track down what the other CPU is doing at this point, but
my current hypothesis is that it's somewhere in schedule().
> > Have you tried some oprofile runs to catch the exact instruction where
> > the cycles appear to be wasted ?
Oprofile turned out to break the error condition, by increasing the
interrupt rate on each CPU. In the end a combination of lockmeter and
an oscilloscope did the trick.
--
Adrian Cox <adrian@humboldt.co.uk>
next prev parent reply other threads:[~2006-12-02 10:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-24 16:21 Worst case performance of up() Adrian Cox
2006-11-24 20:45 ` Benjamin Herrenschmidt
2006-11-27 21:02 ` Adrian Cox
2006-12-02 10:35 ` Adrian Cox [this message]
2006-12-02 11:15 ` Benjamin Herrenschmidt
2006-12-02 11:54 ` Adrian Cox
2006-12-02 20:52 ` Benjamin Herrenschmidt
2006-12-04 13:43 ` Adrian Cox
2006-12-04 20:25 ` Benjamin Herrenschmidt
2006-12-05 22:00 ` Benjamin Herrenschmidt
2006-12-08 2:33 ` Paul Mackerras
2006-12-08 3:10 ` Benjamin Herrenschmidt
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=1165055754.4380.15.camel@localhost.localdomain \
--to=adrian@humboldt.co.uk \
--cc=benh@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).