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_ciADS2001 aio-stress -I500 -o2 -S -r32 -t2 $TMPDIR/junkfile $TMPDIR/file2 30f08c3bdfSopenharmony_ciADS2002 aio-stress -I500 -o3 -S -r8 -t2 $TMPDIR/junkfile $TMPDIR/file2 31f08c3bdfSopenharmony_ciADS2003 aio-stress -I500 -o3 -S -r16 -t2 $TMPDIR/junkfile $TMPDIR/file2 32f08c3bdfSopenharmony_ciADS2004 aio-stress -I500 -o3 -S -r32 -t4 $TMPDIR/junkfile $TMPDIR/file2 $TMPDIR/file3 $TMPDIR/file4 33f08c3bdfSopenharmony_ciADS2005 aio-stress -I500 -o3 -S -r64 -t4 $TMPDIR/junkfile $TMPDIR/file2 $TMPDIR/file3 $TMPDIR/file4 34f08c3bdfSopenharmony_ciADS2006 aio-stress -I500 -o2 -O -r32 -t2 $TMPDIR/junkfile $TMPDIR/file2 35f08c3bdfSopenharmony_ciADS2007 aio-stress -I500 -o3 -O -r8 -t2 $TMPDIR/junkfile $TMPDIR/file2 36f08c3bdfSopenharmony_ciADS2008 aio-stress -I500 -o3 -O -r16 -t2 $TMPDIR/junkfile $TMPDIR/file2 37f08c3bdfSopenharmony_ciADS2009 aio-stress -I500 -o3 -O -r32 -t4 $TMPDIR/junkfile $TMPDIR/file2 $TMPDIR/file3 $TMPDIR/file4 38f08c3bdfSopenharmony_ciADS2010 aio-stress -I500 -o3 -O -r64 -t4 $TMPDIR/junkfile $TMPDIR/file2 $TMPDIR/file3 $TMPDIR/file4 39