On 02/16/2017 10:22 AM, Ciara Loftus wrote:
> 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.lof...@intel.com>
> Signed-off-by: Georg Schmuecking <georg.schmueck...@ericsson.com>
> Co-authored-by: Georg Schmuecking <georg.schmueck...@ericsson.com>
> Acked-by: Kevin Traynor <ktray...@redhat.com>
> ---
> v10:
> - Fixed typo in commit message
> - Only store insert_min when value has changed
> - Add prints to reflect changes in the DB

Thanks for the changes, LGTM.
dev mailing list

Reply via email to