[ovs-dev] [PATCH v3] datapath: Use percpu allocator for flow-stats.

Pravin Shelar pshelar at nicira.com
Fri Dec 6 00:09:18 UTC 2013


Pushed to master.

Thanks.

On Thu, Dec 5, 2013 at 3:55 PM, Jesse Gross <jesse at nicira.com> wrote:
> On Thu, Dec 5, 2013 at 3:50 PM, Pravin B Shelar <pshelar at nicira.com> wrote:
>> Use percpu allocator for stats due to objection to stats array.
>> But percpu allocator is not designed for high churn allocation/
>> deallcation. so we need to avoid allocating percpu flow for
>> short lived flows. One cheaper way to detect flow is by checking
>> if 5-tuple used in RSS are masked or not. if any one of them is
>> masked, flow is likely shared across CPU where percpu stat
>> should be more scalable. And that flow should be relatively
>> long lived flow.
>>
>> Signed-off-by: Pravin B Shelar <pshelar at nicira.com>
>
> Acked-by: Jesse Gross <jesse at nicira.com>



More information about the dev mailing list