[ovs-dev] [PATCH V2] ovs-vswitchd: Fix high cpu utilization when acquire idl lock fails.

Ben Pfaff blp at nicira.com
Thu Oct 9 15:31:55 UTC 2014


On Wed, Oct 08, 2014 at 05:23:37PM -0700, Alex Wang wrote:
> When ovs-vswitchd fails to acquire the ovsdb idl lock (either due to
> contention or due to invalid database path), ovs-vswitchd will spin
> on the global connectivity sequence number and consume 100% cpu.
> This is in that the local copy is different to the global sequence
> number and never updated when ovsdb idl is not locked.
> 
> To fix this issue, this commit makes ovs-vswitchd not checking the
> global connectivity sequence number in that situation.
> 
> Reported-by: Ben Pfaff <blp at nicira.com>
> Signed-off-by: Alex Wang <alexw at nicira.com>
> 
> ---
> PATCH -> V2:
> - simplify the code as Ben suggested.

Acked-by: Ben Pfaff <blp at nicira.com>



More information about the dev mailing list