phoronix-test-suite / test-profiles

A read-only Git copy of the OpenBenchmarking.org test profiles.
Other
68 stars 80 forks source link

pts/fio-2.0.0 does not convert kib/s to mib/s #286

Closed mjekdi closed 9 months ago

mjekdi commented 1 year ago

Bandwidth is reported incorrectly because the test profile is not converting kib to mib.

Screenshot from 2023-08-08 11-07-25

Flexible IO Tester Type Random Read - Engine IO_uring - Buffered No - Direct Yes - Block Size 4KB - Job Count 1 - Disk Target - fio test.log

csawatzkyST commented 9 months ago

I had the same issue and created a local copy of the fio-2.0.0 test profile. I used the following results-definition.xml to parse either KiB/s or MiB/s depending on which was returned by fio

<?xml version="1.0"?>
<!--Phoronix Test Suite v10.8.4-->
<PhoronixTestSuite>
  <ResultsParser>
    <OutputTemplate>   bw (  KiB/s): min=#_MIN_RESULT_# max=#_MAX_RESULT_# per=100.00%  avg=#_RESULT_# stdev=361099.35  samples=238</OutputTemplate>
    <LineHint>bw (  KiB/s)</LineHint>
    <DivideResultBy>1024</DivideResultBy>
    <ResultScale>MiB/s</ResultScale>
    <ResultProportion>HIB</ResultProportion>
    <TurnCharsToSpace>,</TurnCharsToSpace>
  </ResultsParser>
  <ResultsParser>
    <OutputTemplate>   bw (  MiB/s): min=#_MIN_RESULT_# max=#_MAX_RESULT_# per=100.00%  avg=#_RESULT_# stdev=497.96  samples=239</OutputTemplate>
    <LineHint>bw (  MiB/s)</LineHint>
    <ResultScale>MiB/s</ResultScale>
    <ResultProportion>HIB</ResultProportion>
    <TurnCharsToSpace>,</TurnCharsToSpace>
  </ResultsParser>
  <ResultsParser>
    <OutputTemplate>   iops        : min=#_MIN_RESULT_#  max=#_MAX_RESULT_#  avg=#_RESULT_#  stdev=157.62  samples=239</OutputTemplate>
    <LineBeforeHint>bw (</LineBeforeHint>
    <ResultScale>IOPS</ResultScale>
    <ResultProportion>HIB</ResultProportion>
    <ResultPrecision>0</ResultPrecision>
    <TurnCharsToSpace>,</TurnCharsToSpace>
  </ResultsParser>
</PhoronixTestSuite>
hongj520 commented 9 months ago

Hi,I have test the fio profile,it's working.But when i new installed the phoronix-test-suite,I run phoronix-test-suite benchmark fio,the fio resulte-definition.xml is not the new version.May be shloud update.