metrics: FIO ci test enablement

This PR enables the new FIO test based on the containerd client
which is used to track the I/O metrics in the kata-ci environment.

Additionally this PR fixes the parsing of results.

Fixes: #8199

Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
This commit is contained in:
David Esparza
2023-10-10 18:39:40 -06:00
parent 873386a349
commit 1626253d9e
5 changed files with 143 additions and 26 deletions

View File

@@ -71,7 +71,7 @@ function launch_workload() {
local test_name="${io_type}_${block_size}_nj-${num_jobs}_${rate_process}_iodepth-${iodepth}_io-direct-${disable_buffered}"
setup_workload
rm -f "${summary_file_local}" > /dev/null 2>&1
rm -f "${summary_file_local}" >/dev/null 2>&1
fio \
--name="${test_name}" \
--output-format="json" \
@@ -88,12 +88,12 @@ function launch_workload() {
--iodepth="${iodepth}" \
--gtod_reduce="1" \
--randrepeat="1" \
| tee -a ${summary_file_local} > /dev/null 2>&1
--output "${summary_file_local}" >/dev/null 2>&1
}
function print_latest_results() {
[ ! -f "${summary_file_local}" ] && echo "Error: no results to display; you must run a test before requesting results display" && exit 1
echo "$(cat ${summary_file_local})"
cat "${summary_file_local}"
}
function delete_workload() {