Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758561Ab1CaPyX (ORCPT ); Thu, 31 Mar 2011 11:54:23 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:48550 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758549Ab1CaPyU convert rfc822-to-8bit (ORCPT ); Thu, 31 Mar 2011 11:54:20 -0400 MIME-Version: 1.0 In-Reply-To: <20110331040818.GB1255@redhat.com> References: <20110329040939.GA32764@redhat.com> <20110331030917.GB26057@redhat.com> <20110331033432.GA434@redhat.com> <20110331040818.GB1255@redhat.com> From: Linus Torvalds Date: Thu, 31 Mar 2011 08:53:26 -0700 Message-ID: Subject: Re: excessive kworker activity when idle. (was Re: vma corruption in today's -git) To: Dave Jones , Andrew Morton , Linux Kernel , "Paul E. McKenney" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1314 Lines: 38 And with your fixed trinity thing, I can now do this: On Wed, Mar 30, 2011 at 9:08 PM, Dave Jones wrote: > > git clone git://git.codemonkey.org.uk/trinity > cd trinity ; make > ./trinity --mode=random -i > > let it run for a while, then kill it. ? kworker should then go nuts. I really thought "hey, that reproduced it", because "top" did indeed show kworker going nuts after a while. And perf did show it doing all that | queue_work | schedule_work | flush_to_ldisc that looks like the re-scheduling. But when I killed trinity, kworker immediately calmed down too. Which I'd actually expect, since any tty it is using (and making cause problem) should calm down when it's closed - even if it was stuck before. But maybe I haven't triggered just the right condition to actually get it into some really infinite case. Regardless, I'll put my money where my mouth is, and try to remove the crazy re-flush thing. Linus -- 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/