Skip to contentSkip to conversation

output_format=terse,json core dumping

DISCUSSION Kurt Dorsey 2 participants 4 messages Feb 9, 2016

lore
Share & tools
lore
#0 lore raw

I am trying to get multiple output formats working with fio and I am getting a core dump
fio: diskutil.c:710: show_disk_util: Assertion `parent' failed. Aborted (core dumped)

I am utilizing format from
commit a666cab8ed3d2a2fa782be345425a2e88734a007

Author: Jens Axboe <[email protected]>
Date:   Tue Oct 27 13:45:21 2015 +0900

Enable the use of multiple output formats

You can now do

./fio --output-format=normal,json jobfile.fio

and get both types of output.

fio -v
fio-2.6-10-g820b

fio --ioengine=libaio --buffered=0 --direct=1 --norandommap --name=test --filename=/dev/sdb --iodepth=32 --ba=4k --rw=randrw --rwmixwrite=65 -- bs=8K --numjobs=1 --runtime=10 --ramp_time=0 --time_based --output- format=terse,json

I have also tried
--format=normal,json and I get the same issue

--output-format=normal,terse
Works just fine but I really would like to have json output along with terse.

Is there a workaround to get both terse and json (or json+)? Thank you,
Kurt

#1 lore raw
Quoted 35 lines · Kurt Dorsey

I am trying to get multiple output formats working with fio and I am getting a core dump
fio: diskutil.c:710: show_disk_util: Assertion `parent' failed. Aborted (core dumped)

I am utilizing format from
commit a666cab8ed3d2a2fa782be345425a2e88734a007

Author: Jens Axboe <[email protected]>
Date:   Tue Oct 27 13:45:21 2015 +0900

Enable the use of multiple output formats

You can now do

./fio --output-format=normal,json jobfile.fio

and get both types of output.

fio -v
fio-2.6-10-g820b

fio --ioengine=libaio --buffered=0 --direct=1 --norandommap --name=test --filename=/dev/sdb --iodepth=32 --ba=4k --rw=randrw --rwmixwrite=65 -- bs=8K --numjobs=1 --runtime=10 --ramp_time=0 --time_based --output- format=terse,json

I have also tried
--format=normal,json and I get the same issue

Quoted 6 lines

--output-format=normal,terse
Works just fine but I really would like to have json output along with terse.

Is there a workaround to get both terse and json (or json+)?

This should fix it:

http://git.kernel.dk/cgit/fio/commit/?id=6efb21c218d4ec38c1a4d7dbb86f2028f122acaa

Update to latest -git and test, let me know how it goes.

Signature · 1 line
Jens Axboe
#2 lore raw

Dell - Internal Use - Confidential
Thank you Jens for the quick turn around on this!

This version works much better. The only thing is, it seems to be adding newline before the device field in terse (sdb) and does not newline after the terse and at the beginning of the json. Very minor for my work and I can work around it. I just wanted to let you know

fio --ioengine=libaio --buffered=0 --direct=1 --norandommap --name=test --filename=/dev/sdb --iodepth=32 --ba=4k --rw=randrw --rwmixwrite=65 --bs=8K --numjobs=1 --runtime=10 --ramp_time=0 --time_based --output-format=terse,json 3;fio-2.6-11-g6efb;test;0;0;2743024;274274;34284;10001;2;66;5.068155;2.081777;53;4259;680.945963;661.510225;1.000000%=104;5.000000%=135;10.000000%=159;20.000000%=195;30.000000%=227;40.000000%=262;50.000000%=330;60.000000%=494;70.000000%=812;80.000000%=1160;90.000000%=1928;95.000000%=2096;99.000000%=2288;99.500000%=2384;99.900000%=2768;99.950000%=2992;99.990000%=3504;0%=0;0%=0;0%=0;60;4264;686.156050;661.478202;267168;285200;99.936944%;274101.052632;4453.180205;5081192;508068;63508;10001;1;58;5.145164;2.105941;25;3766;127.001488;67.905687;1.000000%=38;5.000000%=47;10.000000%=56;20.000000%=73;30.000000%=90;40.000000%=108;50.000000%=125;60.000000%=143;70.000000%=159;80.000000%=175;90.000000%=195;95.000000%=211;99.000000%=258;99.500000%=282;99.900000%=338;99.950000%=374;99.990000%=3088;0%=0;0%=0;0%=0;36;3770;132.306972;67.892863;495424;529328;99.953467%;507831.578947;7758.193363;14.020000%;56.580000%;76256;0;34;0.1%;0.1%;0.1%;0.1%;0.1%;100.0%;0.0%;0.00%;0.00%;0.00%;0.00%;4.13%;19.17%;53.74%;8.98%;2.77%;3.12%;5.18%;2.91%;0.01%;0.00%;0.00%;0.00%;0.00%;0.00%;0.00%;0.00%;0.00%;0.00%;sdb;339716;629126;0;0;216452;53142;269548;99.14% ;sdb;339716;629126;0;0;216452;53142;269548;99.14%{
"fio version" : "fio-2.6-11-g6efb",
"timestamp" : 1455049466,
"time" : "Tue Feb 9 14:24:26 2016",

Thank you!
-Kurt

-----Original Message-----
From: Jens Axboe [mailto:[email protected]]
Sent: Tuesday, February 09, 2016 2:20 PM
To: Dorsey, Kurt ; [email protected]
Subject: Re: output_format=terse,json core dumping

Quoted 35 lines · Kurt Dorsey

I am trying to get multiple output formats working with fio and I am getting a core dump
fio: diskutil.c:710: show_disk_util: Assertion `parent' failed. Aborted (core dumped)

I am utilizing format from
commit a666cab8ed3d2a2fa782be345425a2e88734a007
Author: Jens Axboe
Date: Tue Oct 27 13:45:21 2015 +0900

Enable the use of multiple output formats

You can now do

./fio --output-format=normal,json jobfile.fio

and get both types of output.

Signed-off-by Jens Axboe

fio -v
fio-2.6-10-g820b

fio --ioengine=libaio --buffered=0 --direct=1 --norandommap --name=test --filename=/dev/sdb --iodepth=32 --ba=4k --rw=randrw --rwmixwrite=65 -- bs=8K --numjobs=1 --runtime=10 --ramp_time=0 --time_based --output- format=terse,json

I have also tried
--format=normal,json and I get the same issue

Quoted 6 lines

--output-format=normal,terse
Works just fine but I really would like to have json output along with terse.

Is there a workaround to get both terse and json (or json+)?

This should fix it:

http://git.kernel.dk/cgit/fio/commit/?id=6efb21c218d4ec38c1a4d7dbb86f2028f122acaa

Update to latest -git and test, let me know how it goes.

--
Jens Axboe

#3 lore raw
Quoted 8 lines · On 02/09/2016 01:30 PM, [email protected] wrote:

*Dell - Internal Use - Confidential *

Thank you Jens for the quick turn around on this!

This version works much better. The only thing is, it seems to be adding newline before the device field in terse (sdb) and does not newline after the terse and at the beginning of the json. Very minor for my work and I can work around it. I just wanted to let you know

http://git.kernel.dk/cgit/fio/commit/?id=03d189b7d77f66ce4f4dba9885d34c7a55ff4e53

Signature · 1 line
Jens Axboe