ofproto-dpif: Rate limit calls to facet_learn().
authorEthan Jackson <ethan@nicira.com>
Fri, 22 Mar 2013 02:40:49 +0000 (19:40 -0700)
committerEthan Jackson <ethan@nicira.com>
Mon, 1 Apr 2013 19:22:58 +0000 (12:22 -0700)
commit37419873b42963ff9da99b7f47cbde39f20f6184
treeaaf29e438cf0f6568dc587737d2e001103b511c2
parentdffa93198738a0cae64cd2343d53445e3161d92d
ofproto-dpif: Rate limit calls to facet_learn().

In the TCP_CRR benchmark, ovs-vswitchd spends so much time in
update_stats() that it has a significant impact on flow setup
performance.  Further work is needed in this area, but for now,
simply rate limiting facet_learn() has a roughly 10% improvement
with complex flow tables.

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