[ovs-git] Open vSwitch: datapath: Use percpu allocator for flow-stats. (master)

dev at openvswitch.org dev at openvswitch.org
Fri Dec 6 00:04:47 UTC 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  b0f3a2feef9889d7e23f7941858c0c40b0505d87 (commit)
      from  5c89b171e28fb9b1a60992ea65e226273b474c5a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b0f3a2feef9889d7e23f7941858c0c40b0505d87
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=b0f3a2feef9889d7e23f7941858c0c40b0505d87
Author: Pravin B Shelar <pshelar at nicira.com>
		
datapath: Use percpu allocator for flow-stats.
		
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>


-----------------------------------------------------------------------

Summary of changes:
 datapath/datapath.c     |   39 +++++++++-----------
 datapath/flow.c         |   94 ++++++++++++++++++++++++++++++-----------------
 datapath/flow.h         |   17 +++++++--
 datapath/flow_netlink.c |   56 ++++++++++++++++++++++++++--
 datapath/flow_netlink.h |    1 +
 datapath/flow_table.c   |   31 ++++++++++++++--
 datapath/flow_table.h   |    2 +-
 7 files changed, 172 insertions(+), 68 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list