From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753198AbbFXR6m (ORCPT ); Wed, 24 Jun 2015 13:58:42 -0400 Received: from casper.infradead.org ([85.118.1.10]:39251 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752006AbbFXR6g (ORCPT ); Wed, 24 Jun 2015 13:58:36 -0400 Date: Wed, 24 Jun 2015 19:58:30 +0200 From: Peter Zijlstra To: "Paul E. McKenney" Cc: Oleg Nesterov , tj@kernel.org, mingo@redhat.com, linux-kernel@vger.kernel.org, der.herr@hofr.at, dave@stgolabs.net, riel@redhat.com, viro@ZenIV.linux.org.uk, torvalds@linux-foundation.org Subject: Re: [RFC][PATCH 12/13] stop_machine: Remove lglock Message-ID: <20150624175830.GS3644@twins.programming.kicks-ass.net> References: <20150623180411.GF3644@twins.programming.kicks-ass.net> <20150623182626.GO3892@linux.vnet.ibm.com> <20150624073503.GH3644@twins.programming.kicks-ass.net> <20150624145030.GB3717@linux.vnet.ibm.com> <20150624150151.GN3644@twins.programming.kicks-ass.net> <20150624152705.GE3717@linux.vnet.ibm.com> <20150624154010.GS19282@twins.programming.kicks-ass.net> <20150624160851.GF3717@linux.vnet.ibm.com> <20150624164200.GP3644@twins.programming.kicks-ass.net> <20150624171004.GG3717@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150624171004.GG3717@linux.vnet.ibm.com> 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 Wed, Jun 24, 2015 at 10:10:17AM -0700, Paul E. McKenney wrote: > > The thing is, once you start bailing on this condition your 'queue' > > drains very fast and this is around the same time sync_rcu() would've > > released the waiters too. > > In my experience, this sort of thing simply melts down on large systems. > I am reworking this with multiple locks so as to keep the large-system > contention down to a dull roar. So with the MCS queue we're got less global trashing than you had with the start/done tickets. Only the queue head on enqueue.