[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150622185229.GX3644@twins.programming.kicks-ass.net>
Date: Mon, 22 Jun 2015 20:52:29 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
Cc: Dave Hansen <dave@...1.net>, Andi Kleen <ak@...ux.intel.com>,
dave.hansen@...ux.intel.com, akpm@...ux-foundation.org,
jack@...e.cz, viro@...iv.linux.org.uk, eparis@...hat.com,
john@...nmccutchan.com, rlove@...ve.org,
tim.c.chen@...ux.intel.com, linux-kernel@...r.kernel.org
Subject: Re: [RFC][PATCH] fs: optimize inotify/fsnotify code for unwatched
files
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/
Powered by blists - more mailing lists