Because of NVMe-oF issues, I recently switched from zvol to file name spacing to test/bypass the read only issue I was having with NVMe-oF/TCP mounts. I’ve always defaulted to zvols and never really though much about it, but the switch to file is showing a very noticeable difference in performance over zvol for reads/writes/response. Both zvol and file naming space wrote to main and special vdev storage. I didn’t do any screen caps during the conversion but the difference was roughly 200+ MB/s writes for a 2 TB mixed file/folder data set. Just thought I’d bring it up since there wasn’t anything I could find on the forums related to zvol versus file Naming spaces.
So for this purpose, raw files are faster than zvols?
I do use raw files for my VMs. Regurgitators say that I should use zvols because they are “better”.
There is a writeup somewhere where they contest zvols having “better speed” than raw files, and I agree!
No one has been able to explain WHY it “should” be better!
Perhaps some dark ZFS internals? But those would be fully known, right?
Bottom line, at the end of the day, EVERYTHING is a file!
I did some testing sometime ago with iSCSI and NVMe-oF/TCP. The performance was identical for my setup for zvol on the same pool using either protocol. Pool local performance averaged 3.8 GB/s for 5GB file writes.
TrueNAS 26.04.0-MASTER-20260202-020144
From this version, you can see zvol has a write performance of 700 MB/s writes and 1.1 GB/s reads.
I’m currently on Nightly 28.0.0-MASTER+20261019-175231 where zvols mounts currently has write issues. Last version of Nightly I installed that could write to zvols, 26.0.0-MASTER-20260901-020200.
26.0.0-MASTER-20260901-020200 zvol NVMe-oF benchmarks.
28.0.0-MASTER+20261019-175231 file NVMe-oF benchmarks.
28.0.0-MASTER-20261011-230237 file NVMe-oF syncronization of 2.2 TB between 2 pools, 16 thread operations.
Not sure why there is a substantial drop in write performance between TrueNAS 26.04.0-MASTER-20260202-020144 to the more current versions. ARC write maybe? Right now there is a very noticeable difference between zvol and file performance for NVMe-oF/TCP in my testing.
Just cavate, this is based on Nightly releases and not stable or official releases. If you have benchmarks you would like to share with the community, feel free and post it.
The forums aren’t able to support issues with Nightlies. You should open a Jira ticket and attach your graphs.
Existing Jira ticket for NVMe-oF/TCP write issues - Jira




