Hi,

In udpif_revalidator(), the leader thread seems to adjust the datapath 
flow_limit
in response to duration (which is the time taken to revalidate). It does this 
with
some heuristic calculations that I have reproduced below. Not sure exactly why 
it
is doing this or how the heuristics work as I would have assumed the flow_limit 
would
be independent of revalidation time. Can anyone shed some light on that for me?

            if (duration > 2000) {
                flow_limit /= duration / 1000;
            } else if (duration > 1300) {
                flow_limit = flow_limit * 3 / 4;
            } else if (duration < 1000 && n_flows > 2000
                       && flow_limit < n_flows * 1000 / duration) {
                flow_limit += 1000;
            }

Thanks,

Mark
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to