Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pts/ethr-1.1.0 reports wrong bandwidth for multi thread test option #226

Closed
mamatha-mc opened this issue Jun 15, 2022 · 0 comments
Closed

Comments

@mamatha-mc
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant