From: Don Zickus <dzickus@redhat.com>
To: Anton Blanchard <anton@samba.org>
Cc: Jeremy Fitzhardinge <jeremy@xensource.com>,
Thomas Gleixner <tglx@linutronix.de>,
Frederic Weisbecker <fweisbec@gmail.com>,
Ingo Molnar <mingo@elte.hu>,
Peter Zijlstra <peterz@infradead.org>,
linux-kernel@vger.kernel.org, jason.wessel@windriver.com
Subject: Re: [PATCH 2/2] watchdog: Softlockup has regular windows where it is not armed
Date: Mon, 12 Dec 2011 14:53:46 -0500 [thread overview]
Message-ID: <20111212195346.GT1669@redhat.com> (raw)
In-Reply-To: <20111205212822.0eaf65a7@kryten>
On Mon, Dec 05, 2011 at 09:28:22PM +1100, Anton Blanchard wrote:
>
> Hi Don,
>
> > > There might be a reason for this two stage sync but I haven't been
> > > able to find it yet. Perhaps the unsynced versions of cpu_clock()
> > > and sched_clock_tick() are not safe to call from all contexts?
> >
> > According to commit 8c2238eaaf0f774ca0f8d9daad7a616429bbb7f1 that was
> > the case, cpu_clock wasn't NMI-safe. Now it is, thanks to Peter.
>
> Thanks, that makes sense now.
>
> > I have a couple of concerns about the patch. I am wondering about the
> > overhead of getting the timestamp more often now as opposed to just
> > setting a boolean for later. It makes sense to stamp it at the time
> > of the call, don't know what the cost is.
>
> I had a similar concern since we do execute this quite a lot. The
> overhead of cpu_clock is quite low on powerpc, but not sure about the
> other architectures.
It seems like half of the users of touch_softlockup_watchdog is a slow
path (ie they are purposely spinning a long time). The cpu_clock overhead
for those paths, we probably don't need to care about.
The other half seems to deal with long idle/suspend/kgdb paths, which may
not be that interesting in their own right, except for the fact they are
called all the time for short delays and long delays. :-/
Perhaps I can move the touch_softlockup_watchdog() calls closer to the
long path conditionals, minimize the calls a little bit.
>
> > I am also concern about how this affects suspend/resume and kgdb. I
> > cc'd Jason above for kgdb. I'll have to run some tests locally to
> > see what long periods of delay look like. Oh and virt guests too.
> > You don't have any test results from that setup do you?
>
> I haven't tested suspend resume, kgdb or virtual guests yet.
I'll try to setup a box and play with these paths to see what they look
like.
Cheers,
Don
prev parent reply other threads:[~2011-12-12 19:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-24 3:53 [PATCH 1/2] watchdog: Remove touch_all_softlockup_watchdogs Anton Blanchard
2011-11-24 3:54 ` [PATCH 2/2] watchdog: Softlockup has regular windows where it is not armed Anton Blanchard
2011-11-28 21:47 ` Don Zickus
2011-12-05 10:28 ` Anton Blanchard
2011-12-12 19:53 ` Don Zickus [this message]
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=20111212195346.GT1669@redhat.com \
--to=dzickus@redhat.com \
--cc=anton@samba.org \
--cc=fweisbec@gmail.com \
--cc=jason.wessel@windriver.com \
--cc=jeremy@xensource.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.