Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757386Ab2B2JRS (ORCPT ); Wed, 29 Feb 2012 04:17:18 -0500 Received: from casper.infradead.org ([85.118.1.10]:35195 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757152Ab2B2JRM convert rfc822-to-8bit (ORCPT ); Wed, 29 Feb 2012 04:17:12 -0500 Message-ID: <1330507023.11248.113.camel@twins> Subject: Re: [RFC PATCH] kick ksoftirqd more often to please soft lockup detector From: Peter Zijlstra To: Dan Williams Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, Jens Axboe , linux-scsi@vger.kernel.org, Lukasz Dorau , James Bottomley , Andrzej Jakowski Date: Wed, 29 Feb 2012 10:17:03 +0100 In-Reply-To: References: <20120227203847.22153.62468.stgit@dwillia2-linux.jf.intel.com> <1330422535.11248.78.camel@twins> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1268 Lines: 30 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/