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:57:46 +0000 (15:57 -0700)
commit62c5c3e2036486765083a68c6d1f06f3c897c917
tree79456701eabd5a18790f6989734355482e9910d6
parentf97ee16ac05a2c81b4b2f7b9d39dc7b93de3393b
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