Page 1 of 2

gigabit card not in gigabit mode, only 100Mb/s

Posted: Mon Jan 09, 2012 1:54 am
by kikkegek
hi guys,

I noticed that my HDA has slow network transfers. Windows client to Windows clients I get like 60Mb/sec transfers over my gfigabit network. I have recently updated all the cables to cat6, to make sure hardware is not keeping back the transfersrate.

This is what "ethtool" tells me.

can you guys help me?

Code: Select all

[root@amahi samba]# ethtool eth0 Settings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Link partner advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Link partner advertised pause frame use: No Link partner advertised auto-negotiation: Yes Speed: 100Mb/s Duplex: Full Port: MII PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: pumbg Wake-on: g Current message level: 0x00000033 (51) drv probe ifdown ifup Link detected: yes

Re: gigabit card not in gigabit mode, only 100Mb/s

Posted: Mon Jan 09, 2012 2:38 am
by moredruid
to what type of hardware is your NIC connected? Is it 100Mbit or 1Gbit? It seems that the advertised speed on the link is 100Mbit, Linux just obeys that.

Re: gigabit card not in gigabit mode, only 100Mb/s

Posted: Mon Jan 09, 2012 3:30 am
by kikkegek
to what type of hardware is your NIC connected? Is it 100Mbit or 1Gbit? It seems that the advertised speed on the link is 100Mbit, Linux just obeys that.
its connected to the modem-router of my provider, which is capable of GB connections. The only connection that is currently 100Mb/s is the HDA for some reason. All others indicate (by LED color) they are in GB mode.

Re: gigabit card not in gigabit mode, only 100Mb/s

Posted: Mon Jan 09, 2012 5:57 am
by moredruid
you can do a manual override (watch it, may break your current network connection, if so, then reboot):
root@host# # ethtool -s eth0 speed 1000 duplex full

Re: gigabit card not in gigabit mode, only 100Mb/s

Posted: Mon Jan 09, 2012 7:21 am
by kikkegek
you can do a manual override (watch it, may break your current network connection, if so, then reboot):
root@host# # ethtool -s eth0 speed 1000 duplex full
hi there, thanks moredruid.

I did a reboot and after the reboot the system came back up as a GB connection. So I'll monitor it for a while, but while follo up on your advise if needed.

thanks.

Re: gigabit card not in gigabit mode, only 100Mb/s

Posted: Tue Jan 10, 2012 2:35 am
by moredruid
ah, then probably the system has allocated the correct driver instead of a generic one, or it was updated.

Re: gigabit card not in gigabit mode, only 100Mb/s

Posted: Tue Jan 10, 2012 2:54 am
by kikkegek
ah, then probably the system has allocated the correct driver instead of a generic one, or it was updated.
I checked again just now and for some reason the connection is again back to only 100 Mb/s.

Can you help where I should check why it changes the connection speed?

Re: gigabit card not in gigabit mode, only 100Mb/s

Posted: Tue Jan 10, 2012 3:59 am
by moredruid
hmmm weird. You should be able to set it with the ethtool options I gave you, but why it changes?

Some switches/routers have a powersaving "feature" which throttles the ports down to a lower speed (difference between 100Mbps and 1000Mbps is a whopping 1W/h), you may want to check that since it apparently "flips". You can also loadtest the network connection to your hda while you monitor the link speed in a terminal:
watch -n 1 "ethtool eth0 | grep Speed"
This runs the ethtool command every second and allows you to see if the connection speed changes. Start it and start some copies to/from different machines to your hda.

Your hardware log may have some clues as well, run "dmesg" (you can post the last 30 or so lines if you like)

Re: gigabit card not in gigabit mode, only 100Mb/s

Posted: Tue Jan 10, 2012 1:43 pm
by kikkegek
did some more research and it seems like when the system has been in "suspend to disk" from the Amahi Energy Saver app, that it returns as 100Mbit in stead of gigabit..

any ideas?

Re: gigabit card not in gigabit mode, only 100Mb/s

Posted: Tue Jan 10, 2012 6:14 pm
by bigfoot65
Could be an issue with the energy saver app. Suggest you post this in that topic area and see if the author has any ideas.