Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752028AbaLSEs0 (ORCPT ); Thu, 18 Dec 2014 23:48:26 -0500 Received: from mail-qg0-f53.google.com ([209.85.192.53]:49126 "EHLO mail-qg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751567AbaLSEsZ (ORCPT ); Thu, 18 Dec 2014 23:48:25 -0500 MIME-Version: 1.0 In-Reply-To: <20141219040308.GB20022@redhat.com> References: <20141215055707.GA26225@redhat.com> <20141218051327.GA31988@redhat.com> <1418918059.17358.6@mail.thefacebook.com> <20141218161230.GA6042@redhat.com> <20141219024549.GB1671@redhat.com> <20141219035859.GA20022@redhat.com> <20141219040308.GB20022@redhat.com> Date: Thu, 18 Dec 2014 20:48:24 -0800 X-Google-Sender-Auth: sz6XF3CSZmVXbCshiHedG3xvN24 Message-ID: Subject: Re: frequent lockups in 3.18rc4 From: Linus Torvalds To: Dave Jones , Linus Torvalds , Chris Mason , Mike Galbraith , Ingo Molnar , Peter Zijlstra , =?UTF-8?Q?D=C3=A2niel_Fraga?= , Sasha Levin , "Paul E. McKenney" , Linux Kernel Mailing List , Suresh Siddha , Oleg Nesterov , Peter Anvin Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 18, 2014 at 8:03 PM, Dave Jones wrote: > > So the only thing that was on that could cause spinlock overhead > was DEBUG_SPINLOCK (and LOCK_STAT, though iirc that's not huge either) So DEBUG_SPINLOCK does have one big downside if I recall correctly - the debugging spinlocks are very much not fair. So they don't work like the real ticket spinlocks. That might have serious effects on the contention case, with some thread not making any progress due to just the implementation of the debug spinlocks. Peter, Ingo, maybe I'm full of crap on the debug spinlock thing., but a quick look tells me thay are all built on top of the "trylock" primitive that does indeed not queue anything, and is thus not fair. I'm not sure why the debug spinlocks couldn't just be ticket locks instead. But there you are - once more, the debug infrastructure is actually much weaker and inferior to the "real" code. 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/