LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-28-2004, 01:29 AM   #16
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127

From a post in a different forum, a guy runninig Windows had the same problem.
Suggested solution: activate DMA/Bus Mastering for the nic's. How would that be done in Linux box? (Different distro's starting with RedHat 7.1)
 
Old 07-28-2004, 11:43 AM   #17
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
take a look at the output of "lscpi -v". busmaster should be activated if it's a recent pc. dma transfers are imho driverspecific and do work on my 8139too.
anyway you'll not get 100Mbit/s. i get a max. of ~30Mbit/s to a p133. any machine above 400MHz should come near 70MBit/s. transfer speeds strongly depend on your cabling and the hardware used. you'll also see a big difference in throughput by using different tools for messuring.
here is a link about adjusting tcp-related values in your /proc. but 2.4 series of kernels are known to have a quite good autodetection of those values.

http://www-didc.lbl.gov/TCP-tuning/TCP-tuning.html
http://ipsysctl-tutorial.frozentux.n...-tutorial.html
 
Old 07-28-2004, 12:40 PM   #18
arrruken
Member
 
Registered: Apr 2003
Distribution: gentoo
Posts: 238

Rep: Reputation: 32
I pretty much glanced through the post, and I didnt see anyone mention the difference between MB and Mb. So, in case you didnt know, the max possible throughput of a 100Mb/sec network would be 12.5 MB meaning what you actually get will be around 7-9MB.
btw I use a bunch of D-Link 530-TX+'s(which use the realtek 8139too chipset) and they all perform great.

Last edited by arrruken; 07-30-2004 at 03:26 AM.
 
Old 07-28-2004, 12:58 PM   #19
WMD
Member
 
Registered: Jul 2004
Location: Florida
Distribution: Slackware, Debian
Posts: 484

Rep: Reputation: 30
Quote:
Originally posted by arrruken
I pretty much glanced through the posted, and I didnt see anyone mention the difference between MB and Mb. So, in case you didnt know, the max possible throughput of a 100Mb/sec network would be 12.5 MB meaning what you actually get will be around 7-9MB.
Exactly as I was thinking.... Are you getting 10 *megabytes* per second? That would be correct for a 100 *megabits* connection.
 
Old 08-02-2004, 01:24 AM   #20
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
Thanks for those guides, mritch, I've been away for the weekend but will read them soon.
Quote:
i get a max. of ~30Mbit/s to a p133. any machine above 400MHz should come near 70MBit/s
Computer edgar is an AMD Athlon 1700 (about 1,4GHz I think), server is P166 - so 30Mbps should be best I can get?. But the strange thing is, when I connect to server, the nic is set to 10Mbps HalfDuplex! Even though both cards are set to 100Mbps full duplex at booting! (And yes, I'm talking megabits, not bytes.)
 
Old 08-02-2004, 01:44 AM   #21
mhollstein
LQ Newbie
 
Registered: Jul 2004
Location: Stuttgart, Germany
Distribution: suse
Posts: 23

Rep: Reputation: 15
try to connect two systems with a crossover cable.
if performance is ok, then you know: its's the switch.
 
Old 08-02-2004, 01:38 PM   #22
CaptainRegular
Member
 
Registered: Aug 2004
Location: Virginia Tech
Distribution: Xandros 3.01
Posts: 30

Rep: Reputation: 15
$10 NICs

I don't know a whole lot about Linux networking, but I do know those Realtek 8139 cards are actually really really good. Our apartment got smote a while back (hit by lightning through the cable modem) and EVERYTHING network got toasted, so I ordered like 10 of the Realteks for like $4 each and they have ALL performed flawlessly. We're using a Linksys 10/100 WiFi-B router and a Linksys switch. My experience with Cat5 has been good up to about 75 feet, nothing special. My current linux box is going through 2 pieces of network cable, one KNOWN bad (you have to wiggle it and position it just right to connect at all) and a RJ45 extender junction totalling about 80 feet of cable, and I get about 9 Megabits. It sounds like the problem is in your switch.

Last edited by CaptainRegular; 08-02-2004 at 03:55 PM.
 
Old 08-03-2004, 01:24 AM   #23
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
It's not the switch, I'm only using crossover now.
What really makes me puzzled is what happens on server:
At booting it says "setting 100 Mb full duplex...." but it obviously can't handle more than 10 Mb half duplex!
And yes, I know the difference between bits and bytes. I reach at the most 40 megabits, could be maximum for a P133 - but then I also get lots of overruns.
I'll try connecting edgar (AMD1,4GHz) to tjabo (AMD K7/500) (changing tjabo's nic) card in the evening.
 
Old 08-03-2004, 01:49 AM   #24
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
ok. do a "tcpblast" from one to the other and post your results (+ev. dropped pkts). which tools did you try to see your current settings? "mii-diag" tells my about my 8139too: ~auto-negotiated 45e1 (=100baseTx-FD). it should get that info from your switch or from another ether. there are various other tools (some cardspecific) out there. afaik you can disable autodetecting by passing a switch to the kernelmodule or ev. at the bootloader prompt.
if you get lot of dropped packets or errors/overruns there definitely is something wrong. even connecting a very fast machine to my pentium server couldn't make more than a few of them appear while stressing the device. anyway i've heard that it should be possible to kill a pentium with a lot faster machine (never happend to me). another quite good tool i use to messure bandwidth is "bing" - you may want to look at it.
other things: have you enabled ipv6, some sort of nasty routing or bridging with fast switching, is your kernel a custom one?

sl mritch.
 
Old 08-06-2004, 01:50 AM   #25
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
Strange....
It seems as it actually is the onboard nvnet on edgar that isn't functioning correctly!
Connecting edgar to server results in 10Mbps HD on both cards, connecting server to tjabo (with realtek in both) server immediately goes up to 100FD!
'lspci -v' tells me busmastering/DMA is enabled.
Can't use mii-diag, only found it as code to compile with gcc, I have never been able to do that.
So my research continues...
 
Old 08-07-2004, 06:38 AM   #26
bruj3w
Member
 
Registered: Mar 2004
Location: england
Distribution: slackware
Posts: 164

Rep: Reputation: 30
i got 2 machines and transfers between the two seem to go at about 3.5mb/sec even though i have a 10/100mb hub, cat5 100mb nics etc...

i figure that its something to do with the other pc as its a really old 486, and simply isnt able to keep up with the speed of the xfer.
 
Old 10-06-2004, 04:22 PM   #27
tonyleder
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
This sounds like a duplex mismatch. Your NIC is set to 100/Full and your switch is unmanaged, defaulting to 100/Half.

When you connect to an unmanaged switch you should always set your network adapter to Auto, not 100F. Since the switch is unmanaged it is always at AUTO, Autonegotiation is not truly auto. If your adapter is forced to 100F and your switch is at AUTO the switch will set itself to 100H in most instances. Most switches will default to the lowest common setting. If it doesn't see speed it will set itself to 10, if it doesn't see auto it will set itself to half duplex.

So the solution is to use Autonegotiation. check the LEDs on your network card. It should have some indication of Speed/Duplex, if you see 100F you are gold. IF you don't, then investigate the switch as the bottleneck. Also search for a program called TTCP to truly test your throughput.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
run network connection scripts on boot? BlackIce579 Linux - Networking 1 04-12-2004 10:03 PM
how to run network lix thru windows Vikings5 Linux - Networking 1 02-20-2004 08:33 AM
on Network Up Script run? On Battery power run script? v2-ncl Linux - General 0 12-08-2003 09:34 AM
Can't run programs and network not visible Marq Linux - Newbie 2 11-09-2003 06:56 PM
Trying to run X across the network t3kn0lu5t Linux - Software 1 09-27-2003 10:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration