diff options
author | Dave Barach <dave@barachs.net> | 2020-02-17 17:07:12 -0500 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2020-02-18 18:42:22 +0000 |
commit | 000a029e4a6a481f35b978dfe474c82d8da88e95 (patch) | |
tree | 287b547c120b95f6b93dc9e2556fc68e52b82cf1 /src/plugins/ioam/analyse | |
parent | ff19e3bf4fc10d17e3bafa798e6048ad473c6bd8 (diff) |
vlib: calculate per-worker loops/second metric
Use exponential smoothing. Each sample has a half-life of 1
second. reported_rate(t) = reported_rate(t-1) * K + rate(t)*(1-K)
Sample every 20ms, i.e. 50 samples per second
K = exp (-1.0/20.0);
K = 0.95;
Type: feature
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I9aea5dd5fecfaefffb78245316adb4bf62eb2bd4
Diffstat (limited to 'src/plugins/ioam/analyse')
0 files changed, 0 insertions, 0 deletions