[Bglug] ssd testing using fio

Andrew Howlett andrew at howlett.net
Wed Jul 6 11:50:26 EDT 2016


hi everyone,

i've been installing SSD's for many clients and have noticed that some SSD's perform better than others. but it can be hard to tell from the manufacturer's marketing crap exactly what to expect from different drives.

there was a good article in a recent Linux Pro Magazine suggesting the command line utility fio is the best way to test SSD's in linux. The fio HOWTO is here:

https://github.com/axboe/fio/blob/master/HOWTO <https://github.com/axboe/fio/blob/master/HOWTO>

fio requires a "jobfile" which describes the test(s) to run. here's an example jobfile for ssd testing:

# Do some important numbers on SSD drives, to gauge what kind of
# performance you might get out of them.
#
# Sequential read and write speeds are tested, these are expected to be
# high. Random reads should also be fast, random writes are where crap
# drives are usually separated from the good drives.
#
# This uses a queue depth of 4. New SATA SSD's will support up to 32
# in flight commands, so it may also be interesting to increase the queue
# depth and compare. Note that most real-life usage will not see that
# large of a queue depth, so 4 is more representative of normal use.
#
[global]
bs=4k
ioengine=libaio
iodepth=4
size=10g
direct=1
runtime=60
directory=/mount-point-of-ssd
filename=ssd.test.file

[seq-read]
rw=read
stonewall

[rand-read]
rw=randread
stonewall

[seq-write]
rw=write
stonewall

[rand-write]
rw=randwrite
stonewall


i'm going to test and compare several drives this weekend. will post results on sunday night ...

andrew h.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://bglug.ca/pipermail/group_bglug.ca/attachments/20160706/29e415a7/attachment-0002.html>


More information about the Group mailing list