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 23:01:29 +0000 (16:01 -0700)
commit8ed3c277e0990157652ce5557ccc8e0396deb694
treecc2224dc5ec4290ea2b1ce1ac9813a107a5b52f7
parent3ff576b335ca6cad1dfc1d916c9cc5a98297f2ef
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