From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751160AbcGNLfL (ORCPT ); Thu, 14 Jul 2016 07:35:11 -0400 Received: from mail-qk0-f196.google.com ([209.85.220.196]:33394 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751044AbcGNLfI (ORCPT ); Thu, 14 Jul 2016 07:35:08 -0400 Date: Thu, 14 Jul 2016 07:35:05 -0400 From: Tejun Heo To: "Paul E. McKenney" Cc: John Stultz , Peter Zijlstra , Ingo Molnar , lkml , Dmitry Shmidt , Rom Lemarchand , Colin Cross , Todd Kjos , Oleg Nesterov Subject: Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes Message-ID: <20160714113505.GC15005@htj.duckdns.org> References: <20160713205102.GZ30909@twins.programming.kicks-ass.net> <20160713210315.GO7094@linux.vnet.ibm.com> <20160713210526.GF29670@mtj.duckdns.org> <20160713211841.GQ7094@linux.vnet.ibm.com> <20160713214238.GA15996@linux.vnet.ibm.com> <20160713221750.GR7094@linux.vnet.ibm.com> <20160713230238.GU7094@linux.vnet.ibm.com> <20160713230404.GA2197@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160713230404.GA2197@linux.vnet.ibm.com> User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Wed, Jul 13, 2016 at 04:04:04PM -0700, Paul E. McKenney wrote: > commit b4edebb8f5664a3a51be1e3ff3d7f1cb2d3d5c88 > Author: Paul E. McKenney > Date: Wed Jul 13 15:13:31 2016 -0700 > > rcu: Provide RCUSYNC_EXPEDITE option for rcusync.expedited default > > This commit provides an RCUSYNC_EXPEDITE Kconfig option that specifies > the default value for the rcusync.expedited kernel parameter. This > makes it easier to use rcusync.expedited functionality in cases where > specifying kernel boot parameters should be avoided. > > Reported-by: John Stultz > Signed-off-by: Paul E. McKenney > Tested-by: John Stultz > Acked-by: John Stultz > Cc: # 4.4.x- I think it probably makes sense to make this the default on !RT at least with a separate patch w/o stable cc'd. While most use cases will be fine with the latency on write path, it also means that the reader side is blocked for the duration which can hurt. rwsem implies a lot more readers and thus more read lock operations than writes. It's weird to trade off higher latency for lower cpu usage when it would also slow down all readers. Thanks. -- tejun