Re: [ovs-dev] [PATCH 6/7] ofproto-dpif: Use ovs_spinlock for stats.

2014-02-11 Thread YAMAMOTO Takashi
> ovs_mutex showed high up in 'perf' stats, use a spinlock instead. is the mutex implementation on your platform non-adaptive? YAMAMOTO Takash ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 6/7] ofproto-dpif: Use ovs_spinlock for stats.

2014-02-11 Thread Ben Pfaff
On Tue, Feb 11, 2014 at 04:30:48PM -0800, Jarno Rajahalme wrote: > ovs_mutex showed high up in 'perf' stats, use a spinlock instead. > > Signed-off-by: Jarno Rajahalme Do spinlocks perform better than adaptive mutexes, e.g. that one would initialize by adding a function like this: /* Initialize

[ovs-dev] [PATCH 6/7] ofproto-dpif: Use ovs_spinlock for stats.

2014-02-11 Thread Jarno Rajahalme
ovs_mutex showed high up in 'perf' stats, use a spinlock instead. Signed-off-by: Jarno Rajahalme --- ofproto/ofproto-dpif.c | 95 +++- 1 file changed, 54 insertions(+), 41 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c ind