forked from justinpettit/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Ben Pfaff <[email protected]>
- Loading branch information
1 parent
7cb279c
commit 19c8e9c
Showing
1 changed file
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters