Skip to content

lib/tst_net.sh: calc median instead of mean in tst_netload()

Petr Vorel ltp 1 version New

Get series with b4
b4 am YB0cRKmBcO4qgLf8@pevik

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3lib/tst_net.sh: print all netstress results in tst_netload()+0 -00 replies
2/3lib: add tst_get_median helper binary for use in script tests+0 -00 replies
3/3lib/tst_net.sh: calc median instead of mean in tst_netload()+0 -00 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchPetr Vorel
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [LTP] [PATCH 0/3] lib/tst_net.sh: calc median instead of mean in tst_netload()

Hi Alexey,

Quoted 10 lines

This series of patches is intended to improve the reliability of results in network tests that using tst_netload().

After TST_NETLOAD_RUN_COUNT was added, we get several results (5 by default). The first patch allows all of them to be displayed along with the final result. It helps to debug test performance failures.

Further patches replace the mean calculation of such data set with the median one. It allows to exclude extreme points from the final result.

Thanks for improving stability of these tests!
I've also noticed often failures in net.features and some of ipsec tests, this should help.

FYI as TODO I'd like some of net.features have also as functional tests (ignoring the performance).

Kind regards,
Petr