2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
7 # fsx exercising direct IO -- sub-block sizes and concurrent buffered IO
10 _begin_fstest rw auto quick
12 # Import common functions.
15 # real QA test starts here
20 psize=`$here/src/feature -s`
21 bsize=`_min_dio_alignment $TEST_DEV`
25 # -N numops: total # operations to do
26 # -l flen: the upper bound on file size
27 # -o oplen: the upper bound on operation size (64k default)
28 # -r readbdy: $psize would make reads page aligned (on i386)
29 # -t truncbdy: $psize would make truncates page aligned (on i386)
30 # -w writebdy: $psize would make writes page aligned (on i386)
32 # -Z: O_DIRECT (use -R, -W, -r and -w too)
33 # -R: mapped read operations DISabled
34 # -W: mapped write operations DISabled
36 #run_fsx -N 10000 -l 500000 -r $psize -t $psize -w $psize -Z -R -W
37 run_fsx -N 10000 -l 500000 -r PSIZE -t BSIZE -w BSIZE -Z -R -W
38 run_fsx -N 10000 -o 8192 -l 500000 -r PSIZE -t BSIZE -w BSIZE -Z -R -W
39 #run_fsx -N 10000 -o 16384 -l 500000 -r PSIZE -t PSIZE -w PSIZE -Z -R -W
40 run_fsx -N 10000 -o 32768 -l 500000 -r PSIZE -t BSIZE -w BSIZE -Z -R -W
41 #run_fsx -N 10000 -o 128000 -l 500000 -r PSIZE -t PSIZE -w PSIZE -Z -R -W
42 run_fsx -N 10000 -o 8192 -l 500000 -r PSIZE -t BSIZE -w BSIZE -Z -R -W
43 #run_fsx -N 10000 -o 16384 -l 500000 -r PSIZE -t PSIZE -w PSIZE -Z -R -W
44 run_fsx -N 10000 -o 32768 -l 500000 -r PSIZE -t BSIZE -w BSIZE -Z -R -W
45 #run_fsx -N 10000 -o 128000 -l 500000 -r PSIZE -t PSIZE -w PSIZE -Z -W
46 run_fsx -N 10000 -o 128000 -l 500000 -r PSIZE -t BSIZE -w BSIZE -Z -W