1#DESCRIPTION:ltp A-sync IO Stress IO tests 2# 3# aio-stress [-s size] [-r size] [-a size] [-d num] [-b num] 4# [-i num] [-t num] [-c num] [-C size] [-nxhlvOS ] 5# file1 [file2 ...] 6# -a size in KB at which to align buffers 7# -b max number of iocbs to give io_submit at once 8# -c number of io contexts per file 9# -C offset between contexts, default 2MB 10# -s size in MB of the test file(s), default 1024MB 11# -r record size in KB used for each io, default 64KB 12# -d number of pending aio requests for each file, default 64 13# -i number of ios per file sent before switching 14# to the next file, default 8 15# -O Use O_DIRECT (not available in 2.4 kernels), 16# -S Use O_SYNC for writes 17# -o add an operation to the list: write=0, read=1, 18# random write=2, random read=3. 19# repeat -o to specify multiple ops: -o 0 -o 1 etc. 20# -m shm use ipc shared memory for io buffers instead of malloc 21# -m shmfs mmap a file in /dev/shm for io buffers 22# -n no fsyncs between write stage and read stage 23# -l print io_submit latencies after each stage 24# -t number of threads to run 25# -v verification of bytes written 26# -x turn off thread stonewalling 27# -h this message 28# 29ADS2001 aio-stress -I500 -o2 -S -r32 -t2 $TMPDIR/junkfile $TMPDIR/file2 30ADS2002 aio-stress -I500 -o3 -S -r8 -t2 $TMPDIR/junkfile $TMPDIR/file2 31ADS2003 aio-stress -I500 -o3 -S -r16 -t2 $TMPDIR/junkfile $TMPDIR/file2 32ADS2004 aio-stress -I500 -o3 -S -r32 -t4 $TMPDIR/junkfile $TMPDIR/file2 $TMPDIR/file3 $TMPDIR/file4 33ADS2005 aio-stress -I500 -o3 -S -r64 -t4 $TMPDIR/junkfile $TMPDIR/file2 $TMPDIR/file3 $TMPDIR/file4 34ADS2006 aio-stress -I500 -o2 -O -r32 -t2 $TMPDIR/junkfile $TMPDIR/file2 35ADS2007 aio-stress -I500 -o3 -O -r8 -t2 $TMPDIR/junkfile $TMPDIR/file2 36ADS2008 aio-stress -I500 -o3 -O -r16 -t2 $TMPDIR/junkfile $TMPDIR/file2 37ADS2009 aio-stress -I500 -o3 -O -r32 -t4 $TMPDIR/junkfile $TMPDIR/file2 $TMPDIR/file3 $TMPDIR/file4 38ADS2010 aio-stress -I500 -o3 -O -r64 -t4 $TMPDIR/junkfile $TMPDIR/file2 $TMPDIR/file3 $TMPDIR/file4 39