Very slow transfer speed Trunas scale 22.12.2 with SMB

saebaryo

Dabbler
Joined
Jun 2, 2023
Messages
45
Hello,

I have been reading some posts about the same issue of slow speed of transfer from SMB mounted drives to local disks, however the info was kind of confusing.
So my question would be: What are the tests I need to show to this forum here to have a precise diagnostic?

Speed using Ethernet or Wifi is almost the same (varies between 8 and 25 MB max).

PS: Using SMB and I have a Gigabit Intel i217 LM (Rev4)

Thanks!
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
Please post your full hardware specs, then output of zpool status in [CODE][/CODE] tags, the output of an iperf test in [CODE][/CODE] tags, tell us about your network and how you set up both the dataset and the SMB share, as well as about the files your are trying to transfer.

This should be a comprehensive list of the initial information needed. If you want more in-depth diagnostic you can run jgreco's solnet array and post its output in [CODE][/CODE] tags, you can find the link in my signature.
 

saebaryo

Dabbler
Joined
Jun 2, 2023
Messages
45
Code:
zpool status

  pool: Pool

 state: DEGRADED

status: One or more devices has been taken offline by the administrator.

        Sufficient replicas exist for the pool to continue functioning in a

        degraded state.

action: Online the device using 'zpool online' or replace the device with

        'zpool replace'.

  scan: resilvered 9.24M in 00:00:03 with 0 errors on Mon May  1 12:52:38 2023

config:

        NAME                                      STATE     READ WRITE CKSUM

        Pool                                      DEGRADED     0     0     0

          raidz1-0                                DEGRADED     0     0     0

            a31c2c53-42c0-11eb-9460-002215da0799  ONLINE       0     0     0

            a4105399-42c0-11eb-9460-002215da0799  ONLINE       0     0     0

            f8239f33-6cf1-4ca0-a10b-7b87b9c3e2bd  OFFLINE      0     0     0

errors: No known data errors


  pool: Pool-2tb

 state: ONLINE

  scan: resilvered 1.27G in 00:01:17 with 0 errors on Tue May  2 17:55:22 2023

config:

        NAME                                      STATE     READ WRITE CKSUM

        Pool-2tb                                  ONLINE       0     0     0

          mirror-0                                ONLINE       0      0      0

            c46962e4-5ceb-11eb-8372-002215da0799  ONLINE       0     0     0

            4a4f6c57-a400-42c4-801b-ccc27db5505b  ONLINE       0     0     0

errors: No known data errors


  pool: freenas-boot

 state: ONLINE

status: Some supported and requested features are not enabled on the pool.

        The pool can still be used, but some features are unavailable.

action: Enable all features using 'zpool upgrade'. Once this is done,

        the pool may no longer be accessible by software that does not support

        the features. See zpool-features(7) for details.

  scan: scrub repaired 0B in 00:01:53 with 0 errors on Sun Apr  9 03:46:54 2023

config:

        NAME          STATE     READ WRITE CKSUM

        freenas-boot  ONLINE       0     0     0

          sdb2        ONLINE       0     0     0

errors: No known data errors



 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
The first obvious problem is that you have a degraded pool... that's not going to be conducive to fast IO.

If that's the pool you're sharing from, I would stop there until you fix that and then continue the discussion if the problem persists afterwards.
 

saebaryo

Dabbler
Joined
Jun 2, 2023
Messages
45
As for iperf I don't seem to have it and when I try to install it using sudo apt-get install iperf, the command is not found.
Regarding my network, I am using a router with Fresh tomato FW, from which I am connecting a Gigabit switch and from the switch I connect a Cat6 cable to the Trunas.
I have 2 pools, One used to have 3 disks and another 1 disk, then recently I removed one disk from the main pool and added it to the secondary pool to have a mirror for that pool.
When I did that it became logically degraded but even before that the speed was very slow, this did not affect the speed.

As for Data sets:

Pool1:
Type:FILESYSTEM
Sync:STANDARD
Compression Level:LZ4
Enable Atime:ON
ZFS Deduplication:OFF
Case Sensitivity:ON
Path:Poolassignment

Pool2:
Type:FILESYSTEM
Sync:STANDARD
Compression Level:LZ4
Enable Atime:ON
ZFS Deduplication:OFF
Case Sensitivity:ON
Path:Pool-2tb

It shows also that the Dataset in the first pool is "used by the system".
 

saebaryo

Dabbler
Joined
Jun 2, 2023
Messages
45
The first obvious problem is that you have a degraded pool... that's not going to be conducive to fast IO.

If that's the pool you're sharing from, I would stop there until you fix that and then continue the discussion if the problem persists afterwards.
Thx! I replied to your question I guess for the degraded part :)
 

saebaryo

Dabbler
Joined
Jun 2, 2023
Messages
45
Machine specs:

OS Version:TrueNAS-SCALE-22.12.2
Product:HP EliteDesk 800 G1 TWR
Model:Intel(R) Core(TM) i3-4160 CPU @ 3.60GHz
Memory:16 GiB
 

saebaryo

Dabbler
Joined
Jun 2, 2023
Messages
45
Pool1:
1686312830998.png
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
As for iperf I don't seem to have it and when I try to install it using sudo apt-get install iperf, the command is not found.
You shouldn't use apt on the appliance os host.

iperf3 is what you're looking for (and it's already installed).

When I did that it became logically degraded but even before that the speed was very slow, this did not affect the speed.
It will very much be impacting the speed (I guess you may only discover that when you fix whatever other problems you have).

Being over 80% full won't be helping much with write speeds either.
 

saebaryo

Dabbler
Joined
Jun 2, 2023
Messages
45
You shouldn't use apt on the appliance os host.

iperf3 is what you're looking for (and it's already installed).


It will very much be impacting the speed (I guess you may only discover that when you fix whatever other problems you have).

Being over 80% full won't be helping much with write speeds either.
The speed has always been slow before removing the disk an after
 

saebaryo

Dabbler
Joined
Jun 2, 2023
Messages
45
Regarding iperf3 I used the command I was not familiar with it tbh. Shall I start the server on Trunas with iperf3 -s and then use iperf3 -c myserveip from my client machine?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Shall I start the server on Trunas with iperf3 -s and then use iperf3 -c myserveip from my client machine?
Exactly. You can also use -bidir on the client end to get a test in both directions at the same time.
 

saebaryo

Dabbler
Joined
Jun 2, 2023
Messages
45
Exactly. You can also use -bidir on the client end to get a test in both directions at the same time.
Do I need to open ports to have it work? On the server it is listening on 5201 and client showing 5001.

Client:

Code:
iperf -c 192.168.1.29
tcp connect failed: Connection refused
------------------------------------------------------------
Client connecting to 192.168.1.29, TCP port 5001
TCP window size: -1.00 Byte (default)
------------------------------------------------------------
[  1] local 0.0.0.0 port 0 connected with 192.168.1.29 port 5001
 

saebaryo

Dabbler
Joined
Jun 2, 2023
Messages
45
Code:
Client connecting to 192.168.1.29, TCP port 5201
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[  1] local 192.168.1.155 port 35998 connected with 192.168.1.29 port 5201
tcp write failed: Connection reset by peer
shutdown failed: Transport endpoint is not connected
[ ID] Interval       Transfer     Bandwidth
[  1] 0.0000-4.4249 sec  36.0 MBytes  68.2 Mbits/sec
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
68.2 Mbits/sec
That's not even 100Mbits... that will need to be investigated if you're going to hope for faster transfers.
 
Top