]> git.proxmox.com Git - mirror_ovs.git/commit
dpif-netdev: Add parameters to configure PMD auto load balance.
authorChristophe Fontaine <cfontain@redhat.com>
Mon, 21 Dec 2020 13:10:31 +0000 (13:10 +0000)
committerIlya Maximets <i.maximets@ovn.org>
Fri, 15 Jan 2021 17:51:27 +0000 (18:51 +0100)
commit62ab5594c20cc815592562af69abb5b8ebe85d55
tree845f5adca888ad8a3b1f1037b50602442d91c695
parente4db0b69e2d81d8d5ca1265fbfbd08a9b30a1a02
dpif-netdev: Add parameters to configure PMD auto load balance.

Two important parts of how PMD auto load balance operates are how
loaded a core needs to be and how much improvement is estimated
before a PMD auto load balance can trigger.

Previously they were hardcoded to 95% loaded and 25% variance
improvement.

These default values may not be suitable for all use cases and
we may want to use a more (or less) aggressive rebalance, either
on the pmd load threshold or on the minimum variance improvement
threshold.

The defaults are not changed, but "pmd-auto-lb-load-threshold" and
"pmd-auto-lb-improvement-threshold" parameters are added to override
the defaults.

$ ovs-vsctl set open_vswitch . other_config:pmd-auto-lb-load-threshold="70"
$ ovs-vsctl set open_vswitch . other_config:pmd-auto-lb-improvement-threshold="20"

Signed-off-by: Christophe Fontaine <cfontain@redhat.com>
Co-Authored-by: Kevin Traynor <ktraynor@redhat.com>
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: David Marchand <david.marchand@redhat.com>
Acked-by: Ian Stokes <ian.stokes@intel.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
NEWS
lib/dpif-netdev.c
vswitchd/vswitch.xml