2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2020 Red Hat Inc. All Rights Reserved.
7 # IO_URING soak direct-IO fsx test, copy from generic/521 but reduce the number
8 # fsx ops to limit the testing time to be an auto group test.
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
25 # get standard environment, filters and checks
29 # remove previous $seqres.full before test
32 # real QA test starts here
34 # Modify as appropriate.
40 # Run fsx for 20 thousand ops or more
41 nr_ops=$((20000 * TIME_FACTOR))
42 op_sz=$((128000 * LOAD_FACTOR))
43 file_sz=$((600000 * LOAD_FACTOR))
44 fsx_file=$TEST_DIR/fsx.$seq
45 min_dio_sz=$(_min_dio_alignment)
50 fsx_args+=(-N $nr_ops)
51 fsx_args+=(-p $((nr_ops / 100)))
53 fsx_args+=(-l $file_sz)
54 fsx_args+=(-r $min_dio_sz)
55 fsx_args+=(-t $min_dio_sz)
56 fsx_args+=(-w $min_dio_sz)
59 run_fsx "${fsx_args[@]}" | sed -e '/^fsx.*/d'
62 echo "Silence is golden"