From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934406AbbJIJJJ (ORCPT ); Fri, 9 Oct 2015 05:09:09 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:33863 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756041AbbJIJJG (ORCPT ); Fri, 9 Oct 2015 05:09:06 -0400 Date: Fri, 9 Oct 2015 11:08:52 +0200 From: Peter Zijlstra To: Andy Lutomirski Cc: Chris Metcalf , Luiz Capitulino , Gilad Ben Yossef , Steven Rostedt , Ingo Molnar , Andrew Morton , Rik van Riel , Tejun Heo , Frederic Weisbecker , Thomas Gleixner , "Paul E. McKenney" , Christoph Lameter , Viresh Kumar , Catalin Marinas , Will Deacon , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Linus Torvalds Subject: Re: crazy idea: big percpu lock (Re: task isolation) Message-ID: <20151009090852.GJ17308@twins.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 08, 2015 at 02:25:23PM -0700, Andy Lutomirski wrote: > I want to propose a new primitive that might go a long way toward > solving this issue. The new primitive would be called the "big percpu > lock". Never, ever, combine big and lock :-) You want small granular locks, big locks are a guaranteed recipe for pain.