I’m new to TrueNAS and have been reading about and experimenting with different pool configurations. I plan to have two pools - one for fast IOPS and one for media storage. The fast IOPS pool will store apps, vms, databases, and SMB shares. It will be a single vdev with 2 mirrored drives to start. I know that this should initially result in (close to) single-drive performance until I add more vdev mirrors at a later date. But (as far as I can tell) I’m not seeing performance even close to a single drive.
CPU: Xeon E-2334
OS: NVMe
RAM: 64GB
Pool: (2) 6TB Exos 7E10 drives (ST6000NM019B) in mirror vdev
Max sustained transfer rate for these drives is 250MB/s
The write speed with fio (shown below) is 66.1MB/s
Hard drives are new and are empty while I work on performance tweaks. Ashift is automatically set at 12. The sector size is 512 logical, but the physical size is 4096, so I’m not sure this should be 9 or 12 for these drives?
zpool get ashift TestFastIO
NAME PROPERTY VALUE SOURCE
TestFastIO ashift 12 local
fdisk -l /dev/sdg
Sector size (logical/physical): 512 bytes / 4096 bytes
DataSet settings:
Sync: Standard
Compression: LZ4 (performance is worse with no compression)
ATime: Off
RecordSize: 128KB (performance is worse with 1M recordsize?)
Dedupe: Off
Checksum: On
I used the following fio options, run from ssh on the TrueNAS box:
fio --name=random-write --ioengine=posixaio --rw=randwrite --bs=4k --size=4g --numjobs=1 --iodepth=1 --runtime=60 --time_based --end_fsync=1
Run status group 0 (all jobs):
WRITE: bw=63.1MiB/s (66.1MB/s), 63.1MiB/s-63.1MiB/s (66.1MB/s-66.1MB/s), io=3965MiB (4158MB), run=62860-62860msec
The fio options are admittedely a “torture test” configuration, as described on ArsTechnica. But this performance still seems slow, unless I’m misinterpreting the results? (How fast are your disks? Find out the open source way, with fio | Ars Technica)
I’ve tried changing the recordsize to 1M, and (in a separate test) disabling compression. Both tests resulted in worse numbers, which was a bit of a surprise.
Am I misinterpreting the results?
Or maybe not running the best fio test for tweaking IOPS?
Is it ok to run fio from the TrueNAS console?
Otherwise is there anything I should change to improve performance?
Thanks!