linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Dan Williams <dan.j.williams@intel.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	linux-kernel@vger.kernel.org, Jens Axboe <axboe@kernel.dk>,
	linux-scsi@vger.kernel.org, Lukasz Dorau <lukasz.dorau@intel.com>,
	James Bottomley <JBottomley@parallels.com>,
	Andrzej Jakowski <andrzej.jakowski@intel.com>
Subject: Re: [RFC PATCH] kick ksoftirqd more often to please soft lockup detector
Date: Sat, 3 Mar 2012 00:39:02 -0800	[thread overview]
Message-ID: <20120303083902.GC8270@linux.vnet.ibm.com> (raw)
In-Reply-To: <1330507023.11248.113.camel@twins>

On Wed, Feb 29, 2012 at 10:17:03AM +0100, Peter Zijlstra wrote:
> On Tue, 2012-02-28 at 14:16 -0800, Dan Williams wrote:
> > Looks like everyone is guilty:
> > 
> > [  422.765336] softirq took longer than 1/4 tick: 3 NET_RX ffffffff813f0aa0
> > ...
> > [  423.971878] softirq took longer than 1/4 tick: 4 BLOCK ffffffff812519c8
> > [  423.985093] softirq took longer than 1/4 tick: 6 TASKLET ffffffff8103422e
> > [  423.993157] softirq took longer than 1/4 tick: 7 SCHED ffffffff8105e2e1
> > [  424.001018] softirq took longer than 1/4 tick: 9 RCU ffffffff810a0fed
> > [  424.008691] softirq loop took longer than 1/2 tick need_resched:
> 
> /me kicks himself for not printing the actual duration.. :-)
> 
> > As expected whenever that 1/2 tick message gets emitted the softirq
> > handler is almost running in a need_resched() context.
> 
> Yeah.. that's quite expected.
> 
> > So is it a good idea to get more aggressive about scheduling ksoftrrqd? 
> 
> Nah, moving away from softirq more like. I'll put moving the
> load-balancer into a kthread on the todo list. And it looks like
> everybody else should move to kthreads too.

Last year when I tried that, things got a bit ugly.  I guess I don't need
the kthreads to be realtime unless CONFIG_RCU_BOOST=y, maybe that will
help.  Also IIRC Steven Rostedt made some real-time changes that might
help as well for my case, which would have a per-CPU RT kthread.

							Thanx, Paul


      parent reply	other threads:[~2012-03-03  8:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-27 20:38 [RFC PATCH] kick ksoftirqd more often to please soft lockup detector Dan Williams
2012-02-28  8:35 ` Yong Zhang
2012-02-28  9:48 ` Peter Zijlstra
2012-02-28 16:48   ` Dan Williams
2012-02-28 21:41   ` Thomas Gleixner
2012-02-28 22:16     ` Dan Williams
2012-02-28 22:25       ` Dan Williams
2012-02-29  9:17       ` Peter Zijlstra
2012-02-29 19:49         ` Dan Williams
2012-03-03  8:39         ` Paul E. McKenney [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=20120303083902.GC8270@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=JBottomley@parallels.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=andrzej.jakowski@intel.com \
    --cc=axboe@kernel.dk \
    --cc=dan.j.williams@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=lukasz.dorau@intel.com \
    --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 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).