Home | 简体中文 | 繁体中文 | 杂文 | 打赏(Donations) | Github | OSChina 博客 | 云社区 | 云栖社区 | Facebook | Linkedin | 知乎专栏 | 视频教程 | About

第 14 章 fio

$ sudo apt-get install fio
        
$ cat test.fio
[random-rw]
rw=randrw
size=256m
directory=/tmp/fio/data

[write]
rw=write
size=2048m
directory=/tmp/fio/data

[read]
rw=read
size=2048m
directory=/tmp/fio/data
        
$ fio test.fio
        

threads

$ cat four-threads-randio.fio
; Four threads, two query, two writers.

[global]
rw=randread
size=256m
directory=/tmp/fio-testing/data
ioengine=libaio
iodepth=4
invalidate=1
direct=1

[bgwriter]
rw=randwrite
iodepth=32

[queryA]
iodepth=1
ioengine=mmap
direct=0
thinktime=3

[queryB]
iodepth=1
ioengine=mmap
direct=0
thinktime=5

[bgupdater]
rw=randrw
iodepth=16
thinktime=40
size=32m