2 # SPDX-License-Identifier: GPL-2.0
7 # Buffered random write performance test.
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
17 status=1 # failure is the default!
18 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
20 # get standard environment, filters and checks
25 # real QA test starts here
29 _require_block_device $SCRATCH_DEV
34 _size=$((16 * $LOAD_FACTOR))
35 cat >$fio_config <<EOF
37 directory=${SCRATCH_MNT}
46 _require_fio $fio_config
50 # We are going to write at least 16gib, make sure our scratch fs is large enough
51 # to fit and not deal with any enospc overhead.
52 _size=$(($_size * 4 * 1024 * 1024))
53 _scratch_mkfs >> $seqres.full 2>&1
55 _require_fs_space $SCRATCH_MNT $_size
57 cat $fio_config >> $seqres.full
58 $FIO_PROG --output-format=json --output=$fio_results $fio_config
61 cat $fio_results >> $seqres.full
62 _fio_results_compare $seq $fio_results
63 echo "Silence is golden"