summaryrefslogtreecommitdiff
path: root/tests/generic/521
blob: 0956e5017121663ecf43fbd0a37d7af32042090a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2018 Oracle.  All Rights Reserved.
#
# FS QA Test No. 521
#
# Long-soak directio fsx test
#
. ./common/preamble
_begin_fstest soak long_rw smoketest

# Import common functions.
. ./common/filter

# real QA test starts here

# Modify as appropriate.
_supported_fs generic
_require_test
_require_odirect

# Run fsx for a million ops or more
nr_ops=$((1000000 * TIME_FACTOR))
op_sz=$((128000 * LOAD_FACTOR))
file_sz=$((600000 * LOAD_FACTOR))
fsx_file=$TEST_DIR/fsx.$seq
min_dio_sz=$(_min_dio_alignment)

fsx_args=(-q)
fsx_args+=(-N $nr_ops)
fsx_args+=(-p $((nr_ops / 100)))
fsx_args+=(-o $op_sz)
fsx_args+=(-l $file_sz)
fsx_args+=(-r $min_dio_sz)
fsx_args+=(-t $min_dio_sz)
fsx_args+=(-w $min_dio_sz)
fsx_args+=(-Z)
test -n "$SOAK_DURATION" && fsx_args+=(--duration="$SOAK_DURATION")

run_fsx "${fsx_args[@]}" | sed -e '/^fsx.*/d'

# success, all done
echo Silence is golden
status=0
exit