blob: 75eba7845ea99bf94ed935c667fa0875f29d50f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#!/usr/bin/env bash
. $(dirname $(readlink -e "${BASH_SOURCE[0]}"))/test-libs.sh
config-scratch-devs 4G
config-timeout $(stress_timeout)
run_fio()
{
filename=$1
shift
fio --eta=always \
--randrepeat=0 \
--ioengine=libaio \
--iodepth=64 \
--iodepth_batch=16 \
--direct=1 \
--numjobs=1 \
--verify=meta \
--verify_fatal=1 \
--filename=$filename \
--name=randrw \
--rw=randrw \
--bsrange=4k-1M \
--loops=100 \
"$@"
}
test_block_simple()
{
#run_fio ${ktest_scratch_dev[0]}
mkfs.ext4 ${ktest_scratch_dev[0]}
mount ${ktest_scratch_dev[0]} /mnt
run_fio /mnt/foo --size=1G
umount /mnt
}
main "$@"
|