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
- [ovs-dev] [PATCH v2 09/28] ovs-atomic: Expose atomic excha... Gaetan Rivet
- [ovs-dev] [PATCH v2 14/28] dpif-netdev: Quiesce offload th... Gaetan Rivet
- Re: [ovs-dev] [PATCH v2 14/28] dpif-netdev: Quiesce o... Maxime Coquelin
- Re: [ovs-dev] [PATCH v2 14/28] dpif-netdev: Quies... Gaƫtan Rivet
- Re: [ovs-dev] [PATCH v2 14/28] dpif-netdev: Q... Maxime Coquelin
- [ovs-dev] [PATCH v2 04/28] dpctl: Add function to read har... Gaetan Rivet
- Re: [ovs-dev] [PATCH v2 04/28] dpctl: Add function to... Maxime Coquelin
- [ovs-dev] [PATCH v2 05/28] dpif-netdev: Rename flow offloa... Gaetan Rivet
- Re: [ovs-dev] [PATCH v2 05/28] dpif-netdev: Rename fl... Maxime Coquelin
- [ovs-dev] [PATCH v2 15/28] dpif-netdev: Postpone flow offl... Gaetan Rivet
- Re: [ovs-dev] [PATCH v2 15/28] dpif-netdev: Postpone ... Maxime Coquelin
- [ovs-dev] [PATCH v2 23/28] netdev-offload-dpdk: Protect co... Gaetan Rivet
- Re: [ovs-dev] [PATCH v2 23/28] netdev-offload-dpdk: P... Maxime Coquelin
- [ovs-dev] [PATCH v2 08/28] dpif-netdev: Implement hardware... Gaetan Rivet
- Re: [ovs-dev] [PATCH v2 08/28] dpif-netdev: Implement... Maxime Coquelin
- [ovs-dev] [PATCH v2 13/28] netdev-offload: Add multi-threa... Gaetan Rivet
- Re: [ovs-dev] [PATCH v2 13/28] netdev-offload: Add mu... Maxime Coquelin
- [ovs-dev] [PATCH v2 17/28] dpif-netdev: Introduce tagged u... Gaetan Rivet
- Re: [ovs-dev] [PATCH v2 17/28] dpif-netdev: Introduce... Maxime Coquelin
- [ovs-dev] [PATCH v2 24/28] dpif-netdev: Use lockless queue... Gaetan Rivet
- Re: [ovs-dev] [PATCH v2 24/28] dpif-netdev: Use lockl... Maxime Coquelin
