Usage: ndisk version 5.9
Complex Disk tests - sequential or random read and write mixture
ndisk -S Seqential Disk I/O test (file or raw device)
-R Random Disk I/O test (file or raw device)
-t <secs> Timed duration of the test in seconds (default 5)
-f <file> use "File" for disk I/O (can be a file or raw device)
-f <list> use separated list of filenames (max 16) [separators :,+]
example: -f f1,f2,f3 or -f /dev/rlv1:/dev/rlv2
-F <file> <file> contains list of filenames, one per line
-M <num> Mutliple processes used to generate I/O
-s <size> file Size, use with K, M or G (mandatory for raw device)
example -s 256M or -s 4G
-r <read%> Read percent min=0,max=100 (default 80 =80%read+20%write)
example -r 50 (-r 0 = write only, -r 100 = read only)
-b <size> Block size, use with K, M or G (default 4KB)
-O <size> first byte offset use with K, M or G (times by proc#)
-b <list> or use a colon separated list of block sizes (536876292 max)
example -b 512:1k:2K:8k:1M:2m
-q flush file to disk after each write (fsync())
-Q flush file to disk via open() O_SYNC flag
-i <MB> Use shared memory for I/O MB is the size(max=536876100 MB)
-v Verbose mode = gives extra stats but slower
-l Loging disk I/O mode = see *.log but slower still
-o "cmd" Other command - pretend to be this other cmd when running
Must be the last option on the line
-K num Shared memory key (default 0xdeadbeef) allows multiple programs
-p Pure = each Sequential thread does read or write not both
-P file Pure with separate file for writers
-z percent Snooze percent - time spent sleeping (default 0)
Pre_POSIX AIO and needs fixing up
Asynchronous I/O tests (AIO)
-A AIO use -S/-R, -f/-F and -r, -M, -s, -b to determine I/O types
(JFS file or raw device)
-x <min> minimum outstanding Async I/Os (min=0 and min<max)
-X <max> maximum outstanding Async I/Os (max=1024)
see Above -f <file> -s <size> -R <read%> -b <size>
For example:
ndisk -f bigfile -S -r100 -b 4096:8k:64k:1m -t 600
ndisk -f bigfile -R -r75 -b 4096:8k:64k:1m -q
ndisk -F filelist -R -r75 -b 4096:8k:64k:1m -M 16
ndisk -F filelist -R -r75 -b 4096:8k:64k:1m -M 16 -l -v
ndiskaio for Asynch compiled in version
ndiskaio -A -F filelist -R -r50 -b 4096:8k:64k:1m -M 16 -x 8 -X 64