On Mon, Apr 29, 2013 at 08:16:35AM -0700, Gurucharan Shetty wrote:
> There are very rare cases (ex: ovs-vswitchd.pid is inadvertantly deleted),
> when multiple ovs-vswitchd daemons can end up running at the same time.
> In a situation like that one of the daemons can wait on the poll()
> with a 0 ms wait time as it would be expecting system stats to be collected.
> 
> But system stats are never run for the daemon that does not have the
> lock on the database and hence it takes up 100% of the CPU if its state
> machine for stats collection previously was S_WAITING.
> 
> With this patch, we disable the system stats collection for the daemon that
> does not have the database lock. When it eventually gets the lock on the
> database, system stats are automatically enabled if other_config:\
> enable-statistics=true.
> 
> Bug #16669.
> Signed-off-by: Gurucharan Shetty <gshe...@nicira.com>

Good catch, thank you!
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to