bridge: Fix high cpu utilization.
authorAlex Wang <alexw@nicira.com>
Tue, 30 Sep 2014 20:46:22 +0000 (13:46 -0700)
committerAlex Wang <alexw@nicira.com>
Thu, 9 Oct 2014 16:48:23 +0000 (09:48 -0700)
commit367681a9213ab2d99177e222dad5ca69df1edf60
tree1bfbd4b6beb9124f0eabaa7fafc1a1fe390653bc
parent406e84289ee0bb1a8f3d2f7bd7563c43e603c335
bridge: Fix high cpu utilization.

When there are more than one ovs-vswitchd processes started,
only one process is enabled.  The disabled processes should
just sleep.  However, a bug in ovs makes the disabled processes
keep waking up on global connectivity sequence number which is
never sync'ed.  Consequently, those processes use 100% cpu.

This commit fixes the bug by always sync up the connectivity
sequence number for disabled processes.

Reported-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Joe Stringer <joestringer@nicira.com>
tests/ovs-vswitchd.at
vswitchd/bridge.c