I was also struggling a bit with this conceptual mismatch.
N really is the reciprocal probability (P = 1/N), and values above a few
1000s are probably not very meaningful.
Specifying in P in percent is certainly easier to understand, the only
issue I have is that integer values would limit us to P >= 1%. Would it
be an option to specify P in percent but allow floating point values, so
that one could say other_config:emc-insert-prob=0.1 for P = 1/1000?
BR, Jan
On 2017-02-09 11:30, Ilya Maximets wrote:
Hi, Ciara.
+EMC Insertion Probability
+-------------------------
+By default 1 in every 100 flows are inserted into the Exact Match Cache (EMC).
+It is possible to change this insertion probability by setting the
+``emc-insert-prob`` option::
+
+ $ ovs-vsctl --no-wait set Open_vSwitch . other_config:emc-insert-prob=N
+
+where:
+
+``N``
+ is a positive integer between 0 and 4294967295 (maximum unsigned 32bit int).
+
+If ``N`` is set to 1, an insertion will be performed for every flow. The lower
+the value of ``emc-insert-prob`` the higher the probability of insertion,
+except for the value 0 which will result in no insertions being performed and
+thus essentially disabling the EMC.
I totally don't understand why 'N' is an integer between 0 and 4294967295.
Why we can't just use 0-100% for that config?
Probability in math is a value between 0 and 1. We can use an integer values
from 0 to 100 in percents. IMHO, that strange configuration kind of misleading
because 'emc-insert-prob' reads as 'emc-insert-probability' but means something
completely different. Also, does all of this values from 0 to 4294967295 are
useful?
What do you think?
Best regards, Ilya Maximets.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev