Skip to content

Commit

Permalink
fio_perf: add allow_direct_io option for RHEL8.8 and later
Browse files Browse the repository at this point in the history
From RHEL8.8, virtiofsd support allow_direct_io option.

Signed-off-by: Xiaoling Gao <[email protected]>
  • Loading branch information
xiagao committed Jun 25, 2023
1 parent 5ec14d7 commit 2f5abb6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qemu/tests/cfg/fio_perf.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,14 @@
fio_options = "--rw=%s --bs=%s --iodepth=%s --runtime=1m --direct=1 --filename=${fs_dest}/%s --name=job1 --ioengine=libaio --thread --group_reporting --numjobs=%s --size=512MB --time_based --output=${guest_result_file} &> /dev/null"
order_list = "Block_size Iodepth Threads BW(MB/S) IOPS Latency(ms) Host_CPU BW/CPU KVM_Exits"
fs_binary_extra_options = " --thread-pool-size=32"
!Host_RHEL.m8:
Host_RHEL.m9:
# The below option isn't supported on RHEL8.
fs_binary_extra_options += " --allow-direct-io"
vfsd_ver_chk_cmd = "rpm -q virtiofsd"
Host_RHEL.m8:
no Host_RHEL.m8.u0 Host_RHEL.m8.u1 Host_RHEL.m8.u2 Host_RHEL.m8.u3 Host_RHEL.m8.u4 Host_RHEL.m8.u5
no Host_RHEL.m8.u6 Host_RHEL.m8.u7
fs_binary_extra_options += " -o allow_direct_io"
variants:
- auto:
fs_binary_extra_options += " -o cache=auto"
Expand Down

0 comments on commit 2f5abb6

Please sign in to comment.