]> git.proxmox.com Git - mirror_ovs.git/commit - NEWS
dpif-netdev: Conditional EMC insert
authorCiara Loftus <ciara.loftus@intel.com>
Thu, 16 Feb 2017 10:22:10 +0000 (10:22 +0000)
committerDaniele Di Proietto <diproiettod@vmware.com>
Thu, 16 Feb 2017 19:46:17 +0000 (11:46 -0800)
commit4c30b24602c3ab73447073f7bb7644647734a6c0
tree0eaa4689d82886990dc9efe06b96a78097a23335
parent878b54d7838b206a707a9d00a8927f99a2800ab2
dpif-netdev: Conditional EMC insert

Unconditional insertion of EMC entries results in EMC thrashing at high
numbers of parallel flows. When this occurs, the performance of the EMC
often falls below that of the dpcls classifier, rendering the EMC
practically useless.

Instead of unconditionally inserting entries into the EMC when a miss
occurs, use a 1% probability of insertion. This ensures that the most
frequent flows have the highest chance of creating an entry in the EMC,
and the probability of thrashing the EMC is also greatly reduced.

The probability of insertion is configurable, via the
other_config:emc-insert-inv-prob option. This value sets the average
probability of insertion to 1/emc-insert-inv-prob.

For example the following command changes the insertion probability to
(on average) 1 in every 20 packets ie. 1/20 ie. 5%.

ovs-vsctl set Open_vSwitch . other_config:emc-insert-inv-prob=20

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Signed-off-by: Georg Schmuecking <georg.schmuecking@ericsson.com>
Co-authored-by: Georg Schmuecking <georg.schmuecking@ericsson.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
AUTHORS.rst
Documentation/howto/dpdk.rst
NEWS
lib/dpif-netdev.c
tests/pmd.at
vswitchd/vswitch.xml