[ovs-git] Open vSwitch: bridge: Rate-limit updates to "instant stats". (branch-1.10)

dev at openvswitch.org dev at openvswitch.org
Wed Mar 20 18:32:44 UTC 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, branch-1.10 has been updated
       via  b785f89cc1b86ac92e624ef20366242bae963d5f (commit)
      from  fedd47466df891d6fc1e694e3b21c1b24a5ea18c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b785f89cc1b86ac92e624ef20366242bae963d5f
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=b785f89cc1b86ac92e624ef20366242bae963d5f
Author: Ben Pfaff <blp at nicira.com>
		
bridge: Rate-limit updates to "instant stats".
		
Some information in the database must be kept as up-to-date as
possible to allow controllers to respond rapidly to network outages.
We call these statistics "instant" stats.

Until now, the instant stats have been updated on every trip through
the main loop.  This work scales with the number of interfaces that
ovs-vswitchd manages.  With CFM enabled on 5000 interfaces, even with
a low transmission rate, we see ovs-vswitchd using 100% CPU just to
maintain statistics, even with no actual changes.

This commit rate-limits updates to instant stats to at most 10 times
per second.  Earlier tests I did with similar patches showed a major
reduction in CPU usage.  I have not rerun those tests with this patch,
but I expect that the CPU usage should similarly decline.

CC: Ram Jothikumar <rjothikumar at nicira.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>
Acked-by: Ethan Jackson <ethan at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 vswitchd/bridge.c |   75 +++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 67 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list