Sawtaytoes
Patron
- Joined
- Jul 9, 2022
- Messages
- 221
I just built this NAS last week and have run into some HUGE performance issues with both reads and writes over VPN: 1/10th of my Internet connection speed.
TrueNAS Core to TrueNAS Core over OpenVPN:
TrueNAS Core to Windows 11 over WireGuard:
TrueNAS Core to Windows 11 over 2.5Gb LAN:
Notice those fast-slow dips when using WireGuard? I see those over Samba as well when Windows shows the transfer graph.
I'm able to get the full connection speed using the VPN itself, but as soon as I write or read a file from either the HDD + Optane cache zpool or the all-SSD zpool, it maxes out around 12MB/s using Samba and FTPS. It sometimes goes higher. I've gotten it to show 60MB/s for a bit, but then it drops down to 12MB/s. When a friend copied files to my NAS from the other side of the world, he got 0.25-3.00MB/s over Samba using either VPN solution when his connection is 900/900Mb/s.
I wanna know what I can look at to fix VPN performance since long-distance Samba is one of the reasons I built this NAS.
I don't like the idea of using Docker over Jails, but I've been thinking of switching to TrueNAS Scale. I'm more comfortable with Debian than FreeBSD, and Linux might offer improve VPN performance and more potential solutions.
- I tried both the OpenVPN (build-in Service) and WireGuard (setup by following the docs page).
- I wanna rule out my Internet connection because it's 1/1Gb Google Fiber.
- I also want to rule out my NAS's hardware. I tried local Samba from my 2.5Gb PC and get over 200MB/s on both zpools I tried (HDD + Optane cache and all an SSD pool). `robocopy` maxed out my 2.5Gb Ethernet connection (~310MB/s) seen by looking at Task Manager. I have no 10Gb machines to test with, so I don't yet know the write and read limits.
- TrueNAS Core 13.0 (latest as of posting)
- ASRock Rack ROMED8-2T/BCM
- Eypc 7323p
- 128GB ECC RAM
- 3 x LSI 9305 24i
- 1 x ASUS Hyper M.2 PCI 4.0
- 8 x 2TB SSDs (separate zpool literally created to test VPN speeds)
- 2 x 160GB SSDs (boot)
- 2 x 60GB SSDs (system dataset, but there's nothing on these drives).
- 8 x Intel Optane 905p (cache, log, metadata)
- 37 x HGST HDDs (includes iocage/ right now, but I wanna move it to the system drive SSDs)
- HDDs setup in 2 pools of 10 mirrors each. The second pool doesn't have 10 drives as I'm waiting for replacements nor does it have anything but data drives.
- Connected via 1 of the onboard 10Gb NICs to an 8-port UniFi Aggregation Switch with a MikroTik SFP+ adapter running at 10Gb.
TrueNAS Core to TrueNAS Core over OpenVPN:

TrueNAS Core to Windows 11 over WireGuard:

TrueNAS Core to Windows 11 over 2.5Gb LAN:

Notice those fast-slow dips when using WireGuard? I see those over Samba as well when Windows shows the transfer graph.
I'm able to get the full connection speed using the VPN itself, but as soon as I write or read a file from either the HDD + Optane cache zpool or the all-SSD zpool, it maxes out around 12MB/s using Samba and FTPS. It sometimes goes higher. I've gotten it to show 60MB/s for a bit, but then it drops down to 12MB/s. When a friend copied files to my NAS from the other side of the world, he got 0.25-3.00MB/s over Samba using either VPN solution when his connection is 900/900Mb/s.
I wanna know what I can look at to fix VPN performance since long-distance Samba is one of the reasons I built this NAS.
I don't like the idea of using Docker over Jails, but I've been thinking of switching to TrueNAS Scale. I'm more comfortable with Debian than FreeBSD, and Linux might offer improve VPN performance and more potential solutions.
Last edited: