From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753064AbbFVSwt (ORCPT ); Mon, 22 Jun 2015 14:52:49 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:38695 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751022AbbFVSwm (ORCPT ); Mon, 22 Jun 2015 14:52:42 -0400 Date: Mon, 22 Jun 2015 20:52:29 +0200 From: Peter Zijlstra To: "Paul E. McKenney" Cc: Dave Hansen , Andi Kleen , dave.hansen@linux.intel.com, akpm@linux-foundation.org, jack@suse.cz, viro@zeniv.linux.org.uk, eparis@redhat.com, john@johnmccutchan.com, rlove@rlove.org, tim.c.chen@linux.intel.com, linux-kernel@vger.kernel.org Subject: Re: [RFC][PATCH] fs: optimize inotify/fsnotify code for unwatched files Message-ID: <20150622185229.GX3644@twins.programming.kicks-ass.net> References: <20150619215025.4F689817@viggo.jf.intel.com> <20150619233306.GT25760@tassilo.jf.intel.com> <5584B62F.5080506@sr71.net> <20150620022135.GF3913@linux.vnet.ibm.com> <5585AAA0.1030305@sr71.net> <20150621013058.GH3913@linux.vnet.ibm.com> <20150622132821.GB12596@twins.programming.kicks-ass.net> <20150622151121.GK3913@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150622151121.GK3913@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 Mon, Jun 22, 2015 at 08:11:21AM -0700, Paul E. McKenney wrote: > That depends on how slow the resulting slow global state would be. > We have some use cases (definitely KVM, perhaps also some of the VFS > code) that need the current speed, as opposed to the profound slowness > that three trips through synchronize_sched() would provide. So what we have with that percpu-rwsem code that I send out earlier today is a conditional smp_mb(), and I think we can do the same for SRCU. I'm just not sure !GP is common enough for all SRCU cases to be worth doing. Those that rely on sync_srcu() and who do it rarely would definitely benefit. The same with those that rarely do call_srcu(). But those that heavily use call_srcu() would be better off with the prolonged GP with 3 sync_sched() calls in. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/