ofproto-dpif: Push statistics less frequently.
authorEthan Jackson <ethan@nicira.com>
Fri, 22 Mar 2013 02:04:52 +0000 (19:04 -0700)
committerEthan Jackson <ethan@nicira.com>
Mon, 1 Apr 2013 22:59:29 +0000 (15:59 -0700)
commite20b5746021eadbb1b0a7694ef46982e1088cf2f
treeef2b50575e547948c6681a9db769f1de5440d005
parent8fa4d1d0bf8f47c8404dbdf6a12cb60106617f8c
ofproto-dpif: Push statistics less frequently.

The most natural place to push facet statistics is in
update_stats() where they're pulled from the datapath.  However,
under load, update_stats() can be called as many as 10 times per
second causing us to push statistics so frequently it hurts
performance.  By pushing statistics much less frequently, this
patch generates a roughly 8% improvement in TCP_CRR performance.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-dpif.c