diff options
author | Joe Stringer <joestringer@nicira.com> | 2013-11-01 16:34:29 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-11-02 20:53:10 -0700 |
commit | 19c8e9c11bcd441a42ababb8439bc7b24e9e435c (patch) | |
tree | 6008247f35b7d408bacfabc6896b77cdcbf3d0a3 /tests/.gitignore | |
parent | 7cb279c20248abe8e1c3f0c3639c107acac40380 (diff) | |
download | openvswitch-19c8e9c11bcd441a42ababb8439bc7b24e9e435c.tar.gz |
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@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'tests/.gitignore')
0 files changed, 0 insertions, 0 deletions