Forum

Full Version: (Solved) - Improve network speed over lan
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Congratulations Smile

Would be very interesting which settings is responsible for your speed up.

Maybe one of those ones:

aio read size = 2048
aio write size = 2048
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072

read/write raw is Yes per default

Would be great if you could figure out which settings speeds up your file transfer, so I can modify default smb.conf for XBian for the future

Quote:i cant follow you, what did you mean? "media/MyBook"?Dodgy

I bought used empty WD MyBook case on eBay and put my old 750GB disk into this case (means recycling of old disk Tongue)
i will figure it out and search for the best settings on my RPi2 Smile
But now its to late, i will do it the next days an give you an update Wink
No problem, don't hurry Cool
i´m back Big Grin
I have tested many values and it is as always not so simple Dodgy
orginal config:
i get s speed of 8.5 MB/s (and 12.5 MB/s with my Gbit adapter)
with:
aio read size = 2048
aio write size = 2048

it get a speed of 10.9 MB/s (and 14.5 MB/s with my GBit adapter)
with:
socket options = SO_RCVBUF=131072 SO_SNDBUF=131072
i get a speed of 10 MB/s (and 13.3 MB/s wity my GBit adapter)
with both together:
aio read size = 2048
aio write size = 2048

socket options = SO_RCVBUF=131072 SO_SNDBUF=131072
i get the full speed of 11.4 MB/s (and 15,5 MB/s with my GBit adapter)
with:
socket options =PTOS_LOWDELAY
i get not a better speed, but the transfer starts with a higher initial value.

So I think it is a match of these parameters. Surprisingly OSMC uses exactly the parameters from the article: "Samba finetuning for better transfer speeds (ARM)" Wink
Which also explains very well the individual parameters.
So I think the parameters above should be supplemented anyway Smile

I am using aktually the tuning-parameters from the article above, the speed is not thereby increased compared to the parameters of OSMC (I think the 11.5 MB/s are simply the maximum for 100Mbit/s Lan) but i think it's just going more smoothly and the transmission is even more stable (the amount of the transmission swings less)
Maybe it is possible to integrate an opion for "fast SMB" in the XBian settings, witch set the parameters from the article below? Smile
Good work Big Grin

I'll put them all into smb.conf and test it here in my environment.

It would be interesting what the raw speed of your GBit adapter is, I mean not the speed from/to USB disk over LAN.

For example:

Mount share from your RPi to your W10 system and then run

Terminal

dd if=/dev/zero of=/mountofyourshare/4G bs=1M count=4096

dd if=/mountofyourshare/4G of=/dev/null bs=1M

on your RPi
I hope I understood you correctly.
For the test, i created a folder on my SSD on the PC wich i mounted on my RPi2:
Terminal
sudo mount -t cifs -o user=***,pass=**** //****/Downloads /mnt

with xbian(original) settings:
Terminal
xbian@RPi2 ~ $ sudo dd if=/dev/zero of=/mnt/4G bs=1M count=4096
4096+0 records in
4096+0 records out
4294967296 bytes (4.3 GB) copied, 196.117 s, 21.9 MB/s
xbian@RPi2 ~ $ sudo dd if=/mnt/4G of=/dev/null bs=1M
4096+0 records in
4096+0 records out
4294967296 bytes (4.3 GB) copied, 177.123 s, 24.2 MB/s
with optimized setting from the article:
Terminal
xbian@RPi2 ~ $ sudo dd if=/dev/zero of=/mnt/4G bs=1M count=4096
4096+0 records in
4096+0 records out
4294967296 bytes (4.3 GB) copied, 201.157 s, 21.4 MB/s
xbian@RPi2 ~ $ sudo dd if=/mnt/4G of=/dev/null bs=1M
4096+0 records in
4096+0 records out
4294967296 bytes (4.3 GB) copied, 177.523 s, 24.2 MB/s
(31st Oct, 2016 12:21 PM)Harald654 Wrote: [ -> ]I hope I understood you correctly.
For the test, i created a folder on my SSD on the PC wich i mounted on my RPi2:
Terminal
sudo mount -t cifs -o user=***,pass=**** //****/Downloads /mnt

Yes, exactly.

So you have write speed below 22MB/s and read speed below 25MB/s from RPi's point of view. That's not what I expected (I supposed it should be >= 30MB/s). Maybe your switch is really a speed brake Dodgy

Thanks for testing
(31st Oct, 2016 09:29 PM)Nachteule Wrote: [ -> ]Maybe your switch is really a speed brake Dodgy

NO, its not! Tongue
I bought the switch actually for the Dock of my x86 Tablet (the Dock has also only a 100Git Lan and USB 2). Connected to the USB2 port i get there a transfer rate of 40 MB/s for the data transfer from my PC.

I had also expected a higher transfer rate conected to the Rpi2. Sad
Maybe there is something how limited the speed, the 20 MB/s are at least exactly the half of the possible speed via USB 2!

Edit: there is an interesting Link about Gbit adapter on RPi, with iperf benchmarks they geht 321 Mbits/sec (40 MB/sec) Dodgy
(1st Nov, 2016 02:21 AM)Harald654 Wrote: [ -> ](the Dock has also only a 100Git Lan and USB 2)

Hey, what a magic speed Tongue

Quote:Edit: there is an interesting Link about Gbit adapter on RPi, with iperf benchmarks they geht 321 Mbits/sec (40 MB/sec) Dodgy

... but what you get is the speed shown in the graphics

Did you already tried iperf?
Added optional parameters (see this commit) to /etc/samba/smb.conf and built new xbian-package-samba
Set to solved
Pages: 1 2
Reference URL's