Page 1 of 1

[HC2] [Armbian] Slow transfer speed via Samba

Posted: Wed Nov 28, 2018 12:02 am
by trohn_javolta
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?

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

Posted: Wed Nov 28, 2018 9:28 am
by odroid
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.

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

Posted: Thu Nov 29, 2018 2:39 am
by trohn_javolta
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? :?:

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

Posted: Thu Nov 29, 2018 2:52 am
by trohn_javolta
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.

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

Posted: Thu Nov 29, 2018 8:11 am
by rooted
Didn't you ask this question on Armbian's forum?

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

Posted: Thu Nov 29, 2018 9:35 am
by odroid
Try "performance" governor on both big and little cores.

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

Posted: Thu Nov 29, 2018 5:32 pm
by trohn_javolta
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.

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

Posted: Thu Nov 29, 2018 5:35 pm
by trohn_javolta
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?

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

Posted: Fri Nov 30, 2018 4:18 am
by rooted
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?

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

Posted: Fri Nov 30, 2018 9:47 am
by odroid
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

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

Posted: Mon Dec 03, 2018 8:27 pm
by trohn_javolta
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...

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

Posted: Tue Dec 04, 2018 12:27 pm
by odroid
You might need to post a question on OMV forum to find a tweak what they made.

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

Posted: Tue Dec 04, 2018 1:54 pm
by rooted
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/

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

Posted: Thu Dec 06, 2018 5:05 pm
by trohn_javolta
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.

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

Posted: Thu Dec 06, 2018 5:08 pm
by rooted
That would be my suggestion, reinstall and copy the configuration.

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

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

Posted: Tue Jan 08, 2019 8:54 pm
by trohn_javolta
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.

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

Posted: Tue Jan 08, 2019 9:02 pm
by igorpec
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.

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

Posted: Tue Jan 08, 2019 9:11 pm
by trohn_javolta
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.

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

Posted: Wed Jan 09, 2019 12:09 am
by igorpec
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.

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

Posted: Wed Jan 09, 2019 4:30 am
by tkaiser
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

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

Posted: Wed Jan 09, 2019 4:34 am
by rooted

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.

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

Posted: Wed Jan 09, 2019 5:40 am
by trohn_javolta
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 :(

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

Posted: Wed Jan 09, 2019 6:08 am
by tkaiser
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

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

Posted: Wed Jan 09, 2019 6:21 am
by trohn_javolta
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.

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

Posted: Wed Jan 09, 2019 6:27 am
by tkaiser
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)

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

Posted: Sun Jan 20, 2019 12:07 am
by trohn_javolta
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

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

Posted: Sun Jan 20, 2019 6:30 pm
by tkaiser
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...

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

Posted: Sun Jan 20, 2019 7:28 pm
by trohn_javolta
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 43 times
Here are interrupts before and after the test:
interrupts_before.txt
(9.02 KiB) Downloaded 43 times
interrupts_after.txt
(9.02 KiB) Downloaded 40 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..

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

Posted: Sun Jan 20, 2019 7:51 pm
by trohn_javolta
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.

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

Posted: Sun Jan 20, 2019 8:46 pm
by tkaiser
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.

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

Posted: Thu Apr 11, 2019 1:40 am
by trohn_javolta
samitn wrote:
Thu Apr 11, 2019 1:29 am
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.
In the meantime I tried it with ned win 10 install as client but speed still doesn't exceet 50mb/s.
I simply gave up on it. :(

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

Posted: Mon Jun 03, 2019 11:03 am
by jtbwatson
I ended up coming here because I was experiencing something similar. I was capping at 26 MB/s. At first this looked eerily close to 250 Mbps, so I thought oh what the heck it's my Meraki MX65 that's capping it, DUH. Plugged it into my Meraki switch and had the same issue. Checked the port settings on my switch, it's showing as 1 Gbps. Did iperf3 test and got 110 MB/s. Tried messing with it for most of the evening, then just said f it and I ended up starting from scratch.

- New OMV image on SD card.
- Wiped 2TB HDD from directly inside OMV web interface.
- SSH'd in and sudo apt update && sudo apt upgrade.
- Installed Plex on the HC1 through OMV web interface.
- Rebooted HC1.
- Created shared folder.
- Set the SMB settings and used the defaults in the extras tab.
- It works! Getting 110-112 MB/s!

So, it's shitty, but.... nuke it and start over. It worked for me!

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

Posted: Mon Jun 03, 2019 3:12 pm
by trohn_javolta
jtbwatson wrote:
Mon Jun 03, 2019 11:03 am
I ended up coming here because I was experiencing something similar. I was capping at 26 MB/s. At first this looked eerily close to 250 Mbps, so I thought oh what the heck it's my Meraki MX65 that's capping it, DUH. Plugged it into my Meraki switch and had the same issue. Checked the port settings on my switch, it's showing as 1 Gbps. Did iperf3 test and got 110 MB/s. Tried messing with it for most of the evening, then just said f it and I ended up starting from scratch.

- New OMV image on SD card.
- Wiped 2TB HDD from directly inside OMV web interface.
- SSH'd in and sudo apt update && sudo apt upgrade.
- Installed Plex on the HC1 through OMV web interface.
- Rebooted HC1.
- Created shared folder.
- Set the SMB settings and used the defaults in the extras tab.
- It works! Getting 110-112 MB/s!

So, it's shitty, but.... nuke it and start over. It worked for me!
I already tried that, see: viewtopic.php?f=96&t=32897&e=1&view=unread#p242923
Unfortunately it didn't help. :(

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

Posted: Mon Jul 22, 2019 7:30 pm
by trohn_javolta
So, digging this up again:
Could the slow transfer speed be connected to the smb version used? I read that with linux kernel 4.13 smbv1 support was dropped.
But like I said I tried with win10 as client and circa a year ago I got my nice 100mb/s with that. Win10 this seems to use smbv3.. So I guess it's not a samba version issue?