iSCSI drive performance inconsistent

Hello I’ve recently built my home lab and created the SMB share and a iSCSI drive. Currently I am running into an issue where if the iSCSI drive is idle for too long or when I put my PC to sleep and wake it back up again the performance degrades. When I transfer files sometimes the speeds would drop to zero and it would take a few minutes for it to start transferring again, when I play games textures and assets takes a long time to load. I have to restart my computer so that I get my regular performance back.

  • Currently I run proxmox bare metal and virtualizing truenas scale
  • Motherboard Asrock B760m pro rs d4
  • I have an Intel i5 12400 and I have assigned 6 cores to the system
  • 20 GB of RAM allocated to truenas scale
  • Passed the motherboard sata controller
  • 4x2Tb Crucial MX500 in RAIDZ1
  • Using the onboard motherboard NIC for ethernet connection

Realtek NIC.
Barely one third of the recommended minimal RAM amount for iSCSI. 64 GB min, 128 GB better.
Inefficient raidz1 for block storage (= small transactions).
And MX500 SSDs which are certainly not the fastest around and are known to have some firmware issues.

I would be hard to know where to begin.

Upgrading my ram is on the to do, in the beginning I thought it was on the hosts end because restarting it fixed it and brought the performance back, but restarting the VM still has the same result. What do you mean by inefficient raidz1 block storage? Not enough drives or the size is too small and what ssd do you recommend, I wanted to get samsung but I have to pay the premium price, I chose crucial for the budget and I heard positive reviews about it.

Block storage equals mirrors for best performance. It’s not as space efficient as RAID-Z but required for any decent result.

Unfortunately whilst insufficient memory or RAIDZ1 would explain poor performance all the time, with my limited knowledge I don’t think it would explain the especially slow performance when the PC wakes from sleep - in which case if he had sufficient memory and mirrors they might still get the same issues.

I’d do a test with SMB and see if you get the same issue or not to narrow things down. If not focus on your iSCSI settings on your Windows machine timeouts in particular or power saving mode for your NIC. If SMB produces the same issue focus on your TrueNAS make sure disks are not spinning down etc.