On 4/12/21 5:20 PM, Gaetan Rivet wrote:
> Profiling the HW offload thread, the flow offload freeing takes
> approximatively 25% of the time. Most of this time is spent waiting on
> the futex used by the libc free(), as it triggers a syscall and
> reschedule the thread.
> 
> Avoid the syscall and its expensive context switch. Batch the offload
> messages freeing using the RCU.
> 
> Signed-off-by: Gaetan Rivet <[email protected]>
> Reviewed-by: Eli Britstein <[email protected]>
> ---
>  lib/dpif-netdev.c | 11 ++++++++---
>  1 file changed, 8 insertions(+), 3 deletions(-)

Reviewed-by: Maxime Coquelin <[email protected]>

Thanks,
Maxime

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to