Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

第 12 章 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
        
comments powered by Disqus