From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751535AbcGNQhj (ORCPT ); Thu, 14 Jul 2016 12:37:39 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:48469 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751116AbcGNQhg (ORCPT ); Thu, 14 Jul 2016 12:37:36 -0400 Date: Thu, 14 Jul 2016 18:37:31 +0200 From: Peter Zijlstra To: Oleg Nesterov Cc: Tejun Heo , John Stultz , Ingo Molnar , lkml , Dmitry Shmidt , Rom Lemarchand , Colin Cross , Todd Kjos , "Paul E. McKenney" Subject: Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes Message-ID: <20160714163731.GF30154@twins.programming.kicks-ass.net> References: <20160713182102.GJ4065@mtj.duckdns.org> <20160713183347.GK4065@mtj.duckdns.org> <20160713201823.GB29670@mtj.duckdns.org> <20160713202657.GW30154@twins.programming.kicks-ass.net> <20160713203944.GC29670@mtj.duckdns.org> <20160713205102.GZ30909@twins.programming.kicks-ass.net> <20160714131809.GO30927@twins.programming.kicks-ass.net> <20160714145844.GA7760@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160714145844.GA7760@redhat.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 14, 2016 at 04:58:44PM +0200, Oleg Nesterov wrote: > > But note that we do not need RCU_NONE. All we need is the trivial change > below. Hurm, maybe. So having that unbalanced keeps us in GP_PASSED state and since we'll never drop gp_count back to 0 nothing will ever happen. Cute, yes. > Damn, I am trying to find my old rcu-sync patches which I didn't > send, but can't... OK, this almost off-topic right now, just this "enter" > is ugly and we can't switch the slow/fast modes dynamically. > > The rest of you patch is "optimize the slow path" and we already discussed > it before, I personally like it. Perhaps you can redo it without RCU_NONE > part? Indeed, I rebased that patch on top of the current tree and had to add support for down_trylock() but otherwise much the same thing. I can send it out again.