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 _begin_fstest auto rw io_uring stress
13 # Import common functions.
16 # real QA test starts here
18 # Modify as appropriate.
24 # Run fsx for 20 thousand ops or more
25 nr_ops=$((20000 * TIME_FACTOR))
26 op_sz=$((128000 * LOAD_FACTOR))
27 file_sz=$((600000 * LOAD_FACTOR))
28 fsx_file=$TEST_DIR/fsx.$seq
29 min_dio_sz=$(_min_dio_alignment)
34 fsx_args+=(-N $nr_ops)
35 fsx_args+=(-p $((nr_ops / 100)))
37 fsx_args+=(-l $file_sz)
38 fsx_args+=(-r $min_dio_sz)
39 fsx_args+=(-t $min_dio_sz)
40 fsx_args+=(-w $min_dio_sz)
43 run_fsx "${fsx_args[@]}" | sed -e '/^fsx.*/d'
46 echo "Silence is golden"