[ovs-git] [openvswitch/ovs] e03bce: bridge: Rate limit the statistics update.

GitHub noreply at github.com
Tue Sep 23 22:41:38 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: e03bce9c9593c6bdbccb288b320fb2fb41f4e8e8
      https://github.com/openvswitch/ovs/commit/e03bce9c9593c6bdbccb288b320fb2fb41f4e8e8
  Author: Alex Wang <alexw at nicira.com>
  Date:   2014-09-23 (Tue, 23 Sep 2014)

  Changed paths:
    M vswitchd/bridge.c

  Log Message:
  -----------
  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 at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>
Acked-by: Flavio Leitner <fbl at redhat.com>


  Commit: 9c537baf613a16e3dbd4aa1b58541f0736e9323e
      https://github.com/openvswitch/ovs/commit/9c537baf613a16e3dbd4aa1b58541f0736e9323e
  Author: Alex Wang <alexw at nicira.com>
  Date:   2014-09-23 (Tue, 23 Sep 2014)

  Changed paths:
    M vswitchd/bridge.c

  Log Message:
  -----------
  bridge: Refactor the stats and status update.

This commit refactors the stats and status update in bridge_run()
by moving the corresponding code to separate functions.  This
makes the code more organized.

Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: 65b81af3b4e16fda76e865451ee259fac1948721
      https://github.com/openvswitch/ovs/commit/65b81af3b4e16fda76e865451ee259fac1948721
  Author: Alex Wang <alexw at nicira.com>
  Date:   2014-09-23 (Tue, 23 Sep 2014)

  Changed paths:
    M lib/jsonrpc.c

  Log Message:
  -----------
  jsonrpc: Notify excessive sending backlog.

This commit adds a log message to notify the excessive backlog
for jsonrpc.  Expectedly, this message should never be printed.

Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


Compare: https://github.com/openvswitch/ovs/compare/f1f60b858337...65b81af3b4e1


More information about the git mailing list