[Cluster-devel] [PATCH v1 11/11] locks: give the blocked_hash its own spinlock

2013-05-31 Thread Jeff Layton
There's no reason we have to protect the blocked_hash and file_lock_list with the same spinlock. With the tests I have, breaking it in two gives a barely measurable performance benefit, but it seems reasonable to make this locking as granular as possible. Signed-off-by: Jeff Layton --- Documenta

Re: [Cluster-devel] [PATCH v1 11/11] locks: give the blocked_hash its own spinlock

2013-06-04 Thread Stefan (metze) Metzmacher
Hi Jeff, > There's no reason we have to protect the blocked_hash and file_lock_list > with the same spinlock. With the tests I have, breaking it in two gives > a barely measurable performance benefit, but it seems reasonable to make > this locking as granular as possible. as file_lock_{list,lock}

Re: [Cluster-devel] [PATCH v1 11/11] locks: give the blocked_hash its own spinlock

2013-06-04 Thread Jeff Layton
On Tue, 04 Jun 2013 16:19:53 +0200 "Stefan (metze) Metzmacher" wrote: > Hi Jeff, > > > There's no reason we have to protect the blocked_hash and file_lock_list > > with the same spinlock. With the tests I have, breaking it in two gives > > a barely measurable performance benefit, but it seems re

Re: [Cluster-devel] [PATCH v1 11/11] locks: give the blocked_hash its own spinlock

2013-06-04 Thread Christoph Hellwig
Having RCU for modification mostly workloads never is a good idea, so I don't think it makes sense to mention it here. If you care about the overhead it's worth trying to use per-cpu lists, though.

Re: [Cluster-devel] [PATCH v1 11/11] locks: give the blocked_hash its own spinlock

2013-06-04 Thread J. Bruce Fields
On Tue, Jun 04, 2013 at 07:46:40AM -0700, Christoph Hellwig wrote: > Having RCU for modification mostly workloads never is a good idea, so > I don't think it makes sense to mention it here. > > If you care about the overhead it's worth trying to use per-cpu lists, > though. Yes. The lock and unl

Re: [Cluster-devel] [PATCH v1 11/11] locks: give the blocked_hash its own spinlock

2013-06-04 Thread Jeff Layton
On Tue, 4 Jun 2013 07:46:40 -0700 Christoph Hellwig wrote: > Having RCU for modification mostly workloads never is a good idea, so > I don't think it makes sense to mention it here. > > If you care about the overhead it's worth trying to use per-cpu lists, > though. > Yeah, I looked at those t

Re: [Cluster-devel] [PATCH v1 11/11] locks: give the blocked_hash its own spinlock

2013-06-04 Thread Jeff Layton
On Tue, 4 Jun 2013 10:53:22 -0400 "J. Bruce Fields" wrote: > On Tue, Jun 04, 2013 at 07:46:40AM -0700, Christoph Hellwig wrote: > > Having RCU for modification mostly workloads never is a good idea, so > > I don't think it makes sense to mention it here. > > > > If you care about the overhead it