1*49cdfc7eSAndroid Build Coastguard Worker#DESCRIPTION:Direct IO tests 2*49cdfc7eSAndroid Build Coastguard Worker## Complete a default run. 3*49cdfc7eSAndroid Build Coastguard Workerdio01 diotest1 4*49cdfc7eSAndroid Build Coastguard Workerdio02 diotest2 5*49cdfc7eSAndroid Build Coastguard Workerdio03 diotest3 6*49cdfc7eSAndroid Build Coastguard Workerdio04 diotest4 7*49cdfc7eSAndroid Build Coastguard Workerdio05 diotest5 8*49cdfc7eSAndroid Build Coastguard Workerdio06 diotest6 9*49cdfc7eSAndroid Build Coastguard Worker 10*49cdfc7eSAndroid Build Coastguard Worker## Run the tests with larger buffersize 11*49cdfc7eSAndroid Build Coastguard Workerdio07 diotest1 -b 65536 12*49cdfc7eSAndroid Build Coastguard Workerdio08 diotest2 -b 65536 13*49cdfc7eSAndroid Build Coastguard Workerdio09 diotest3 -b 65536 14*49cdfc7eSAndroid Build Coastguard Workerdio10 diotest4 -b 65536 15*49cdfc7eSAndroid Build Coastguard Workerdio11 diotest5 -b 65536 16*49cdfc7eSAndroid Build Coastguard Workerdio12 diotest6 -b 65536 17*49cdfc7eSAndroid Build Coastguard Worker 18*49cdfc7eSAndroid Build Coastguard Worker### Run the tests with larger iterations 19*49cdfc7eSAndroid Build Coastguard Workerdio13 diotest1 -b 65536 -n 2000 20*49cdfc7eSAndroid Build Coastguard Workerdio14 diotest2 -b 65536 -i 1000 21*49cdfc7eSAndroid Build Coastguard Workerdio15 diotest3 -b 65536 -i 1000 22*49cdfc7eSAndroid Build Coastguard Workerdio16 diotest5 -b 65536 -i 1000 23*49cdfc7eSAndroid Build Coastguard Workerdio17 diotest6 -b 65536 -i 1000 24*49cdfc7eSAndroid Build Coastguard Worker 25*49cdfc7eSAndroid Build Coastguard Worker## Run the tests with larger offset - 1MB 26*49cdfc7eSAndroid Build Coastguard Workerdio18 diotest2 -b 65536 -i 1000 -o 1024000 27*49cdfc7eSAndroid Build Coastguard Workerdio19 diotest3 -b 65536 -i 1000 -o 1024000 28*49cdfc7eSAndroid Build Coastguard Workerdio20 diotest5 -b 65536 -i 1000 -o 1024000 29*49cdfc7eSAndroid Build Coastguard Workerdio21 diotest6 -b 65536 -i 1000 -o 1024000 30*49cdfc7eSAndroid Build Coastguard Worker 31*49cdfc7eSAndroid Build Coastguard Worker## Run the tests with larger offset - 100 MB 32*49cdfc7eSAndroid Build Coastguard Workerdio22 diotest2 -b 65536 -i 1000 -o 104857600 33*49cdfc7eSAndroid Build Coastguard Workerdio23 diotest3 -b 65536 -i 1000 -o 104857600 34*49cdfc7eSAndroid Build Coastguard Workerdio24 diotest5 -b 65536 -i 1000 -o 104857600 35*49cdfc7eSAndroid Build Coastguard Workerdio25 diotest6 -b 65536 -i 1000 -o 104857600 36*49cdfc7eSAndroid Build Coastguard Worker 37*49cdfc7eSAndroid Build Coastguard Worker### Run tests with larger vector array 38*49cdfc7eSAndroid Build Coastguard Workerdio26 diotest6 -b 8192 -v 100 39*49cdfc7eSAndroid Build Coastguard Workerdio27 diotest6 -b 8192 -o 1024000 -i 1000 -v 100 40*49cdfc7eSAndroid Build Coastguard Workerdio28 diotest6 -b 8192 -o 1024000 -i 1000 -v 200 41*49cdfc7eSAndroid Build Coastguard Worker 42*49cdfc7eSAndroid Build Coastguard Worker### Run the tests with more children 43*49cdfc7eSAndroid Build Coastguard Workerdio29 diotest3 -b 65536 -n 100 -i 100 -o 1024000 44*49cdfc7eSAndroid Build Coastguard Workerdio30 diotest6 -b 65536 -n 100 -i 100 -o 1024000 45*49cdfc7eSAndroid Build Coastguard Worker# 46*49cdfc7eSAndroid Build Coastguard Worker# RAW DEVICE TEST SECTION 47*49cdfc7eSAndroid Build Coastguard Worker# DEV1 and DEV2 should be exported prior to execution or 48*49cdfc7eSAndroid Build Coastguard Worker# replaced with the actual device ids, i.e. 49*49cdfc7eSAndroid Build Coastguard Worker# dio33 diotest1 -i /dev/sda2 -o /dev/sda3 50*49cdfc7eSAndroid Build Coastguard Worker# 51*49cdfc7eSAndroid Build Coastguard Worker### Run the tests with raw device 52*49cdfc7eSAndroid Build Coastguard Worker#dio33 diotest1 -i $DEV1 -o $DEV2 53*49cdfc7eSAndroid Build Coastguard Worker#dio34 diotest2 -f $DEV1 54*49cdfc7eSAndroid Build Coastguard Worker#dio36 diotest3 -f $DEV1 55*49cdfc7eSAndroid Build Coastguard Worker#dio37 diotest5 -f $DEV1 56*49cdfc7eSAndroid Build Coastguard Worker#dio38 diotest6 -f $DEV1 57*49cdfc7eSAndroid Build Coastguard Worker# 58*49cdfc7eSAndroid Build Coastguard Worker### Run the tests with raw device and larger iterations 59*49cdfc7eSAndroid Build Coastguard Worker#dio39 diotest1 -b 65536 -n 2000 -i $DEV1 -o $DEV2 60*49cdfc7eSAndroid Build Coastguard Worker#dio40 diotest2 -b 65536 -i 1000 -f $DEV1 61*49cdfc7eSAndroid Build Coastguard Worker#dio41 diotest3 -b 65536 -i 1000 -f $DEV1 62*49cdfc7eSAndroid Build Coastguard Worker#dio42 diotest5 -b 65536 -i 1000 -f $DEV1 63*49cdfc7eSAndroid Build Coastguard Worker#dio43 diotest6 -b 65536 -i 1000 -f $DEV1 64*49cdfc7eSAndroid Build Coastguard Worker# 65*49cdfc7eSAndroid Build Coastguard Worker## Run the tests with raw device and larger offset - 100 MB 66*49cdfc7eSAndroid Build Coastguard Worker#dio44 diotest2 -b 65536 -i 1000 -o 104857600 -f $DEV1 67*49cdfc7eSAndroid Build Coastguard Worker#dio45 diotest3 -b 65536 -i 1000 -o 104857600 -f $DEV1 68*49cdfc7eSAndroid Build Coastguard Worker#dio46 diotest5 -b 65536 -i 1000 -o 104857600 -f $DEV1 69*49cdfc7eSAndroid Build Coastguard Worker#dio47 diotest6 -b 65536 -i 1000 -o 104857600 -f $DEV1 70*49cdfc7eSAndroid Build Coastguard Worker 71