2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Oracle, Inc. All Rights Reserved.
7 # Run an all-writes fsstress run with multiple threads to shake out
8 # bugs in the write path.
13 # Override the default cleanup function.
18 $KILLALL_PROG -9 fsstress > /dev/null 2>&1
21 # Import common functions.
23 # Modify as appropriate.
27 _require_command "$KILLALL_PROG" "killall"
29 echo "Silence is golden."
31 _scratch_mkfs > $seqres.full 2>&1
32 _scratch_mount >> $seqres.full 2>&1
34 nr_cpus=$((LOAD_FACTOR * 4))
35 nr_ops=$((25000 * nr_cpus * TIME_FACTOR))
36 $FSSTRESS_PROG $FSSTRESS_AVOID -w -d $SCRATCH_MNT -n $nr_ops -p $nr_cpus >> $seqres.full