fio-plot icon indicating copy to clipboard operation
fio-plot copied to clipboard

Support docker image

Open dkkb opened this issue 4 years ago • 1 comments

I think it's a good idea to run benchmarks with fio and save the results to a file, then use fio-plot to visualize the results.

In my situation, I got the broken dependencies error when I tried to install libjpeg-devel in Centos7:

Error: Package: libjpeg-turbo-devel-1.2.90-8.el7.x86_64 (base)
           Requires: libjpeg-turbo(x86-64) = 1.2.90-8.el7
           Installed: libjpeg-turbo-1.2.90-5.el7.x86_64 (@base)
               libjpeg-turbo(x86-64) = 1.2.90-5.el7
           Available: libjpeg-turbo-2.0.2-1.x86_64 (sankuai)
               libjpeg-turbo(x86-64) = 2.0.2-1
 You could try using --skip-broken to work around the problem

So I think generating the plot in docker container can fix this issue.

dkkb avatar Nov 16 '21 03:11 dkkb

Hi! There is already a docker image, but you have to build it yourself. If your fio files are correctly named I guess you could build the container, run it and copy bench's result in the container and then generate the plot. Maybe try the following, I've not tested those commands I don't guarantee this will work:

docker build -t fio-plot
docker cp <bench_fio> container_id:/<bench_fio>
docker run fio-plot
fio-plot ...

Flowrey avatar Nov 25 '21 19:11 Flowrey