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