On Mon, Jul 29, 2019 at 9:11 PM Numan Siddique <[email protected]> wrote:
>
>
>
> On Tue, Jul 30, 2019 at 9:39 AM Numan Siddique <[email protected]>
wrote:
>>
>>
>>
>> On Tue, Jul 30, 2019 at 7:10 AM Han Zhou <[email protected]> wrote:
>>>
>>> From: Han Zhou <[email protected]>
>>>
>>> When there are in-flight flow-installations pending to ovs-vswitchd,
>>> current incremental processing logic prioritizes new change handling.
>>> However, in scenarios where frequent recomputes are triggered, the
>>> later recompute would block the flow-installation for previously
>>> computed flows because recompute usually takes long time, especially
>>> when there are large number of flows. This results in worse latency
>>> than the version without incremental processing in specific scale
>>> test scenarios.
>>>
>>> While we can simply fix the problem by prioritizing flow installation
>>> rather than new change handling, it can cause the incremental
>>> processing to degrade to always recompute in certain scenarios when
>>> there are some changes triggering recomputes, followed by a lot of
>>> continously coming changes that can be handled incrementally. Because
>>> OVSDB change tracker cannot preserve changes across iterations, once
>>> the recompute is triggered and resulted in a lot of pending messages
>>> to ovs-vswitchd, and if we choose to skip the engine_run()
>>> in the next iteration when a incrementally processible change comes,
>>> we miss the opportunity to handle that tracked change and will have
>>> to trigger recompute again in the next next iteration, and so on, if
>>> such changes come continously.
>>>
>>> This patch solves the problem by introducing
engine_set_abort_recompute(),
>>> so that we can prioritize new change handling if the change can be
>>> incrementally processed, but if the change triggers recompute, we
>>> abort there without spending CPU on the recompute to avoid blocking
>>> the previous computed flow installation.
>>>
>>> Reported-by: Daniel Alvarez Sanchez <[email protected]>
>>> Reported-by: Numan Siddique <[email protected]>
>>> Reported-at:
https://mail.openvswitch.org/pipermail/ovs-discuss/2019-June/048822.html
>>> Tested-by: Numan Siddique <[email protected]>
>>> Acked-by: Numan Siddique <[email protected]>
>>> Acked-by: Mark Michelson <[email protected]>
>>> Signed-off-by: Han Zhou <[email protected]>
>>> ---
>>
>>
>> Thanks. I applied this series to master.
>>
>> Numan
>
>
> I think we need this fix for branch 2.12, can you please post the back
port patch.
>
> Thanks
> Numan
>
Thank Numan. For 2.12, I think the original patch posted should work:
https://patchwork.ozlabs.org/patch/1135991/
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to