[ovs-git] Open vSwitch: netdev-linux: Skip miimon execution when disabled (master)

dev at openvswitch.org dev at openvswitch.org
Sun Nov 3 03:58:38 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, master has been updated
       via  19c8e9c11bcd441a42ababb8439bc7b24e9e435c (commit)
      from  7cb279c20248abe8e1c3f0c3639c107acac40380 (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 19c8e9c11bcd441a42ababb8439bc7b24e9e435c
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=19c8e9c11bcd441a42ababb8439bc7b24e9e435c
Author: Joe Stringer <joestringer at nicira.com>
		
netdev-linux: Skip miimon execution when disabled
		
When dealing with a large number of ports, one of the performance
bottlenecks is that we loop through all netdevs in the main loop. Miimon
is a contributor to this, checking all devices even if it has never been
enabled.

This patch introduces a counter for the number of netdevs with miimon
configured. If this is 0, then we skip miimon_run() and miimon_wait().
In a test environment of 5000 internal ports and 50 tunnel ports with
bfd, this reduces CPU usage from about 50% to about 45%.

Signed-off-by: Joe Stringer <joestringer at nicira.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>


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

Summary of changes:
 lib/netdev-linux.c |   37 +++++++++++++++++++++++++++++++++++--
 1 file changed, 35 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list