Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753983AbaLVDMI (ORCPT ); Sun, 21 Dec 2014 22:12:08 -0500 Received: from e36.co.us.ibm.com ([32.97.110.154]:52556 "EHLO e36.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753832AbaLVDMF (ORCPT ); Sun, 21 Dec 2014 22:12:05 -0500 Date: Sun, 21 Dec 2014 19:11:56 -0800 From: "Paul E. McKenney" To: Linus Torvalds Cc: Dave Jones , Thomas Gleixner , Chris Mason , Mike Galbraith , Ingo Molnar , Peter Zijlstra , =?iso-8859-1?Q?D=E2niel?= Fraga , Sasha Levin , Linux Kernel Mailing List , Suresh Siddha , Oleg Nesterov , Peter Anvin Subject: Re: frequent lockups in 3.18rc4 Message-ID: <20141222031156.GU11609@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <20141221223204.GA9618@codemonkey.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14122203-0021-0000-0000-000007278C79 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 21, 2014 at 04:52:28PM -0800, Linus Torvalds wrote: > On Sun, Dec 21, 2014 at 4:41 PM, Linus Torvalds > wrote: > > > > The second time (or third, or fourth - it might not take immediately) > > you get a lockup or similar. Bad things happen. > > I've only tested it twice now, but the first time I got a weird > lockup-like thing (things *kind* of worked, but I could imagine that > one CPU was stuck with a lock held, because things eventually ground > to a screeching halt. > > The second time I got > > INFO: rcu_sched self-detected stall on CPU { 5} (t=84533 jiffies > g=11971 c=11970 q=17) > > and then > > INFO: rcu_sched detected stalls on CPUs/tasks: { 1 2 3 4 5 6 7} > (detected by 0, t=291309 jiffies, g=12031, c=12030, q=57) > > with backtraces that made no sense (because obviously no actual stall > had taken place), and were the CPU's mostly being idle. Yep, if time gets messed up too much, RCU can incorrectly decide that 21 seconds have elapsed since the grace period started, and can even decide this pretty much immediately after the grace period starts. Thanx, Paul > I could easily see it resulting in your softlockup scenario too. > > 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/