Re: [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} is

Re: [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 me...@samba.org 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

Re: [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 unlock

Re: [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 h...@infradead.org 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

Re: [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 bfie...@fieldses.org 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

Re: [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. -- To unsubscribe from this list: send the line unsubscribe ceph-devel in the body of a message to

[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