Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Location: Slovakia, currently working in Liverpool UK
Distribution: Gentoo 2006.0
Posts: 97
Rep:
slow download/upload on ethernet
hi,
i am running suse 10.1 and connecting via samba server to my friends windows box... what i've noticed is, that i can't download/upload more than 4500-5000 kb/s. under windows i was able to download 10 mb/s. we both have 100mbps network cards. somebody told me that i have to turn off duplex mode, or smthng like that, because that is using only half of my bandwidth to keep other half available for another network communication. is it true? if yes, how can i disable this duplex thingy?
Location: Slovakia, currently working in Liverpool UK
Distribution: Gentoo 2006.0
Posts: 97
Original Poster
Rep:
thank you very much - works as a charm - that's exactly what i was looking for... you see, the biggest problem for me is, that i know it can be done, but i just do not know the command for it. if i would've known that it can be done with ethtool, i would RTFM and would be all set... well, i know it now
No problem. My comment about man pages was just to let you know where to get more information. I seldom respond with RTFM but do usually add a comment about man pages as some people aren't aware they exist.
FYI for anyone else reading the thread - the note ifcfg-eth0 applies to RedHat (and Fedora) but may or may not be valid for other distros.
I am basically having the same problem here. I can't seem to break 4MB/s transferring from XP to linux through samba.
My nic is already set at full duplex and 100MB/s so I just ran
Code:
ethtool -s eth0 autoneg off
Now the transfer starts at anywhere between 50 and 110 MB/s, only to slow right back down to 4MB/s after about 5 seconds. before I found this thread I tried adding the stuff in this post to my smb.conf but it didn't help. It's like samba is taunting me now, showing me what it's capable of, before not doing it.
here's my smb.conf's global section:
Code:
[global]
workgroup = HOME
encrypt passwords = yes
wins support = yes from this line on are additions trying to pick up the pace
default service = data
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
read raw = yes
write raw = yes
oplocks = yes
max xmit = 65535
dead time = 15
getwd cache = yes
anyway turning off autonegotiation is the first thing I've tried that appeared to make any difference at all
Remember the setting needs to be the same on both sides of the connection. If you are direct connected to the XP box you probably need to figure out how to check its NIC as well. If going through a router you need to check the router.
For most things setting 100 Full is the way to go as autnegotiate bites.
Also make sure you do the ethtool option to check the settings on your NIC to make sure they are now what you think they are. Turning autonegotiate off may mean it is at 100 half or 10 full or even 10 half.
Example - to see eth0 setttings:
ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: Not reported
Advertised auto-negotiation: No
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: umbg
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: yes
It is the "Speed:" and "Duplex" entries you're interested in seeing. As can be seen here they have 100Mb/s and Full respectively. Note "Auto-negotiation:" is Off but as stated above this doesn't automatically set the other 2 parameters to what you want.
everytime I've turned off autoneg with ethtool, I've checked it afterwards, eth0 has always been at 100/full.
I checked my router's(di-604) settings, it is set to 100/full
Turns out my xp box was set to "full autonegotiation", it is now set to "force 100 full duplex"
There is no change whatsoever though. For the first few seconds the transfer taunts me by going as fast as it presumably can(50-100MB/s), then it immediately drops down to 4MB/s.
btw, how do I get autoneg off by default when I boot up in slack 10.2? I do not have the ifcfg-eth0 file mentioned above.
thought I'd mention for anyone who's searching on this stuff in future - I've found that if I bypass my smbfs mounts under /mnt and just put smb://192.168.0.166/location.etc in Konqueror's location bar, the transfer speed when copying from my xp/torrent box is almost doubled! I get just over 7MB/s that way. Which if memory serves is about the pace I was used to when I was booting xp on this computer (well, 10 minutes for dvd iso to transfer anyway, windows is not so kind as to give us actual transfer speed data in explorer..)
I tried changing the fstab entries for my samba mounts to start with the IP instead of the computer name, but that did not make any difference.
I'm still hoping someone can tell me (or point me to the doc that can) how I can set autonegotiation to be off at startup..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.