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
28 _require_block_device $SCRATCH_DEV
33 _size=$((16 * $LOAD_FACTOR))
34 cat >$fio_config <<EOF
36 directory=${SCRATCH_MNT}
45 _require_fio $fio_config
49 # We are going to write at least 16gib, make sure our scratch fs is large enough
50 # to fit and not deal with any enospc overhead.
51 _size=$(($_size * 4 * 1024 * 1024))
52 _scratch_mkfs >> $seqres.full 2>&1
54 _require_fs_space $SCRATCH_MNT $_size
56 cat $fio_config >> $seqres.full
57 $FIO_PROG --output-format=json --output=$fio_results $fio_config
60 cat $fio_results >> $seqres.full
61 _fio_results_compare $seq $fio_results
62 echo "Silence is golden"