Re: [PATCH][net-next] openvswitch: eliminate cpu_used_mask from sw_flow

2018-07-28 Thread David Miller
From: Li RongQing Date: Fri, 27 Jul 2018 16:03:57 +0800 > The size of struct cpumask varies with CONFIG_NR_CPUS, some config > CONFIG_NR_CPUS is very larger, like 5120, struct cpumask will take > 640 bytes, if there is thousands of flows, it will take lots of > memory > > cpu_used_mask has two p

Re: [PATCH][net-next] openvswitch: eliminate cpu_used_mask from sw_flow

2018-07-28 Thread Pravin Shelar
On Fri, Jul 27, 2018 at 1:03 AM, Li RongQing wrote: > The size of struct cpumask varies with CONFIG_NR_CPUS, some config > CONFIG_NR_CPUS is very larger, like 5120, struct cpumask will take > 640 bytes, if there is thousands of flows, it will take lots of > memory > I am fine with removing cpumask

[PATCH][net-next] openvswitch: eliminate cpu_used_mask from sw_flow

2018-07-27 Thread Li RongQing
The size of struct cpumask varies with CONFIG_NR_CPUS, some config CONFIG_NR_CPUS is very larger, like 5120, struct cpumask will take 640 bytes, if there is thousands of flows, it will take lots of memory cpu_used_mask has two purposes 1: Assume first cpu as cpu0 which maybe not true; now use c