Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative console test with only FIO (Linux/Windows) #119

Open
Deoptim opened this issue May 17, 2023 · 2 comments
Open

Alternative console test with only FIO (Linux/Windows) #119

Deoptim opened this issue May 17, 2023 · 2 comments

Comments

@Deoptim
Copy link

Deoptim commented May 17, 2023

File config.fio

[global]
ioengine=windowsaio
#ioengine=libaio
filesize=1g
#directory=G\:\
filename=.fio-diskmark
direct=1	#use O_DIRECT IO (negates buffered)
time_based	#keep running until runtime/timeout is met
runtime=30	#stop workload when this amount of time has passed
loops=1		#number of times to run the job
#refill_buffers	#always writes new random data in the buffer
#randrepeat=0	#do not use repeatable random IO pattern
thread		#use threads instead of processes
stonewall	#insert a hard barrier between this job and previous

[Seq-Read-Q32T1]
startdelay=0
iodepth=32
numjobs=1
bs=1m
rw=read

[Seq-Write-Q32T1]
startdelay=35 #add 5s delay to the job time (based on runtime=30)
iodepth=32
numjobs=1
bs=1m
rw=write

[Rand-Read-4K-Q8T8]
startdelay=70
iodepth=8
numjobs=8
openfiles=8
bs=4k
rw=randread

[Rand-Write-4K-Q8T8]
startdelay=105
iodepth=8
numjobs=8
openfiles=8
bs=4k
rw=randwrite

[Rand-Read-4K-Q32T1]
startdelay=140
iodepth=32
numjobs=1
bs=4k
rw=randread

[Rand-Write-4K-Q32T1]
startdelay=175
iodepth=32
numjobs=1
bs=4k
rw=randwrite

[Rand-Read-4K-Q1T1]
startdelay=210
iodepth=1
numjobs=1
bs=4k
rw=randread

[Rand-Write-4K-Q1T1]
startdelay=245
iodepth=1
numjobs=1
bs=4k
rw=randwrite

Usage on Windows:
Write(or uncomment) "ioengine=windowsaio" option in file config.fio
Execute:
fio --directory=D\:\ --output=log.txt config.fio
(whre disk format must be with additional slash "D:" )

Usage on Linux:
Write(or uncomment) "ioengine=libaio" option in file config.fio
Execute:
fio --directory=/mnt/D/ --output=log.txt config.fio

Output of test will be in log.txt file.

@igorpupkinable
Copy link

@Deoptim you may be interested this gist which pulls out results from the log and presents it in a user friendly format similar to CrystalDiskMark or KDiskMark.

Gist: https://gist.github.com/i3v/99f8ef6c757a5b8e9046b8a47f3a9d5b
Original answer: https://unix.stackexchange.com/questions/93791/benchmark-ssd-on-linux-how-to-measure-the-same-things-as-crystaldiskmark-does-i/480191#480191

@igorpupkinable
Copy link

You need to add group_reporting option so Q8T8 jobs have a single entry in the report instead of 8 entries for each run.

https://github.com/axboe/fio/blob/master/HOWTO.rst#measurements-and-reporting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants