I am trying to benchmark a ZFS RAID-10 array of SATA SSDs using fio
with settings that are somewhat representative of database workloads like for PostgreSQL.
For example, for random reads:
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=randread.fio --bs=4k --iodepth=4 --numjobs=16 --size=10G --readwrite=randread
However, I am unsure of the values that iodepth
and numjobs
should be set to, and what they can represent in terms of a database workload.
Can numjobs
be interpreted as the number of concurrent database connections from clients? And can iodepth
be interpreted as the number of concurrent/pending/queued database queries in each database connection?
What range of values of iodepth
and numjobs
do you recommend?