提交 72ed3703 编写于 作者: Y Yongxue Hong

fio_linux: Support nvme storage backend

Signed-off-by: NYongxue Hong <yhong@redhat.com>
上级 ca5a7ba7
......@@ -17,6 +17,10 @@
fio_options += '${fio_default_options} --rw=randrw'
s390x:
fio_install_timeout = 600
nvme_direct:
fio_filename = '/home/test'
boot_drive_stg0 = no
force_create_image_stg0 = no
variants:
- aio_native:
image_aio_stg0 = native
......
......@@ -40,6 +40,10 @@ def run(test, params, env):
test.error("Failed to get '%s' drive path" % data_image)
yield drive_path[5:]
def _run_fio_test(target):
for option in params['fio_options'].split(';'):
fio.run('--filename=%s %s' % (target, option))
data_images = params["images"].split()[1:]
info = []
for image in data_images:
......@@ -53,9 +57,11 @@ def run(test, params, env):
session = vm.wait_for_login(timeout=float(params.get("login_timeout", 240)))
fio = generate_instance(params, vm, 'fio')
try:
for did in _get_data_disks():
for option in params['fio_options'].split(';'):
fio.run('--filename=%s %s' % (did, option))
if params.get('image_backend') == 'nvme_direct':
_run_fio_test(params.get('fio_filename'))
else:
for did in _get_data_disks():
_run_fio_test(did)
finally:
fio.clean()
session.close()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册