NVME SLOG gives slower write performance

Sep 30, 2019
6
2
8
39
I'm using fio directly on pve to benchmark my ZFS pool (10x Intel sata SSDs raidz2). On 4k randwrite sync=1 I get about 3k iops, when I add my WD SN750 nvme drives mirrored as log I drop to 1.5k iops. On a different server with 4x Intel sata SSDs striped and mirrored, I get ~2k iops, when I add the same nvme drives as log iops started at about 2k then slowly dropped down to <50 iops! I also watched stats using iostat -v 1, those stats are showing the same numbers as fio and that it's using the SLOG for the sync writes.

I should be getting much higher iops from the NVME drive correct? What is limiting this?
 
Hi,

The WD SN750 is a consumer NVMe and has not really high 4k sync capabilities.
I should be getting much higher iops from the NVME drive correct?
NVMe is only the protocol and has compared with SATA lower latency and is better in parallel.
But NVMe does not mean automatic is faster than SATA.

What is limiting this?
The capability to write 4k in sync.
A real good device for this is an Intel Optane Memory.
It is very fast in 4k sync write.
 
Thanks for the response! You are totally right, I formatted one of the sn750's as ext4 and ran the same fio 4k sync benchmark and got 1.2k iops. The benchmarks I had based my thinking on were showing 4k random writes around 35k iops, which I should have known are async(my async benchmark showed 42k iops).

I thought the raidz2 overhead would slow writes down much more than it actually does. I just ran another couple benchmarks simulating a write heavy db and measuring sync times, here are the results:
Drivesaverage sync time (usec)99th percentile sync time(usec)
10x Intel DC sata SSDs raidz28.553
4x Intel DC sata SSDs raid10(zfs)266537
WD SN750 nvme (ext4)110911207
8x 10k SAS raidz2 (7 years old)648520841

The reason I started to investigate this was because of a noticeable slowdown on DB writes, I can now see why. This nvme drive is closer to my old spinning rust than the Intel sata SSDs in a raidz2!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!