pts/ethr-1.1.0 reports wrong bandwidth for multi thread test option
mamatha-mc opened this issue · comments
https://github.com/phoronix-test-suite/test-profiles/tree/master/pts/ethr-1.1.0
The latest ethr-1.1.0 averages out all the individual thread result with the SUM and gives the wrong Bandwidth.
Below are my code changes to get it working. [These changes are for only TCP tests} . Please suggest if any better way to do the same. Thanks.
In results-definition.xml, changed below code
<ResultsParser>
<OutputTemplate>[ G] TCP 007-008 sec #_RESULT_#</OutputTemplate>
<LineHint>G</LineHint>
<StripFromResult>G</StripFromResult>
<MultiMatch>AVERAGE</MultiMatch>
<ResultScale>Gbits/sec</ResultScale>
</ResultsParser>
to
<ResultsParser>
<OutputTemplate>[ SUM] TCP 007-008 sec #_RESULT_#</OutputTemplate>
<LineHint>[</LineHint>
<StripFromResult>G</StripFromResult>
<MultiMatch>AVERAGE</MultiMatch>
<ResultScale>Gbits/sec</ResultScale>
</ResultsParser>
In install.sh, changed below line
./ethr.bin \$@ > \$LOG_FILE 2>1
to
./ethr.bin \$@ > temp.log 2>1
if grep SUM temp.log; then
grep SUM temp.log > \$LOG_FILE
else
temp.log > \$LOG_FILE