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

Alex Wang alexw at nicira.com
Thu Oct 9 16:53:06 UTC 2014


Thx for the review, applied to master

Also, backported the recent change + unit tests added in ovs-vswitchd.at
to branch-2.3.

On Thu, Oct 9, 2014 at 8:31 AM, Ben Pfaff <blp at nicira.com> wrote:

> 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