Hi There ![]()
Firstly I hope this post is in the right forum.
I’m looking for some advice on an ongoing storage issue between TrueNAS SCALE and a small Proxmox cluster.
The storage is a ZFS pool on TrueNAS, presented to Proxmox over 10GbE. The TrueNAS host originally had 16 GB RAM (I’m increasing this to 32 GB). There are currently around 8–9 Proxmox VM disks on the storage.
Original setup — NVMe/TCP
I originally used NVMe/TCP between Proxmox and TrueNAS.
Performance was excellent — sequential testing could get close to saturating the 10GbE link (~1 GB/s+) — but under certain workloads it became unstable.
On the TrueNAS side I was seeing errors along the lines of:
nvmet_tcp: failed to map data
and occasionally NVMe/TCP keep-alive/controller failures. During a Debian installation I also saw I/O WRITE errors inside the VM.
Interestingly, straightforward sustained tests could run successfully — for example a 16 GiB direct write at around 1.2 GB/s — so it didn’t look like a basic network throughput or disk performance problem. The failures seemed much more associated with particular/bursty workloads.
After spending quite a bit of time investigating that, I decided to remove NVMe/TCP from the equation and move the Proxmox storage to iSCSI.
Current setup — iSCSI / SCST
The same ZFS storage is now being exported from TrueNAS using its SCST-based iSCSI target.
Initially this looked much better and the VM storage has generally been working correctly.
However, during a Proxmox backup run at 02:00 I suddenly got large numbers of these messages on TrueNAS:
scst: Allocation of sgv_pool_obj failed (size 8388608)
scst: Unable to allocate or build requested buffer (size 8388608),
sending BUSY or QUEUE FULL status
The Proxmox backup job was backing up several VMs from the TrueNAS iSCSI storage to another storage target. I’ve subsequently limited that backup job to approximately 500 MiB/s.
Initially I thought the backup simply overwhelmed the target, but I then saw another burst of exactly the same SCST errors at around 05:07, outside the scheduled backup window. That makes me think the backup exposed the problem rather than necessarily being its sole cause.
Some potentially relevant SCST settings are:
scst_max_cmd_mem: 3935
scst_max_dev_cmd_mem: 1574
scst_threads: 16
There are 9 SCST devices configured.
The individual VM devices are currently showing:
threads_num: 32
max_tgt_dev_commands: 64
threads_pool_type: per_initiator
opt_trans_len: 33554432
The failed allocations themselves are consistently:
8388608 bytes
i.e. 8 MiB.
The SGV statistics show substantial activity across the per-CPU sgv-* pools, while the sgv-dma-* and cluster pools are essentially unused. For example:
sgv-3 Hit 95059 Total 95991
sgv-4 Hit 66318 Total 67390
sgv-6 Hit 58129 Total 59117
There are also significant numbers in big/other.
At the time I checked, this didn’t look like a userspace SCST service cgroup memory limit:
memory.max = max
memory.high = max
oom = 0
oom_kill = 0
and both iSCSI initiator sessions were still established.
What I’m trying to understand
What concerns me is that I’ve now seen two different target protocols exhibit problems when handling larger/heavier I/O workloads on the same TrueNAS machine:
NVMe/TCP: failed to map data / controller instability / VM I/O errors
iSCSI/SCST: failure to allocate 8 MiB SGV buffers, resulting in BUSY / QUEUE FULL
So I’m wondering whether these are actually two manifestations of the same underlying resource/memory-pressure issue rather than unrelated NVMe/TCP and SCST bugs.
The machine has 16 GB RAM. I’m going to increase this to 32 GB anyway. There are no VM or container workloads here - just storage and I did think 16 maybe ok here but appreciate ZFS likes its RAM
A few things I’d particularly appreciate opinions on:
-
Is 16 GB simply too little for this type of workload, particularly with several active VM LUNs and 10GbE?
-
Are the current
scst_max_cmd_mem/scst_max_dev_cmd_memvalues likely to explain the SGV allocation failures? -
Would increasing those limits after installing 32 GB RAM be appropriate, and if so, what values would people recommend?
-
Is
max_tgt_dev_commands=64sensible for this workload? -
Could the earlier NVMe/TCP
failed to map dataerrors plausibly have been caused by similar kernel memory/allocation pressure? -
Is there anything else I should capture when the SCST allocation failure occurs that would help establish exactly which resource is exhausted?
-
The storage network currently uses standard MTU 1500. I am considering moving the dedicated 10GbE storage path to MTU 9000. I don’t expect that to solve an 8 MiB SGV allocation problem directly, but would it materially reduce CPU/kernel/network overhead in this situation?
The underlying ZFS/storage performance appears healthy and the 10GbE network can sustain very high throughput when tested directly. The failures seem to occur when there is concurrent or bursty VM block I/O, rather than simply at a particular MB/s throughput.
I’m mainly trying to establish whether I should be looking at SCST queue/memory tuning, general kernel memory pressure, insufficient system RAM, or something deeper in the TrueNAS block-storage implementation.
Happy to provide additional SCST stats, /proc/meminfo, slab information, kernel logs, iSCSI session information, Proxmox configuration, etc. if useful.
Thanks ![]()