> 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
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_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