You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 20, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 20, 2026. It is now read-only.
Potential issue with parsing fio output in parser_fio.sh #433
Not sure if the format of the output produced by fio has changed, but parser_fio.sh does not seem to be picking up the right fields for the jq parsing.
See sample output file produced by a variation of fio.pbs. Line of interest is as follows:
READ: bw=611MiB/s (641MB/s), 611MiB/s-611MiB/s (641MB/s-641MB/s), io=512MiB (537MB), run=838-838msec
Parser fails when run as-is. Remove the '|tonumber' from the parser to see that the fields being picked up appear incorrectly
This should not be specific to 8.1, but I'd guess specific to the fio-3.19 version maybe. I can share sample output files being written since that is the source of the discrepancy as the parser seems to be expecting a different format.
I think if may be easier to use the fio --output-format=json to specify you want fio output in json format directly and then parse that file.
e.g to extract fio File size, Block size, numjobs and read BW
Activity
[-]parser_fio.sh[/-][+]Potential issue with parsing fio output in parser_fio.sh[/+]xpillons commentedon Dec 16, 2020
Aman Verma (@vermagit) is this specific to CentOS 8.1 ?
vermagit commentedon Dec 16, 2020
This should not be specific to 8.1, but I'd guess specific to the fio-3.19 version maybe. I can share sample output files being written since that is the source of the discrepancy as the parser seems to be expecting a different format.
garvct commentedon Dec 16, 2020
I think if may be easier to use the fio --output-format=json to specify you want fio output in json format directly and then parse that file.
e.g to extract fio File size, Block size, numjobs and read BW
jq '.jobs[]."job options".size,.jobs[]."job options".bs,.jobs[]."job options".numjobs,.jobs[].read.bw' fio_output.json
"2G"
"4M"
"4"
2616533
xpillons commentedon Dec 17, 2020
good suggestion Cormac Garvey (@garvct) , Aman Verma (@vermagit) please feel free to contribute via a PR