blob: 355fc2112190653483b1864d8d158f41e9e2735f (
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
|
#!/bin/bash
require-lib ./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 /dev/sdb
mkfs.ext4 /dev/sdb
mount /dev/sdb /mnt
run_fio /mnt/foo --size=1G
umount /mnt
}
|