[HC2] [Armbian] Slow transfer speed via Samba

Post Reply
trohn_javolta
Posts: 56
Joined: Fri Nov 03, 2017 6:16 am
languages_spoken: english, german
ODROIDs: none (plans for XU4)
Contact:

[HC2] [Armbian] Slow transfer speed via Samba

Unread post by trohn_javolta » Wed Nov 28, 2018 12:02 am

Why is samba out of the box so slow on the HC1/HC2?

I'm running latest armbian stretch stable on my HC2 but I read this also from many other os.
Filesystem on attached hdd is ext4.
I simply installed samba and samba-common, made sure it runs on the big cores and also used these settings in smb.conf to make transfer speed faster:

Code: Select all

write cache size = 524288 
getwd cache = yes 
use sendfile = yes 
min receivefile size = 16384
With these settings I "just" get 60 mb/s transfer speed! :roll:
Initially I installed OMV via armbian-config and with this tweaked OMV and its samba I got 100 mb/s!
Ran into issues and removed OMV, I don't need it anyways, for my use it's overkill.

Are there settings I'm missing here? The speed difference is enormous :o
I think with HC1/HC2 gigabit nas speeds shouldn't be a problem.
Is there maybe a custom built samba debian package out there that takes care of some tweaks for a 100 mb/s transfer speed via samba?

User avatar
odroid
Site Admin
Posts: 29408
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by odroid » Wed Nov 28, 2018 9:28 am

There must be no special custom built samba.

Try to see "cat /proc/interrupts" output first.

Code: Select all

#!/bin/bash                                                                                                                                                                              
USB3_IRQ=`cat /proc/interrupts | grep "GICv2 104" | awk -F : '{print $1}'`                                                                                                               
USB5_IRQ=`cat /proc/interrupts | grep "GICv2 105" | awk -F : '{print $1}'`                                                                                                               
echo 5 > /proc/irq/${USB3_IRQ}/smp_affinity_list                                                                                                                                         
echo 6 > /proc/irq/${USB5_IRQ}/smp_affinity_list                                                                                                                                         
                                                                                                                                                                                         
if [ -f /sys/class/net/eth0/queues/rx-0/rps_cpus ]; then                                                                                                                                 
        echo f > /sys/class/net/eth0/queues/rx-0/rps_cpus                                                                                                                                
fi
And check CPU governor and minimum frequency in cpufreq sysfs.

trohn_javolta
Posts: 56
Joined: Fri Nov 03, 2017 6:16 am
languages_spoken: english, german
ODROIDs: none (plans for XU4)
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by trohn_javolta » Thu Nov 29, 2018 2:39 am

Cpu governor set is ondemand.
Output of cpufreq-info: https://pastebin.com/2Jp5741N
Output of /proc/interrupts:https://pastebin.com/CARuEHHf

Should I put the posted lines of code in a script and execute it or what? :?:

trohn_javolta
Posts: 56
Joined: Fri Nov 03, 2017 6:16 am
languages_spoken: english, german
ODROIDs: none (plans for XU4)
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by trohn_javolta » Thu Nov 29, 2018 2:52 am

trohn_javolta wrote:Should I put the posted lines of code in a script and execute it or what? :?:
Did that, but speed is still at like 50 mb/s.

User avatar
rooted
Posts: 6106
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by rooted » Thu Nov 29, 2018 8:11 am

Didn't you ask this question on Armbian's forum?

User avatar
odroid
Site Admin
Posts: 29408
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by odroid » Thu Nov 29, 2018 9:35 am

Try "performance" governor on both big and little cores.

trohn_javolta
Posts: 56
Joined: Fri Nov 03, 2017 6:16 am
languages_spoken: english, german
ODROIDs: none (plans for XU4)
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by trohn_javolta » Thu Nov 29, 2018 5:32 pm

rooted wrote:Didn't you ask this question on Armbian's forum?
I did and got the answer to search myself.
I did search the forum but couldn't find anything new. Just found this script for tweaked settings https://pastebin.com/8AE5sZFz
But all settings from the samba section where already in my smb.conf.

trohn_javolta
Posts: 56
Joined: Fri Nov 03, 2017 6:16 am
languages_spoken: english, german
ODROIDs: none (plans for XU4)
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by trohn_javolta » Thu Nov 29, 2018 5:35 pm

odroid wrote:Try "performance" governor on both big and little cores.
At the moment I can't, I copy stuff from int. hdd to ext. hdd via usb. But I'll try that. Is there a command to set that for all cores?

User avatar
rooted
Posts: 6106
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by rooted » Fri Nov 30, 2018 4:18 am

trohn_javolta wrote:
rooted wrote:Didn't you ask this question on Armbian's forum?
I did and got the answer to search myself.
I did search the forum but couldn't find anything new. Just found this script for tweaked settings https://pastebin.com/8AE5sZFz
But all settings from the samba section where already in my smb.conf.
I was just wondering what they said?

User avatar
odroid
Site Admin
Posts: 29408
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by odroid » Fri Nov 30, 2018 9:47 am

trohn_javolta wrote:
odroid wrote:Try "performance" governor on both big and little cores.
At the moment I can't, I copy stuff from int. hdd to ext. hdd via usb. But I'll try that. Is there a command to set that for all cores?
You have to run below commands with superuser privileges.
For LITTLE cores,

Code: Select all

echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
For big cores,

Code: Select all

echo performance > /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor

trohn_javolta
Posts: 56
Joined: Fri Nov 03, 2017 6:16 am
languages_spoken: english, german
ODROIDs: none (plans for XU4)
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by trohn_javolta » Mon Dec 03, 2018 8:27 pm

odroid wrote:
trohn_javolta wrote:
odroid wrote:Try "performance" governor on both big and little cores.
At the moment I can't, I copy stuff from int. hdd to ext. hdd via usb. But I'll try that. Is there a command to set that for all cores?
You have to run below commands with superuser privileges.
For LITTLE cores,

Code: Select all

echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
For big cores,

Code: Select all

echo performance > /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor
Unfortunately that did not help either. Any other ideas? I don't understand how there can be such a difference in speed...

User avatar
odroid
Site Admin
Posts: 29408
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by odroid » Tue Dec 04, 2018 12:27 pm

You might need to post a question on OMV forum to find a tweak what they made.

User avatar
rooted
Posts: 6106
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by rooted » Tue Dec 04, 2018 1:54 pm

I'm not understanding your issue really.

You installed OMV on Armbian, installed samba through OMV interface, uninstalled OMV and it uninstalled samba also? If not then SMB should still be set-up?

After a bit of reading I don't think OMV is doing anything special to the samba configuration.

If you read this page you will see ryecoaaron says as much.

https://forum.openmediavault.org/index. ... ork-Drive/

trohn_javolta
Posts: 56
Joined: Fri Nov 03, 2017 6:16 am
languages_spoken: english, german
ODROIDs: none (plans for XU4)
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by trohn_javolta » Thu Dec 06, 2018 5:05 pm

rooted wrote:I'm not understanding your issue really.

You installed OMV on Armbian, installed samba through OMV interface, uninstalled OMV and it uninstalled samba also? If not then SMB should still be set-up?

After a bit of reading I don't think OMV is doing anything special to the samba configuration.

If you read this page you will see ryecoaaron says as much.

https://forum.openmediavault.org/index. ... ork-Drive/
Samba was a dependency of OMV and I had to purge OMV install due to a PHP error I couldn't resolve. So yes I also removed Samba. Before I backed up smb.conf. Reinstalled samba and copied back smb.conf.
I also don't understand the sudden speed change..
But yeah.. seems I have to start over again with a fresh armbian OMV install.

User avatar
rooted
Posts: 6106
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by rooted » Thu Dec 06, 2018 5:08 pm

That would be my suggestion, reinstall and copy the configuration.

Please share the differences here if you don't mind.

trohn_javolta
Posts: 56
Joined: Fri Nov 03, 2017 6:16 am
languages_spoken: english, german
ODROIDs: none (plans for XU4)
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by trohn_javolta » Tue Jan 08, 2019 8:54 pm

Hello, digging this up again.... :/
Well, I reinstalled armbian and omv via armbian-config, unfortunatly I still get like 60 mb/s.
Again I'm sure there's nothing wrong in my lan.
It makes no sense to me....
In htop I see during tranfer via smb the big cores are pretty much maxed out. Only difference to the time I got 100 mb/s is that the cpu temp is lower. Used to have up to 85 °C while file transfer, now it's 65.
Any output I could provide again, or any ideas?
Is there a recommended, light weight server image I could try? I went with armbian right away because I only had very good experiences so far.
Unfortunatly over at armbian forum devs don't have an odroid hc1/2 to test transfer speed so they can't really help me..I think one has but he doesn't seem to be active recently..or just missed/didn't care about my post.

User avatar
igorpec
Posts: 272
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by igorpec » Tue Jan 08, 2019 9:02 pm

trohn_javolta wrote:
Tue Jan 08, 2019 8:54 pm
Hello, digging this up again.... :/
Well, I reinstalled armbian and omv via armbian-config, unfortunatly I still get like 60 mb/s.
Again I'm sure there's nothing wrong in my lan.
It makes no sense to me....
In htop I see during tranfer via smb the big cores are pretty much maxed out. Only difference to the time I got 100 mb/s is that the cpu temp is lower. Used to have up to 85 °C while file transfer, now it's 65.
Any output I could provide again, or any ideas?
Is there a recommended, light weight server image I could try? I went with armbian right away because I only had very good experiences so far.
Unfortunatly over at armbian forum devs don't have an odroid hc1/2 to test transfer speed so they can't really help me..I think one has but he doesn't seem to be active recently..or just missed/didn't care about my post.
I did quick install to HC1, 5TB drive, Samba from armbian-config, 100 mb/s without a problem. Those are full logs: http://ix.io/1xNg Its Bionic, perhaps this is a problem ... don't know, but at least you have a reference point.
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

trohn_javolta
Posts: 56
Joined: Fri Nov 03, 2017 6:16 am
languages_spoken: english, german
ODROIDs: none (plans for XU4)
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by trohn_javolta » Tue Jan 08, 2019 9:11 pm

igorpec wrote:
Tue Jan 08, 2019 9:02 pm

I did quick install to HC1, 5TB drive, Samba from armbian-config, 100 mb/s without a problem. Those are full logs: http://ix.io/1xNg Its Bionic, perhaps this is a problem ... don't know, but at least you have a reference point.
Ah ok, thx. And sry to get on your nerves :?
It's just annoying for me since it used to work nicely.

User avatar
igorpec
Posts: 272
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by igorpec » Wed Jan 09, 2019 12:09 am

trohn_javolta wrote:
Tue Jan 08, 2019 9:11 pm
igorpec wrote:
Tue Jan 08, 2019 9:02 pm

I did quick install to HC1, 5TB drive, Samba from armbian-config, 100 mb/s without a problem. Those are full logs: http://ix.io/1xNg Its Bionic, perhaps this is a problem ... don't know, but at least you have a reference point.
Ah ok, thx. And sry to get on your nerves :?
It's just annoying for me since it used to work nicely.
:)

Is there some strange process running? What about this - https://www.hecticgeek.com/2015/01/ext4 ... -idle-fix/ - it takes a while on a large drive.
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

tkaiser
Posts: 671
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by tkaiser » Wed Jan 09, 2019 4:30 am

trohn_javolta wrote:
Tue Jan 08, 2019 8:54 pm
Any output I could provide
Output from armbianmonitor -u if it's about Armbian/OMV. BTW: I already answered your question in one of the three location where you discuss the very same issue: https://forum.openmediavault.org/index. ... post191808

So what's the filesystem you're using? Is it a 2.5" or a 3.5" HDD and have you ever tested storage performance locally so neither Samba nor network is involved at all -- full disks are slower since ZBR: https://forum.armbian.com/topic/1925-so ... ment=15319

User avatar
rooted
Posts: 6106
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by rooted » Wed Jan 09, 2019 4:34 am


tkaiser wrote: So what's the filesystem you're using? Is it a 2.5" or a 3.5" HDD and have you ever tested storage performance locally so neither Samba nor network is involved at all -- full disks are slower since ZBR: https://forum.armbian.com/topic/1925-so ... ment=15319
This, so you can compare apples to apples.

trohn_javolta
Posts: 56
Joined: Fri Nov 03, 2017 6:16 am
languages_spoken: english, german
ODROIDs: none (plans for XU4)
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by trohn_javolta » Wed Jan 09, 2019 5:40 am

tkaiser wrote:
Wed Jan 09, 2019 4:30 am
trohn_javolta wrote:
Tue Jan 08, 2019 8:54 pm
Any output I could provide
Output from armbianmonitor -u if it's about Armbian/OMV. BTW: I already answered your question in one of the three location where you discuss the very same issue: https://forum.openmediavault.org/index. ... post191808

So what's the filesystem you're using? Is it a 2.5" or a 3.5" HDD and have you ever tested storage performance locally so neither Samba nor network is involved at all -- full disks are slower since ZBR: https://forum.armbian.com/topic/1925-so ... ment=15319
Sry my fault, I missed your answer. It's a 3,5" HDD, fs is ext4, 5,5TB of which 2,3TB are used. Didn't know that tranferspeed gets worse on hdd fill up. Does this already explain the poor transfer speed?

Here's uploaded output of armbianmonitor -u: http://ix.io/1xPe

I have not tested storage performance locally, is there a command you could share to do so?

@igor That was a good idea and now I also know there is iotop, but I could only see small disk reads/writes occasionally pop up, also in the IO> column no high percentage :(

tkaiser
Posts: 671
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by tkaiser » Wed Jan 09, 2019 6:08 am

trohn_javolta wrote:
Wed Jan 09, 2019 5:40 am
Here's uploaded output of armbianmonitor -u: http://ix.io/1xPe
Hmm... Logging is (still) broken in Armbian/OMV. Which one is the data disk... sda or sdb?

To do a quick performance test simply cd to the mountpoint in question and then iozone -e -I -a -s 100M -r 1024k -r 16384k -i 0 -i 1

trohn_javolta
Posts: 56
Joined: Fri Nov 03, 2017 6:16 am
languages_spoken: english, german
ODROIDs: none (plans for XU4)
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by trohn_javolta » Wed Jan 09, 2019 6:21 am

tkaiser wrote:
Wed Jan 09, 2019 6:08 am
trohn_javolta wrote:
Wed Jan 09, 2019 5:40 am
Here's uploaded output of armbianmonitor -u: http://ix.io/1xPe
Hmm... Logging is (still) broken in Armbian/OMV. Which one is the data disk... sda or sdb?

To do a quick performance test simply cd to the mountpoint in question and then iozone -e -I -a -s 100M -r 1024k -r 16384k -i 0 -i 1
Sdb is connected via sata bridge, sda is in a usb 3.0 enclosure (powered seperately of course) connected to usb port.
This is the iozone test output:

Code: Select all

root@hc2:/media/dev-disk-by-label-festplatte# iozone -e -I -a -s 100M -r 1024k -r 16384k -i 0 -i 1
        Iozone: Performance Test of File I/O
                Version $Revision: 3.429 $
                Compiled for 32 bit mode.
                Build: linux

        Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
                     Al Slater, Scott Rhine, Mike Wisner, Ken Goss
                     Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
                     Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
                     Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone,
                     Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root,
                     Fabrice Bacchella, Zhenghua Xue, Qin Li, Darren Sawyer,
                     Vangel Bojaxhi, Ben England, Vikentsi Lapa.

        Run began: Tue Jan  8 22:19:03 2019

        Include fsync in write timing
        O_DIRECT feature enabled
        Auto Mode
        File size set to 102400 kB
        Record Size 1024 kB
        Record Size 16384 kB
        Command line used: iozone -e -I -a -s 100M -r 1024k -r 16384k -i 0 -i 1
        Output is in kBytes/sec
        Time Resolution = 0.000001 seconds.
        Processor cache size set to 1024 kBytes.
        Processor cache line size set to 32 bytes.
        File stride size set to 17 * record size.
                                                              random    random     bkwd    record    stride
              kB  reclen    write  rewrite    read    reread    read     write     read   rewrite      read   fwrite frewrite    fread  freread
          102400    1024   139156   136738   145849   163339
          102400   16384   128561   146915   166427   187816

iozone test complete.

tkaiser
Posts: 671
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by tkaiser » Wed Jan 09, 2019 6:27 am

trohn_javolta wrote:
Wed Jan 09, 2019 6:21 am
This is the iozone test output
All fine. Well above 100 MB/s. The next steps I would do then is to test 'network only' (iperf/jperf.exe) and then run also Helios LanTest with 10GbE settings (just because there were several occurrences in OMV forum where users reported bad transfer speeds just to realize later that the client was the issue -- LanTest doesn't rely on local storage)

trohn_javolta
Posts: 56
Joined: Fri Nov 03, 2017 6:16 am
languages_spoken: english, german
ODROIDs: none (plans for XU4)
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by trohn_javolta » Sun Jan 20, 2019 12:07 am

tkaiser wrote:
Wed Jan 09, 2019 6:27 am
All fine. Well above 100 MB/s. The next steps I would do then is to test 'network only' (iperf/jperf.exe) and then run also Helios LanTest with 10GbE settings (just because there were several occurrences in OMV forum where users reported bad transfer speeds just to realize later that the client was the issue -- LanTest doesn't rely on local storage)
Sry for the late reply. I now tried jperf on win10 pc and iperf on hc2, idk if the settings are right, I just took the default ones jperf offered me.
Here's the output, running server on win10 pc and client on hc2:

Code: Select all

root@hc2:~# iperf -c pc.home -P 1 -i 1 -p 5001 -f k -t 10 -T 1
------------------------------------------------------------
Client connecting to pc.home, TCP port 5001
TCP window size: 43.8 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.111 port 41048 connected with 192.168.1.100 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec  112640 KBytes  922747 Kbits/sec
[  3]  1.0- 2.0 sec  114048 KBytes  934281 Kbits/sec
[  3]  2.0- 3.0 sec  114048 KBytes  934281 Kbits/sec
[  3]  3.0- 4.0 sec  114048 KBytes  934281 Kbits/sec
[  3]  4.0- 5.0 sec  114048 KBytes  934281 Kbits/sec
[  3]  5.0- 6.0 sec  114176 KBytes  935330 Kbits/sec
[  3]  6.0- 7.0 sec  113920 KBytes  933233 Kbits/sec
[  3]  7.0- 8.0 sec  114176 KBytes  935330 Kbits/sec
[  3]  8.0- 9.0 sec  114048 KBytes  934281 Kbits/sec
[  3]  9.0-10.0 sec  113792 KBytes  932184 Kbits/sec
[  3]  0.0-10.0 sec  1138944 KBytes  932917 Kbits/sec
and here server on hc2, client on win10 pc:

Code: Select all

bin/iperf.exe -c hc2.home -P 1 -i 1 -p 5001 -f k -t 10 -T 1
------------------------------------------------------------
Client connecting to hc2.home, TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[452] local 192.168.1.100 port 50979 connected with 192.168.1.111 port 5001
[ ID] Interval       Transfer     Bandwidth
[452]  0.0- 1.0 sec  113176 KBytes  927138 Kbits/sec
[452]  1.0- 2.0 sec  114696 KBytes  939590 Kbits/sec
[452]  2.0- 3.0 sec  115224 KBytes  943915 Kbits/sec
[452]  3.0- 4.0 sec  114984 KBytes  941949 Kbits/sec
[452]  4.0- 5.0 sec  115024 KBytes  942277 Kbits/sec
[452]  5.0- 6.0 sec  114944 KBytes  941621 Kbits/sec
[452]  6.0- 7.0 sec  115072 KBytes  942670 Kbits/sec
[452]  7.0- 8.0 sec  115016 KBytes  942211 Kbits/sec
[452]  8.0- 9.0 sec  115016 KBytes  942211 Kbits/sec
[452]  9.0-10.0 sec  114920 KBytes  941425 Kbits/sec
[452]  0.0-10.0 sec  1148080 KBytes  939361 Kbits/sec
Looks good, right?

However Helios Test got me these results:

Code: Select all

HELIOS LanTest 6.0.0 (Windows). Testing on path Y:\
Number of small files: 300, size of small files: 20 kB, size of big file: 3000 MB, number of locks: 16000, number of files/folders: 640, size of print job: 2000 MB
Number of users: 1
Hostname	Address	Date	Time	Create [s]	Open [s]	Remove [s]	Write [MB/s]	Read [MB/s]	Lock/Unlock [s]	Read Dir [s]
----	192.168.1.100	19 Jän. 2019	15:34:36	1.1774	0.4136	2.3421	41.25	41.47	0.1432	0.0612
----	192.168.1.100	19 Jän. 2019	15:37:13	1.1398	0.4094	2.6047	47.61	37.80	0.1434	0.0421
----	192.168.1.100	19 Jän. 2019	15:39:53	1.4296	0.4703	2.6676	48.40	36.06	0.1486	0.0588
----	192.168.1.100	19 Jän. 2019	15:42:36	1.4595	0.4747	2.6887	47.11	35.25	0.1502	0.0383
----	192.168.1.100	19 Jän. 2019	15:45:01	1.3476	0.4369	2.5326	48.95	42.59	0.1478	0.0551
----	192.168.1.100	19 Jän. 2019	15:47:20	1.2330	0.4076	2.3472	56.15	41.44	0.1440	0.0377
----	192.168.1.100	19 Jän. 2019	15:49:42	1.6111	0.4122	2.3133	51.63	42.54	0.1483	0.0532
----	192.168.1.100	19 Jän. 2019	15:52:07	1.1548	0.4028	2.2615	52.67	40.06	0.1485	0.0376
----	192.168.1.100	19 Jän. 2019	15:54:39	1.2656	0.4172	2.3093	53.76	36.86	0.1496	0.0605
----	192.168.1.100	19 Jän. 2019	15:57:17	1.4317	0.4343	2.6504	49.08	36.67	0.1488	0.0430

tkaiser
Posts: 671
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by tkaiser » Sun Jan 20, 2019 6:30 pm

This is really strange since the individual tests confirmed both storage performance and network performance are ok. But NAS transfers are really bottlenecked (now adding Samba to the mix). Can you please rerun the LanTest but this time mount the share on the W10 client and then do this on HC2 prior to starting the test:

Code: Select all

for i in `pgrep smbd` ; do taskset -c -p 4-7 $i ; done
Please provide new test results and also output from cat /proc/interrupts before and after the test. And please also check uname -a output. For whatever reasons 'Armbian' switched from Hardkernel's optimized 4.14 kernel to mainline 4.19 some time ago just to revert back to 4.14 in the meantime. Stuff like this might interfere with performance as well...

trohn_javolta
Posts: 56
Joined: Fri Nov 03, 2017 6:16 am
languages_spoken: english, german
ODROIDs: none (plans for XU4)
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by trohn_javolta » Sun Jan 20, 2019 7:28 pm

tkaiser wrote:
Sun Jan 20, 2019 6:30 pm
This is really strange since the individual tests confirmed both storage performance and network performance are ok. But NAS transfers are really bottlenecked (now adding Samba to the mix). Can you please rerun the LanTest but this time mount the share on the W10 client and then do this on HC2 prior to starting the test:

Code: Select all

for i in `pgrep smbd` ; do taskset -c -p 4-7 $i ; done
Please provide new test results and also output from cat /proc/interrupts before and after the test. And please also check uname -a output. For whatever reasons 'Armbian' switched from Hardkernel's optimized 4.14 kernel to mainline 4.19 some time ago just to revert back to 4.14 in the meantime. Stuff like this might interfere with performance as well...
Taskset command confirmed that all smb processes where running on the big cores:

Code: Select all

root@hc2:~# for i in `pgrep smbd` ; do taskset -c -p 4-7 $i ; done
pid 1869's current affinity list: 4-7
pid 1869's new affinity list: 4-7
pid 1870's current affinity list: 4-7
pid 1870's new affinity list: 4-7
pid 23753's current affinity list: 4-7
pid 23753's new affinity list: 4-7
pid 25356's current affinity list: 4-7
pid 25356's new affinity list: 4-7
pid 25839's current affinity list: 4-7
pid 25839's new affinity list: 4-7
Here's uname -a output:

Code: Select all

Linux hc2 4.14.78-odroidxu4 #48 SMP PREEMPT Sat Oct 27 11:32:29 CEST 2018 armv7l GNU/Linux
Here's the test result:
LanTest-192.168.1.100-fabi.log
(443 Bytes) Downloaded 3 times
Here are interrupts before and after the test:
interrupts_before.txt
(9.02 KiB) Downloaded 4 times
interrupts_after.txt
(9.02 KiB) Downloaded 3 times
I start thinking maybe my win10 install is messed up somehow..
I did nothing fancy, just mount via "connect network share" in explorer. Then enter \\hostname\share. What's strange is that when windows asks username and password and I enter it, I get invalid password. If I just enter username and leave the password blank it works.
Now I tried on my laptop and I cannot reconnect to the share at all....
If I don't tick "establish connection with different credentials" windows uses the saved login, if I check it and reenter the credentials, the login window just pops up again.... I'm 100% sure user and password are right, same user and pw I have on armbian.
Sth. is messed up..

trohn_javolta
Posts: 56
Joined: Fri Nov 03, 2017 6:16 am
languages_spoken: english, german
ODROIDs: none (plans for XU4)
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by trohn_javolta » Sun Jan 20, 2019 7:51 pm

I now set the password using smbpasswd -a and can connect using the usual credentials again.
I thought omv sets that by default. I mean I have a shared folder in omv, the dluser that can read/write on/to it and that folder is also added in smb config. So I thought, omv sets the dluser with the password in armbian also for smb.
Maybe I lately connected using a guest login, gotta check that..
...However tranfer is still at 40-50 mb/s. Idk if the diagramm in win explorer is of any help. There I see the tranfser starts at 100 mb/s but quickly drops down to 40-50 mb/s.
Unfortunatly I don't have another client device at hand for testing that would be able to archive 100 mb/s. I have an USB 3.0 gigabit lan adapter I can hook up to my laptops USB 3.0 port but that'd just give me 60 mb/s max. I guess.

tkaiser
Posts: 671
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Contact:

Re: [HC2] [Armbian] Slow transfer speed via Samba

Unread post by tkaiser » Sun Jan 20, 2019 8:46 pm

Sorry, running out of ideas and not able to help with Windows client side issues anyway since not using Windows (only on some servers when a solution only exists for Windows). At least the 'environment' on your HC2 is ok and should result in client transfer speeds at around 100 MB/s.

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 2 guests