Editing Fio
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
− | = fio | + | = fio Examples = |
− | |||
− | |||
− | |||
− | |||
− | |||
== [[fio Random read]] == | == [[fio Random read]] == | ||
+ | |||
+ | <pre> | ||
+ | cat random-read-test.fio | ||
+ | ; <code>fio</code> random read of 1G of data | ||
+ | |||
+ | [random-read] | ||
+ | rw=randread | ||
+ | size=1G | ||
+ | directory=/tmp/fio-testing/data | ||
+ | </pre> | ||
+ | <code>mdir /tmp/fio-testing && fio random-read-test.fio</code> <ref>https://www.linux.com/tutorials/inspecting-disk-io-performance-fio/</ref> | ||
+ | |||
<code>fio --randrepeat=1 --size=5G --ioengine=libaio --direct=1 --gtod_reduce=1 --bs=4k --iodepth=64 --readwrite='''randread''' --name=MY_TEST --filename=TEST_TO_DELETE && rm TEST_TO_DELETE</code> | <code>fio --randrepeat=1 --size=5G --ioengine=libaio --direct=1 --gtod_reduce=1 --bs=4k --iodepth=64 --readwrite='''randread''' --name=MY_TEST --filename=TEST_TO_DELETE && rm TEST_TO_DELETE</code> | ||
Line 90: | Line 97: | ||
# [[Benchmark disk performance using fio]] | # [[Benchmark disk performance using fio]] | ||
# Use <code>direct=0</code> or <code>direct=1</code> option and compare results. Review memory usage using <code>[[free (command)|free]]</code> command | # Use <code>direct=0</code> or <code>direct=1</code> option and compare results. Review memory usage using <code>[[free (command)|free]]</code> command | ||
− | |||
== See also == | == See also == |
Advertising: