1f08c3bdfSopenharmony_ci#DESCRIPTION:ltp A-sync IO Stress IO tests
2f08c3bdfSopenharmony_ci#
3f08c3bdfSopenharmony_ci# aio-stress [-s size] [-r size] [-a size] [-d num] [-b num]
4f08c3bdfSopenharmony_ci#                 [-i num] [-t num] [-c num] [-C size] [-nxhlvOS ]
5f08c3bdfSopenharmony_ci#                 file1 [file2 ...]
6f08c3bdfSopenharmony_ci#       -a size in KB at which to align buffers
7f08c3bdfSopenharmony_ci#       -b max number of iocbs to give io_submit at once
8f08c3bdfSopenharmony_ci#       -c number of io contexts per file
9f08c3bdfSopenharmony_ci#       -C offset between contexts, default 2MB
10f08c3bdfSopenharmony_ci#       -s size in MB of the test file(s), default 1024MB
11f08c3bdfSopenharmony_ci#       -r record size in KB used for each io, default 64KB
12f08c3bdfSopenharmony_ci#       -d number of pending aio requests for each file, default 64
13f08c3bdfSopenharmony_ci#       -i number of ios per file sent before switching
14f08c3bdfSopenharmony_ci#          to the next file, default 8
15f08c3bdfSopenharmony_ci#       -O Use O_DIRECT (not available in 2.4 kernels),
16f08c3bdfSopenharmony_ci#       -S Use O_SYNC for writes
17f08c3bdfSopenharmony_ci#       -o add an operation to the list: write=0, read=1,
18f08c3bdfSopenharmony_ci#          random write=2, random read=3.
19f08c3bdfSopenharmony_ci#          repeat -o to specify multiple ops: -o 0 -o 1 etc.
20f08c3bdfSopenharmony_ci#       -m shm use ipc shared memory for io buffers instead of malloc
21f08c3bdfSopenharmony_ci#       -m shmfs mmap a file in /dev/shm for io buffers
22f08c3bdfSopenharmony_ci#       -n no fsyncs between write stage and read stage
23f08c3bdfSopenharmony_ci#       -l print io_submit latencies after each stage
24f08c3bdfSopenharmony_ci#       -t number of threads to run
25f08c3bdfSopenharmony_ci#       -v verification of bytes written
26f08c3bdfSopenharmony_ci#       -x turn off thread stonewalling
27f08c3bdfSopenharmony_ci#       -h this message
28f08c3bdfSopenharmony_ci#
29f08c3bdfSopenharmony_ciADS1000 aio-stress -I500  -o2 -S -r4   $TMPDIR/file1
30f08c3bdfSopenharmony_ciADS1001 aio-stress -I500  -o2 -S -r8   $TMPDIR/file1
31f08c3bdfSopenharmony_ciADS1002 aio-stress -I500  -o2 -S -r16  $TMPDIR/file1
32f08c3bdfSopenharmony_ciADS1003 aio-stress -I500  -o2 -S -r32  -t2  $TMPDIR/junkfile $TMPDIR/file2
33f08c3bdfSopenharmony_ciADS1004 aio-stress -I500  -o2 -S -r64   $TMPDIR/junkfile $TMPDIR/file2
34f08c3bdfSopenharmony_ciADS1005 aio-stress -I500  -o3 -S -r4    $TMPDIR/junkfile $TMPDIR/file2
35f08c3bdfSopenharmony_ciADS1006 aio-stress -I500  -o3 -S -r8   -t2  $TMPDIR/junkfile $TMPDIR/file2
36f08c3bdfSopenharmony_ciADS1007 aio-stress -I500  -o3 -S -r16  -t2  $TMPDIR/junkfile $TMPDIR/file2
37f08c3bdfSopenharmony_ciADS1008 aio-stress -I500  -o3 -S -r32  -t4  $TMPDIR/junkfile $TMPDIR/file2  $TMPDIR/file3  $TMPDIR/file4
38f08c3bdfSopenharmony_ciADS1009 aio-stress -I500  -o3 -S -r64  -t4  $TMPDIR/junkfile $TMPDIR/file2  $TMPDIR/file3  $TMPDIR/file4
39f08c3bdfSopenharmony_ciADS1010 aio-stress -I500  -o3 -S -r128 -t4  $TMPDIR/junkfile $TMPDIR/file2  $TMPDIR/file3  $TMPDIR/file4
40f08c3bdfSopenharmony_ciADS1011 aio-stress -I500  -o3 -S -r256 -t8  $TMPDIR/junkfile $TMPDIR/file2  $TMPDIR/file3  $TMPDIR/file4 $TMPDIR/file5  $TMPDIR/file6 $TMPDIR/file7  $TMPDIR/file8
41f08c3bdfSopenharmony_ciADS1012 aio-stress -I500  -o3 -S -r512 -t8  $TMPDIR/junkfile $TMPDIR/file2 $TMPDIR/file3  $TMPDIR/file4 $TMPDIR/file5  $TMPDIR/file6 $TMPDIR/file7  $TMPDIR/file8
42f08c3bdfSopenharmony_ciADS1013 aio-stress -I500  -o2 -O -r4    -t8  $TMPDIR/junkfile $TMPDIR/file2 $TMPDIR/file3  $TMPDIR/file4 $TMPDIR/file5  $TMPDIR/file6 $TMPDIR/file7  $TMPDIR/file8
43f08c3bdfSopenharmony_ciADS1014 aio-stress -I500  -o2 -O -r8         $TMPDIR/file1 $TMPDIR/file2
44f08c3bdfSopenharmony_ciADS1015 aio-stress -I500  -o2 -O -r16        $TMPDIR/file1 $TMPDIR/file2
45f08c3bdfSopenharmony_ciADS1016 aio-stress -I500  -o2 -O -r32   -t2  $TMPDIR/junkfile $TMPDIR/file2
46f08c3bdfSopenharmony_ciADS1017 aio-stress -I500  -o2 -O -r64   -t2  $TMPDIR/junkfile $TMPDIR/file2
47f08c3bdfSopenharmony_ciADS1018 aio-stress -I500  -o3 -O -r4    -t2  $TMPDIR/junkfile $TMPDIR/file2
48f08c3bdfSopenharmony_ciADS1019 aio-stress -I500  -o3 -O -r8    -t2  $TMPDIR/junkfile $TMPDIR/file2
49f08c3bdfSopenharmony_ciADS1020 aio-stress -I500  -o3 -O -r16   -t2  $TMPDIR/junkfile $TMPDIR/file2
50f08c3bdfSopenharmony_ciADS1021 aio-stress -I500  -o3 -O -r32   -t4  $TMPDIR/junkfile $TMPDIR/file2  $TMPDIR/file7  $TMPDIR/file8
51f08c3bdfSopenharmony_ciADS1022 aio-stress -I500  -o3 -O -r64   -t4  $TMPDIR/junkfile $TMPDIR/file2  $TMPDIR/file7  $TMPDIR/file8
52f08c3bdfSopenharmony_ciADS1023 aio-stress -I500  -o3 -O -r128  -t4  $TMPDIR/junkfile $TMPDIR/file2  $TMPDIR/file7  $TMPDIR/file8
53f08c3bdfSopenharmony_ciADS1024 aio-stress -I500  -o3 -O -r256  -t8  $TMPDIR/junkfile $TMPDIR/file2  $TMPDIR/file7  $TMPDIR/file8 $TMPDIR/file4  $TMPDIR/file3  $TMPDIR/file5  $TMPDIR/file6
54f08c3bdfSopenharmony_ciADS1025 aio-stress -I500  -o3 -O -r512  -t8  $TMPDIR/junkfile $TMPDIR/file2 $TMPDIR/file7  $TMPDIR/file8 $TMPDIR/file3  $TMPDIR/file4  $TMPDIR/file5  $TMPDIR/file6
55f08c3bdfSopenharmony_ciADS1026 aio-stress -I500  -o0 -S -r4    -t8  $TMPDIR/junkfile $TMPDIR/file2       $TMPDIR/file7  $TMPDIR/file8 $TMPDIR/file3  $TMPDIR/file4  $TMPDIR/file5  $TMPDIR/file6
56f08c3bdfSopenharmony_ciADS1027 aio-stress -I500  -o0 -S -r8           $TMPDIR/file2
57f08c3bdfSopenharmony_ciADS1028 aio-stress -I500  -o0 -S -r16          $TMPDIR/file2
58f08c3bdfSopenharmony_ciADS1029 aio-stress -I500  -o0 -S -r32   -t2    $TMPDIR/junkfile $TMPDIR/file2
59f08c3bdfSopenharmony_ciADS1030 aio-stress -I500  -o0 -S -r64   -t2    $TMPDIR/junkfile $TMPDIR/file2
60f08c3bdfSopenharmony_ciADS1031 aio-stress -I500  -o1 -S -r4    -t2    $TMPDIR/junkfile $TMPDIR/file2
61f08c3bdfSopenharmony_ciADS1032 aio-stress -I500  -o1 -S -r8    -t2    $TMPDIR/junkfile $TMPDIR/file2
62f08c3bdfSopenharmony_ciADS1033 aio-stress -I500  -o1 -S -r16   -t2    $TMPDIR/junkfile $TMPDIR/file2
63f08c3bdfSopenharmony_ciADS1034 aio-stress -I500  -o1 -S -r32   -t4    $TMPDIR/junkfile $TMPDIR/file2  $TMPDIR/file7  $TMPDIR/file8
64f08c3bdfSopenharmony_ciADS1035 aio-stress -I500  -o1 -S -r64   -t4    $TMPDIR/junkfile $TMPDIR/file2     $TMPDIR/file7  $TMPDIR/file8
65f08c3bdfSopenharmony_ciADS1036 aio-stress -I500  -o1 -S -r128  -t4    $TMPDIR/junkfile $TMPDIR/file2     $TMPDIR/file7  $TMPDIR/file8
66f08c3bdfSopenharmony_ciADS1037 aio-stress -I500  -o1 -S -r256  -t8  $TMPDIR/junkfile $TMPDIR/file2     $TMPDIR/file7  $TMPDIR/file8 $TMPDIR/file4  $TMPDIR/file3  $TMPDIR/file5  $TMPDIR/file6
67f08c3bdfSopenharmony_ciADS1038 aio-stress -I500  -o1 -S -r512  -t8  -x $TMPDIR/junkfile $TMPDIR/file2  $TMPDIR/file7  $TMPDIR/file8 $TMPDIR/file3  $TMPDIR/file4  $TMPDIR/file5  $TMPDIR/file6
68f08c3bdfSopenharmony_ciADS1039 aio-stress -I500  -o1 -O -r4    -t8  -x  $TMPDIR/junkfile $TMPDIR/file2        $TMPDIR/file7  $TMPDIR/file8 $TMPDIR/file3  $TMPDIR/file4  $TMPDIR/file5  $TMPDIR/file6
69f08c3bdfSopenharmony_ciADS1040 aio-stress -I500  -o1 -O -r8    -t2  -x $TMPDIR/junkfile $TMPDIR/file2
70f08c3bdfSopenharmony_ciADS1041 aio-stress -I500  -o1 -O -r16   -t2  -x  $TMPDIR/junkfile $TMPDIR/file2
71f08c3bdfSopenharmony_ciADS1042 aio-stress -I500  -o1 -O -r32   -t2   $TMPDIR/junkfile $TMPDIR/file2
72f08c3bdfSopenharmony_ciADS1043 aio-stress -I500  -o1 -O -r64   -t2   $TMPDIR/junkfile $TMPDIR/file2
73f08c3bdfSopenharmony_ciADS1044 aio-stress -I500  -o1 -O -r4    -t4   $TMPDIR/junkfile $TMPDIR/file2        $TMPDIR/file7  $TMPDIR/file8
74f08c3bdfSopenharmony_ciADS1045 aio-stress -I500  -o1 -O -r8    -t4   $TMPDIR/junkfile $TMPDIR/file2     $TMPDIR/file7  $TMPDIR/file8
75f08c3bdfSopenharmony_ciADS1046 aio-stress -I500  -o1 -O -r16   -t4   $TMPDIR/junkfile $TMPDIR/file2     $TMPDIR/file7  $TMPDIR/file8
76f08c3bdfSopenharmony_ciADS1047 aio-stress -I500  -o1 -O -r32   -t8   $TMPDIR/junkfile $TMPDIR/file2     $TMPDIR/file7  $TMPDIR/file8 $TMPDIR/file4  $TMPDIR/file3  $TMPDIR/file5  $TMPDIR/file6
77f08c3bdfSopenharmony_ciADS1048 aio-stress -I500  -o1 -O -r64   -t8   $TMPDIR/junkfile $TMPDIR/file2  $TMPDIR/file7  $TMPDIR/file8 $TMPDIR/file3  $TMPDIR/file4  $TMPDIR/file5  $TMPDIR/file6
78f08c3bdfSopenharmony_ciADS1049 aio-stress -I500  -o1 -O -r128  -t8   $TMPDIR/junkfile $TMPDIR/file2        $TMPDIR/file7  $TMPDIR/file8 $TMPDIR/file3  $TMPDIR/file4  $TMPDIR/file5  $TMPDIR/file6
79f08c3bdfSopenharmony_ciADS1050 aio-stress -I500  -o1 -O -r256  -t2   $TMPDIR/junkfile $TMPDIR/file2
80