ofproto-dpif: More responsive average subfacet statistics.
authorEthan Jackson <ethan@nicira.com>
Thu, 30 May 2013 20:22:26 +0000 (13:22 -0700)
committerEthan Jackson <ethan@nicira.com>
Fri, 7 Jun 2013 20:26:16 +0000 (13:26 -0700)
commit9fc0165a5020b815bd75bcb84e30fc5fec15a85f
treef9467fd27126433c68ca9f8a89779d5d2690820f
parent5ad72ef5b6cacfec30e79c23afcd237617952b75
ofproto-dpif: More responsive average subfacet statistics.

Before this patch, statistics about subfacet average life span,
and count in the datapath, were calculated over the entire lifetime
of the ofproto.  Furthermore, the subfacet lifespan was only
updated when a subfacet was removed from the datapath causing long
lived subfacets to be ignored.  It's far more useful to know these
numbers averaged over all subfacets in the recent past.  This patch
changes the code to implement an exponentially weighted moving
average updated every time statistics are pulled from the datapath.

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