Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

(Solved) - Improve network speed over lan
Thank you for your donation

Pages (2): « Previous 1 2
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
(Solved) - Improve network speed over lan
27th Oct, 2016, 07:41 AM (This post was last modified: 27th Oct, 2016 07:45 AM by Nachteule.)
Post: #16
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Improve network speed over lan
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)
Find all posts by this user
Quote this message in a reply
27th Oct, 2016, 08:27 AM
Post: #17
Harald654 Offline
Registered
Posts: 27
Joined: Jun 2016
Reputation: 2
RE: Improve network speed over lan
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
Find all posts by this user
Quote this message in a reply
27th Oct, 2016, 09:05 AM
Post: #18
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Improve network speed over lan
No problem, don't hurry Cool
Find all posts by this user
Quote this message in a reply
30th Oct, 2016, 05:55 AM
Post: #19
Harald654 Offline
Registered
Posts: 27
Joined: Jun 2016
Reputation: 2
RE: Improve network speed over lan
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
Find all posts by this user
Quote this message in a reply
30th Oct, 2016, 11:23 PM
Post: #20
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Improve network speed over lan
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
Find all posts by this user
Quote this message in a reply
31st Oct, 2016, 12:21 PM
Post: #21
Harald654 Offline
Registered
Posts: 27
Joined: Jun 2016
Reputation: 2
RE: Improve network speed over lan
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
Find all posts by this user
Quote this message in a reply
31st Oct, 2016, 09:29 PM (This post was last modified: 31st Oct, 2016 09:30 PM by Nachteule.)
Post: #22
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Improve network speed over lan
(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
Find all posts by this user
Quote this message in a reply
1st Nov, 2016, 02:21 AM
Post: #23
Harald654 Offline
Registered
Posts: 27
Joined: Jun 2016
Reputation: 2
RE: Improve network speed over lan
(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
Find all posts by this user
Quote this message in a reply
1st Nov, 2016, 04:39 AM
Post: #24
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Improve network speed over lan
(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?
Find all posts by this user
Quote this message in a reply
28th Jan, 2017, 04:37 AM
Post: #25
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Improve network speed over lan
Added optional parameters (see this commit) to /etc/samba/smb.conf and built new xbian-package-samba
Find all posts by this user
Quote this message in a reply
28th Jan, 2017, 04:39 AM
Post: #26
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Improve network speed over lan
Set to solved
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): « Previous 1 2
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 9th May, 2025, 04:35 PM Powered By MyBB, © 2002-2025 MyBB Group.