Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / qa / workunits / suites / iozone-sync.sh
1 #!/bin/bash
2
3 set -e
4
5 # basic tests of O_SYNC, O_DSYNC, O_RSYNC
6 # test O_SYNC
7 iozone -c -e -s 512M -r 1M -t 1 -F osync1 -i 0 -i 1 -o
8 # test O_DSYNC
9 iozone -c -e -s 512M -r 1M -t 1 -F odsync1 -i 0 -i 1 -+D
10 # test O_RSYNC
11 iozone -c -e -s 512M -r 1M -t 1 -F orsync1 -i 0 -i 1 -+r
12
13 # test same file with O_SYNC in one process, buffered in the other
14 # the sync test starts first, so the buffered test should blow
15 # past it and 
16 iozone -c -e -s 512M -r 1M -t 1 -F osync2 -i 0 -i 1 -o &
17 sleep 1
18 iozone -c -e -s 512M -r 256K -t 1 -F osync2 -i 0
19 wait $!
20
21 # test same file with O_SYNC from different threads
22 iozone -c -e -s 512M -r 1M -t 2 -F osync3 -i 2 -o