diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-10-21 18:54:27 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2019-10-21 18:54:27 -0400 |
commit | 866b5de2307765827ef6df390628884ddf3bb1ec (patch) | |
tree | ee1d8a6b6e3c0d1290b65bd90ddf1c2f296a70cb /tests/blkdev.ktest | |
parent | aaa5b10879fd2af88b832f91a333ba952f65a86b (diff) |
assorted 2019 updates
Diffstat (limited to 'tests/blkdev.ktest')
-rwxr-xr-x | tests/blkdev.ktest | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/tests/blkdev.ktest b/tests/blkdev.ktest index 5d3b0d9..355fc21 100755 --- a/tests/blkdev.ktest +++ b/tests/blkdev.ktest @@ -2,12 +2,37 @@ require-lib ./test-libs.sh -config-scratch-devs 512M +config-scratch-devs 4G config-timeout $(stress_timeout) -main() +run_fio() { - setup_blkdev - run_stress + 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 } |