bridge: Rate limit the statistics update.
authorAlex Wang <alexw@nicira.com>
Thu, 18 Sep 2014 21:10:24 +0000 (14:10 -0700)
committerAlex Wang <alexw@nicira.com>
Tue, 23 Sep 2014 22:36:59 +0000 (15:36 -0700)
commite03bce9c9593c6bdbccb288b320fb2fb41f4e8e8
tree92696378f2a7ccbca6b3f4b85b25e5c7edb5b6da
parentf1f60b858337898035fe892d4d82d9d187f4ad6f
bridge: Rate limit the statistics update.

When ovs is running with large topology (e.g. large number of
interfaces), the stats update to ovsdb becomes huge and normally
requires multiple run of ovsdb jsonrpc message processing loop to
consume.

To prevent the periodic stats update from backlogging in the
jsonrpc sending queue, this commit adds rate limiting logic
which only allows new update if the previous one is done.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Acked-by: Flavio Leitner <fbl@redhat.com>
vswitchd/bridge.c