SMB is faster than ISCSI. Help!

mbosman

Cadet
Joined
Jun 9, 2023
Messages
4
Hello Everyone!

First post on TrueNAS, so very much a newbie!

I currently have a system that I am building as a general storage server. I am planning on using it to store my Media Library, and use it as a Steam Library.
Currently I am in a "testing" phase where I have connected the TrueNAS server to my Gaming pc using a Mellanox ConnectX-3 CX311A in both. And the link seems to be working correctly because Windows says 10Gbit speeds.

In TrueNAS I set a static IP for just that card (dhcp for the 1 Gigabit NIC to my router) and in Windows I have done the same to make sure they communicate.

In my testing, I have set up a 256GB SPCC M.2 NVME by itself in a VDEV. Then I have create a dataset for the ISCSI and created a ZVOL inside that dataset of about 200GB.
I did the same with the Samba, except I left it at the dataset level.
Dataset layout.png
I was able to mount the ISCSI drive to my Windows and the Samba drive as well.
When I tested a copy of a file that is 7GB to the ISCSI I have worse performance than copying it to the Samba.
Copy to NAS ISCSI.png Copy to NAS Samba.png
Specs of server:
CPU: i3-12100F
MOBO: ASROCK B660M Pro RS
RAM: Corsair LPX 32GB 3200
NIC: Mellanox ConnectX-3 CX311A
Add-on: LSI 9207-8i (IT Mode)
OS installed on a Teamgroup 500GB CX2 (just laying around, and temporary)
Other ssd: 256GB SPCC M.2 NVME


Would anyone know what could cause this? I was expecting the other way around if anything?
Any help would be appriciated!

Thanks
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
When I tested a copy of a file that is 7GB to the ISCSI I have worse performance than copying it to the Samba.

Yes, of course. Why is it surprising that having your NAS do a much more complex task when it is under-resourced would cause it to be slower than when you do a task the way it is intended?


 

mbosman

Cadet
Joined
Jun 9, 2023
Messages
4
Yes, of course. Why is it surprising that having your NAS do a much more complex task when it is under-resourced would cause it to be slower than when you do a task the way it is intended?
I see! That makes a whole lot more sense now. I appreciate the quick reply.

I just wanted to make sure I wasn't missing anything, I already knew the RAM might be an issue, and the articles you mentioned clearly state that it will be.

Future upgrades are in sight already!

Thanks again!
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
It's not just the RAM (ARC). It's really the whole thing of serving iSCSI is inherently less efficient because ZFS has no idea what it is storing or why. This makes it less efficient. You can "fix" this by throwing more resources at the problem, but it can get pricey to do so.
 

mbosman

Cadet
Joined
Jun 9, 2023
Messages
4
Yeah, I was thinking of instead of using RAM, maybe add an Optane m.2 drive and set it up as a CACHE L2ARC to help speed it up a little bit.

Currently I am still getting sufficient enough speeds for Steam Games, which is the only thing I would be using the iSCSI for. Everything else I would use SMB and NFS.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
I have my doubts that would help, but you can drill down into the ARC statistics and see whether the deadlists have meaningful hit rates.

Thing is, any meaningful improvement here will be more expensive and slower than just adding a local NVMe SSD.
 
Top