Skip to content

TypeError: '>' not supported between instances of 'NoneType' and 'int' when trying to use fio-plot to plot a 2D line chart after running io test by bench-fio #126

@enkka

Description

@enkka

I got a pytyhon error when trying to use fio-plot to plot a 2D line chart after running io test by bench-fio

Traceback (most recent call last):
File "/usr/local/bin/fio-plot", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/fio_plot/init.py", line 40, in main
data = routing_dict[graphtype]"get_data"
File "/usr/local/lib/python3.10/dist-packages/fio_plot/fiolib/getdata.py", line 33, in get_log_data
logfiles = logdata.filterLogFiles(settings, benchmarkfiles)
File "/usr/local/lib/python3.10/dist-packages/fio_plot/fiolib/dataimport.py", line 111, in filterLogFiles
data["directory"] = return_folder_name(item["filename"], settings, True)
File "/usr/local/lib/python3.10/dist-packages/fio_plot/fiolib/dataimport.py", line 59, in return_folder_name
if child > 0:
TypeError: '>' not supported between instances of 'NoneType' and 'int'

here is bench-fio ini config

[benchfio]
type=device
direct=1
engine=libaio
destructive=True
parallel=True
mode=write
runtime=60
block_size=1m
output=./20231030-083144
iodepth=8
numjobs=1
target=/dev/sda

fio-plot ini config

[graphtype]
graphtype = loggraph

[settings]
output_filename = 20231030-083144.png
title = write 1m for 60s test result
source = 20231030-083144
rw = write
iodepth = 8
numjobs = 1
type = bw
input_directory = /root/20231030-083144/SN0077_sda/1m/
filter = read,write
maxdepth = 64
maxjobs = 64
dpi = 300
percentile = 99.99
max_z =
max_lat =
max_iops =
max_bw =
moving_average = 

[layout]
title_fontsize = 16
subtitle_fontsize = 10
source_fontsize = 6
credit_fontsize = 8
table_fontsize = 10
xlabel_depth = 
xlabel_parent = 
xlabel_segment_size = 
line_width = 
grou_bars = 
show_cpu = False
show_ss = False
table_lines = False
disable_grid = False
enable_markers = False
disable_fio_version = False
colors = 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions