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>
Wed, 1 Oct 2014 00:34:04 +0000 (17:34 -0700)
commit6bef3c7ca859f208239ca61ec3b25c09a3571553
treef69d6e98c99d1cfa249022ba9343ed36457eb7f9
parentd7fdacb78804599141d56c98a303e2ba6c12fd9b
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