From: Zorro Lang Date: Sun, 8 Nov 2020 12:26:23 +0000 (+0800) Subject: generic: fsx IO_URING direct-IO soak tests X-Git-Tag: v2022.05.01~601 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=ac23422a8c7d7307287ddb3d97b8818fcb8f8eab generic: fsx IO_URING direct-IO soak tests After fsx supports IO_URING read/write, add a test to do IO_URING direct-IO test by fsx Signed-off-by: Zorro Lang Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/tests/generic/617 b/tests/generic/617 new file mode 100755 index 00000000..91e9e376 --- /dev/null +++ b/tests/generic/617 @@ -0,0 +1,64 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2020 Red Hat Inc. All Rights Reserved. +# +# FS QA Test No. 617 +# +# IO_URING soak direct-IO fsx test, copy from generic/521 but reduce the number +# fsx ops to limit the testing time to be an auto group test. +# +seq=`basename $0` +seqres=$RESULT_DIR/$seq +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + cd / + rm -f $tmp.* +} + +# get standard environment, filters and checks +. ./common/rc +. ./common/filter + +# remove previous $seqres.full before test +rm -f $seqres.full + +# real QA test starts here + +# Modify as appropriate. +_supported_fs generic +_require_test +_require_odirect +_require_io_uring + +# Run fsx for 20 thousand ops or more +nr_ops=$((20000 * TIME_FACTOR)) +op_sz=$((128000 * LOAD_FACTOR)) +file_sz=$((600000 * LOAD_FACTOR)) +fsx_file=$TEST_DIR/fsx.$seq +min_dio_sz=$(_min_dio_alignment) + +fsx_args=(-S 0) +fsx_args+=(-U) +fsx_args+=(-q) +fsx_args+=(-N $nr_ops) +fsx_args+=(-p $((nr_ops / 100))) +fsx_args+=(-o $op_sz) +fsx_args+=(-l $file_sz) +fsx_args+=(-r $min_dio_sz) +fsx_args+=(-t $min_dio_sz) +fsx_args+=(-w $min_dio_sz) +fsx_args+=(-Z) + +run_fsx "${fsx_args[@]}" | sed -e '/^fsx.*/d' + +# success, all done +echo "Silence is golden" +status=0 +exit diff --git a/tests/generic/617.out b/tests/generic/617.out new file mode 100644 index 00000000..201ecddb --- /dev/null +++ b/tests/generic/617.out @@ -0,0 +1,2 @@ +QA output created by 617 +Silence is golden diff --git a/tests/generic/group b/tests/generic/group index e6098156..94e860b8 100644 --- a/tests/generic/group +++ b/tests/generic/group @@ -619,3 +619,4 @@ 614 auto quick rw 615 auto rw 616 auto rw io_uring stress +617 auto rw io_uring stress