Trouble

Raspbian 3.1 - how to force gigabit for eth0?

16 11251
Post Last Edited by mikronauts at 2014-8-22 16:08

Post Last Edited by mikronauts at 2014-8-22 16:07

Hi,

I'm using a short Cat6 cable to a five port TP-LINK gigabit switch, however I only get a 100Mbps connection to the BPi.

I've installed ethtools, and tried to force 1000mbps

Does not work, link comes back as 100mbps

How can I get gigabit? Any ideas?

I am working on a review, so need this information ASAP.

Thanks,

Bill
The Ethernet should work under gigabit automatically, but the speed may not up to 1G. Here is a test http://www.linuxuser.co.uk/revie ... tier-than-raspberry . In the review, the speed is 233 MB.
But I remembered that I have seen someone tested it at 300+M.

Hi!

FWIW minimal ethernet cable should be 30cm (you mentioned short) and full 8 wire connected. Here my banana works flawless in a netgear and a vdsl modem @gb connected.

Simple test (banana pi raspian 3.1 with SATA rootdisk, to centos 5.10 on vmware fusion, 40Hz clocktick limited) gives:
root@bananapi:~# iperf -c 192.168.2.112
------------------------------------------------------------
Client connecting to 192.168.2.112, TCP port 5001
TCP window size: 21.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.2.8 port 38827 connected with 192.168.2.112 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   384 MBytes   322 Mbits/sec

Nice

PS the OS says this banana is SATA multiplier compliant, will test this also soonest, SATA disks are always welcome

Post Last Edited by robbedoes at 2014-8-23 02:24

Post Last Edited by robbedoes at 2014-8-23 02:22

Post Last Edited by robbedoes at 2014-8-23 02:17

And a larger windows size gives:
root@bananapi:~# iperf -c 192.168.2.112 -w 400k
------------------------------------------------------------
Client connecting to 192.168.2.112, TCP port 5001
TCP window size:  256 KByte (WARNING: requested  400 KByte)
------------------------------------------------------------
[  3] local 192.168.2.8 port 38829 connected with 192.168.2.112 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   598 MBytes   502 Mbits/sec

tcp tuning in sysctl.conf gives an extra oemph:
# 20140824 http://www.cyberciti.biz/faq/linux-tcp-tuning/
net.core.wmem_max=12582912
net.core.rmem_max=12582912
net.ipv4.tcp_rmem= 10240 87380 12582912
net.ipv4.tcp_wmem= 10240 87380 12582912
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_sack = 1
net.ipv4.tcp_no_metrics_save = 1
net.core.netdev_max_backlog = 5000

root@bananapi:~# iperf -c 192.168.2.112 -w 1024k
------------------------------------------------------------
Client connecting to 192.168.2.112, TCP port 5001
TCP window size: 2.00 MByte (WARNING: requested 1.00 MByte)
------------------------------------------------------------
[  3] local 192.168.2.8 port 38833 connected with 192.168.2.112 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   664 MBytes   557 Mbits/sec

root@bananapi:/var/log/squid# iperf -c 192.168.2.112
------------------------------------------------------------
Client connecting to 192.168.2.112, TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  3] local 192.168.2.8 port 38839 connected with 192.168.2.112 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   819 MBytes   686 Mbits/sec


Too slow, definitely we need 10 or 40Gb fiber ports and a maxed out macpro instead of a macmini !

great numbers, robbedoes!

Reply 3# robbedoes

It seems that sata port on banana Pi do not support multiple hard disks connection

While port multiplier support would have been nice, just having a SATA port will be very useful.

I hope to move my Raspbian 3.1 to a 128GB SSD tomorrow.

update:

I changed to a brand new Cat6 cable, and the BPi now connects at 1Gbps!

The first run of iperf got >650mbps, repeat runs were around 500mbps - and that was without any tuning!

Reply 7# mikronauts

I keep all root files system in a ssd. I also setup an svn ang git sever.

Moving my root fs to an SSD is my next experiment

You have to log in before you can reply Login | Sign Up

Points Rules