fio icon indicating copy to clipboard operation
fio copied to clipboard

cpuio engine does not honor output-format of json or json+

Open aggieNick02 opened this issue 2 years ago • 3 comments

Please acknowledge the following before creating a ticket

  • [X] I have read the GitHub issues section of REPORTING-BUGS.

Description of the bug: When using json/json+ output-format, a cpuio engine job will print output lines before the json/json+ output, breaking anybody that assumes the output will be standard json

Environment: Ubuntu 20.04 LTS

fio version: 3.29

Reproduction steps Run fio --name=job --ioengine=cpuio --cpuload=1 --time_based=1 --runtime=5s --output-format=json

Output will be

job (noop): ioengine=cpuio, cpuload=1, cpucycle=50000
{
  "fio version" : "fio-3.29",
<remainder of output clipped>

aggieNick02 avatar Feb 02 '22 02:02 aggieNick02

This is a longstanding issue:

https://github.com/axboe/fio/issues/731 https://github.com/axboe/fio/issues/1304

Until someone steps up to fix it my suggestion is to work around it by skipping lines until the output parses successfully.

vincentkfu avatar Feb 02 '22 15:02 vincentkfu

Thanks for pointing those out. Do you have any tips or recommendations for getting commits for open issues merged? (I have one that's been sitting for a bit.)

aggieNick02 avatar Feb 02 '22 17:02 aggieNick02

The main impediment is that there aren't many people reviewing patches. My only suggestion is to make your patches as easy to review as possible by, for example, including testing instructions/scripts.

vincentkfu avatar Feb 03 '22 22:02 vincentkfu