a guest Aug 22nd, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  3. RED='\033[1;31m'
  4. NC='\033[0m'
  6. # test random read
  7. echo "\n$RED --- start random read --- $NC\n"
  8. fio --name=randread --ioengine=libaio --iodepth=8 --rw=randread --bs=4k --direct=0 --size=256M --numjobs=4 --group_reporting
  9. # test random write
  10. echo "\n$RED --- start random write --- $NC\n"
  11. fio --name=randwrite --ioengine=libaio --iodepth=8 --rw=randwrite --bs=4k --direct=0 --size=256M --numjobs=4 --group_reporting
  12. # test sequential read
  13. echo "\n$RED --- start sequential read --- $NC\n"
  14. fio --name=seqread --ioengine=libaio --iodepth=8 --rw=read --bs=4k --direct=0 --size=256M --numjobs=4 --group_reporting
  15. # test sequential write
  16. echo "\n$RED --- start sequential write --- $NC\n"
  17. fio --name=seqwrite --ioengine=libaio --iodepth=8 --rw=write --bs=4k --direct=0 --size=256M --numjobs=4 --group_reporting
  18. # test mixed random read-write
  19. echo "\n$RED --- start mixed random read-write --- $NC\n"
  20. fio --name=mixrandrw --ioengine=libaio --iodepth=8 --rw=randrw --bs=4k --direct=0 --size=512M --numjobs=4 --group_reporting
  21. #test mixed sequential read-write
  22. echo "\n$RED --- start mixed sequential read-write --- $NC\n"
  23. fio --name=mixseqrw --ioengine=libaio --iodepth=8 --rw=readwrite --bs=4k --direct=0 --size=512M --numjobs=4 --group_reporting
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand