July 13, 20232 yr Support thread for Fio-Tester container - mayadata/fio docker image. Flexible I/O Tester https://hub.docker.com/r/mayadata/fio https://github.com/axboe/fio Fio was originally written to save me the hassle of writing special test case programs when I wanted to test a specific workload, either for performance reasons or to find/reproduce a bug. The process of writing such a test app can be tiresome, especially if you have to do it often. Hence I needed a tool that would be able to simulate a given I/O workload without resorting to writing a tailored test case again and again. A test work load is difficult to define, though. There can be any number of processes or threads involved, and they can each be using their own way of generating I/O. You could have someone dirtying large amounts of memory in a memory mapped file, or maybe several threads issuing reads using asynchronous I/O. fio needed to be flexible enough to simulate both of these cases, and many more. Fio spawns a number of threads or processes doing a particular type of I/O action as specified by the user. fio takes a number of global parameters, each inherited by the thread unless otherwise parameters given to them overriding that setting is given. The typical use of fio is to write a job file matching the I/O load one wants to simulate. Container running as Server, so go to console for enter commands : Test file random read/writes fio --directory=/mnt/cache_ssd --size=1GB --direct=1 --rw=randrw --bs=4k --ioengine=libaio --iodepth=4 --runtime=30s --numjobs=1 --time_based --group_reporting --name=iops-test-job --eta-newline=1 Test file sequential reads fio --directory=/mnt/cache_ssd --size=1GB --direct=1 --rw=read --bs=4k --ioengine=libaio --iodepth=4 --runtime=30s --numjobs=1 --time_based --group_reporting --name=iops-test-job --eta-newline=1 Test file sequential write fio --directory=/mnt/cache_ssd --size=1GB --direct=1 --rw=write --bs=4k --ioengine=libaio --iodepth=4 --runtime=30s --numjobs=1 --time_based --group_reporting --name=iops-test-job --eta-newline=1 More examples at : https://docs.oracle.com/en-us/iaas/Content/Block/References/samplefiocommandslinux.htm# or at author repo : https://github.com/axboe/fio/tree/master/examples examples can be dowloaded to "/mnt/user/appdata/Fio/examples" , then edit with your needs and copy to "/mnt/user/appdata/Fio" and Run the job using the following command: fio /fio/randomread.fio Edited July 13, 20232 yr by Masterwishx
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.