Re: [ovs-dev] [PATCH net-next v1 1/1] net: openvswitch: ovs_packet_cmd_execute put sw_flow mainbody in stack

2023-02-20 Thread Simon Horman
On Mon, Feb 20, 2023 at 03:11:17PM +0800, Eddy Tao wrote: > Hi, Simon: > > >     About your concern for the stack size, it leads to more room for > improvement. > > I will file a new version which will have smaller stack occupation and > better performance > > > The new revision is invoked by

Re: [ovs-dev] [PATCH net-next v1 1/1] net: openvswitch: ovs_packet_cmd_execute put sw_flow mainbody in stack

2023-02-19 Thread Eddy Tao
Hi, Simon:     About your concern for the stack size, it leads to more room for improvement. I will file a new version which will have smaller stack occupation and better performance The new revision is invoked by existing examples of using struct in stack, in the same file

Re: [ovs-dev] [PATCH net-next v1 1/1] net: openvswitch: ovs_packet_cmd_execute put sw_flow mainbody in stack

2023-02-19 Thread Eddy Tao
More explanation to the meaning of performance data >>Mode Iterations   Variance    Average Iterations: the number of executions of the same test case (each iteration get a performance value of perf[n] ) Average:  sum of all execution and then divided by 'n_iterations'. Below is the pseudo

Re: [ovs-dev] [PATCH net-next v1 1/1] net: openvswitch: ovs_packet_cmd_execute put sw_flow mainbody in stack

2023-02-19 Thread Eddy Tao
Hi, Simon:     To have better visibility of the effect of the patch, i did another test below Disabling data-path flow installation to steer traffic to slow path only, thus I can observe the performance on slow path, where ovs_packet_cmd_execute is extensively used Testing topology  

Re: [ovs-dev] [PATCH net-next v1 1/1] net: openvswitch: ovs_packet_cmd_execute put sw_flow mainbody in stack

2023-02-19 Thread Eddy Tao
Are there other code-paths that would also benefit from this change. The change is focused on packets goes from user-space to data-path, I do not see other code-path that can benefit from this change eddy ___ dev mailing list d...@openvswitch.org

Re: [ovs-dev] [PATCH net-next v1 1/1] net: openvswitch: ovs_packet_cmd_execute put sw_flow mainbody in stack

2023-02-19 Thread Eddy Tao
Hi, Simon:     Thanks for looking into this. The revisions i proposed are complementary for the same purpose, and also reside in the same code segment. I named them 2 items to clarify the details. Maybe it would be better to name them 2 steps in the same revision to avoid confusion. And

Re: [ovs-dev] [PATCH net-next v1 1/1] net: openvswitch: ovs_packet_cmd_execute put sw_flow mainbody in stack

2023-02-19 Thread Simon Horman
On Sat, Feb 18, 2023 at 02:53:29PM +0800, Eddy Tao wrote: > Add 2 performance revisions for ovs_packet_cmd_execute I think that in general it's nicer to do one change per patch: i.e. split this into two patches. > 1.Stores mainbody of sw_flow(600+ bytes) in stack > Benifit: avoid kmem cache

[ovs-dev] [PATCH net-next v1 1/1] net: openvswitch: ovs_packet_cmd_execute put sw_flow mainbody in stack

2023-02-17 Thread Eddy Tao
Add 2 performance revisions for ovs_packet_cmd_execute 1.Stores mainbody of sw_flow(600+ bytes) in stack Benifit: avoid kmem cache alloc/free caused by ovs_flow_alloc/free 2.Define sw_flow_without_stats_init to initialize mainbody of struct sw_flow, which does not provides memory for