[HC2] Slow smb performances on 4.9.61

Moderators: odroid, mdrjr

[HC2] Slow smb performances on 4.9.61

Unread postby FabioSilvero » Sun May 13, 2018 10:25 pm

Hello all,

I'm facing very slow SMB transfers between my Odroid HC2 and my Windows 10 wired client.

The network is 1gbps.

Here's the iPerf result :

[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.00 sec 111 MBytes 928 Mbits/sec 0 210 KBytes
[ 4] 1.00-2.00 sec 113 MBytes 949 Mbits/sec 0 210 KBytes
[ 4] 2.00-3.00 sec 113 MBytes 949 Mbits/sec 0 210 KBytes
[ 4] 3.00-4.00 sec 113 MBytes 949 Mbits/sec 0 210 KBytes
[ 4] 4.00-5.00 sec 113 MBytes 949 Mbits/sec 0 210 KBytes
[ 4] 5.00-6.00 sec 113 MBytes 949 Mbits/sec 0 210 KBytes
[ 4] 6.00-7.00 sec 113 MBytes 949 Mbits/sec 0 210 KBytes
[ 4] 7.00-8.00 sec 111 MBytes 930 Mbits/sec 0 210 KBytes
[ 4] 8.00-9.00 sec 113 MBytes 946 Mbits/sec 0 307 KBytes
[ 4] 9.00-10.00 sec 113 MBytes 949 Mbits/sec 0 307 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 1.10 GBytes 945 Mbits/sec 0 sender
[ 4] 0.00-10.00 sec 1.10 GBytes 944 Mbits/sec receive

So the network between the client and the server is at 1Gbps.

The SMB transfer from my client to my server is oscillating between 0 and 40Mbps, but keeps oscillating all the time.

In the read way (odroid -> client W10), it seems nice, around 100MB/s with some slow downs at 70MB/s.

It doesn't seem to be a CPU-bottlenecked issue since the smbd process during the transfer is at 25% CPU whereas my load average is at 1.5 (all services that could make the CPU struggling were off : Emby, Plex, Apache2, and other java applications). When I copy a file from odroid to my client, the process goes to 100%CPU and the speed transfer looks fine (60-100MBps)

I tried changing the core to the ethernet interrupt but it wasn't in /proc/irq/105, I tried to identify it with 'cat /proc/interrupts', it seems to be 147 (in the same line there is GIC-0 105 Edge xhci-hcd:usb5), but the echo 5 >/proc/irq/147/smp_affinity didn't seem to work (the cat /proc/irq/147/smp_affinity aterwards kept showing 'f0' ).

I changed the mtu to 6975 but the issue is still there.

Any ideas ?

Thanks in advance !

Edit : I thought it was my microSD card that was bottlenecking the transfer (cache) but...

dd if=/dev/zero of=/tmp/output conv=fdatasync bs=384k count=1k; rm -f /tmp/output
1024+0 records in
1024+0 records out
402653184 bytes (403 MB, 384 MiB) copied, 0.74672 s, 539 MB/s

The SD seems fine

This is the result of the same test on the HDD (WD Red 4To, formatted in BTRFS) :

dd if=/dev/zero of=/srv/dev-disk-by-id-ata-WDC_WD40EFRX-68N32N0_WD-WCC7K0NU0YL8/test conv=fdatasync bs=384k count=1k; rm -f /srv/dev-disk-by-id-ata-WDC_WD40EFRX-68N32N0_WD-WCC7K0NU0YL8/test
1024+0 records in
1024+0 records out
402653184 bytes (403 MB, 384 MiB) copied, 12.6506 s, 31.8 MB/s

The other way around :
dd of=/dev/zero if=/srv/dev-disk-by-id-ata-WDC_WD40EFRX-68N32N0_WD-WCC7K0NU0YL8/test conv=fdatasync bs=384k count=1k
1024+0 records in
1024+0 records out
402653184 bytes (403 MB, 384 MiB) copied, 0.619266 s, 650 MB/s

At this point I can conclude that SMB isn't the issue. It can be the SATA Controller on the board or the disk itself.
Last edited by FabioSilvero on Sun May 13, 2018 11:13 pm, edited 2 times in total.
FabioSilvero
 
Posts: 2
Joined: Sun May 13, 2018 10:19 pm
languages_spoken: French, English
ODROIDs: Odroid-HC2

Re: [HC2] Slow smb performances on 4.9.61

Unread postby rooted » Sun May 13, 2018 10:53 pm

Read this article, it has some other things you can try.

https://magazine.odroid.com/article/set ... rpose-nas/
User avatar
rooted
 
Posts: 4719
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: [HC2] Slow smb performances on 4.9.61

Unread postby FabioSilvero » Sun May 13, 2018 10:58 pm

Thanks, useful link !

I edited my post, it seems to be a write on disk issue rather than a SMB issue... I'll test my HDD on another computer to find out if the disk is slow (brand new, so it would be odd...) or a SATA Controller issue.

Thanks anyway for your quick answer ;)
FabioSilvero
 
Posts: 2
Joined: Sun May 13, 2018 10:19 pm
languages_spoken: French, English
ODROIDs: Odroid-HC2

Re: [HC2] Slow smb performances on 4.9.61

Unread postby odroid » Mon May 14, 2018 5:57 am

Try EXT4 file system. You must have over 100MB/sec with dd read/write tests.

Code: Select all
Write command
  dd if=/dev/zero of=test oflag=direct bs=8M count=64

Read command
  dd if=test of=/dev/null iflag=direct bs=8M
User avatar
odroid
Site Admin
 
Posts: 27740
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID


Return to Issues

Who is online

Users browsing this forum: No registered users and 0 guests