[ovs-dev] [PATCH v4 15/27] dpif-netdev: Quiesce offload thread periodically
Maxime Coquelin
maxime.coquelin at redhat.com
Fri Aug 27 15:00:18 UTC 2021
On 6/9/21 3:09 PM, Gaetan Rivet wrote:
> Similar to what was done for the PMD threads [1], reduce the performance
> impact of quiescing too often in the offload thread.
>
> After each processed offload, the offload thread currently quiesce and
> will sync with RCU. This synchronization can be lengthy and make the
> thread unnecessary slow.
>
> Instead attempt to quiesce every 10 ms at most. While the queue is
> empty, the offload thread remains quiescent.
>
> [1]: 81ac8b3b194c ("dpif-netdev: Do RCU synchronization at fixed interval
> in PMD main loop.")
>
> Signed-off-by: Gaetan Rivet <grive at u256.net>
> Reviewed-by: Eli Britstein <elibr at nvidia.com>
> ---
> lib/dpif-netdev.c | 17 +++++++++++++++--
> 1 file changed, 15 insertions(+), 2 deletions(-)
>
Thanks for the fix:
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list