LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2006, 03:13 PM   #1
Grafbak
Member
 
Registered: Jun 2003
Location: /dev/null
Distribution: Knoppix 3.3
Posts: 61

Rep: Reputation: 15
why is my 8169 gigabit card operating too slow ?


Hello all,

I need a little help with a gigabit network adapter, the E-Tech GBP102 with an RTL8169 chip on it. I want to install this on Knoppix 3.3 with the 2.4.22-xfs kernel, running on a pentium III.
I just bought a gigabit switch and a gigabit card to speed up things a little at home.
Unfortunately things are not going so fast. I have browsed the forum for a while but i could not find anything similar to my problem.

I got a linux driver from the manufacturer E-tech, r8169.c, edited the Makefile to set the right path and kernel version. I ran "Make", got my r8169.o file and placed this inside /lib/modules/2.4.22-xfs/kernel/drivers/net.

when i ran the following command :

Code:
insmod r8169.o media = 0x10
i got an error warning me about tainting the kernel. I looked this up at http://www.tux.org/lkml/#export-tainted and all i could understand was that is has to do with some sort of license issue. I could be wrong there.

I then tried :

Code:
insmod -f r8169.o media = 0x10
to simply force the module in the kernel and to tell it it has to be gigabit.
This seemed to work since i didn't get any errors.

I then did an ifconfig up, followed by a ' pump ' and the adapter got an ip-adress.
From my other PC i can see the shared folders on the linux machine. I can drag files to it and download from the linux machine. So i got communication working.
My other PC runs XP and it shows that i have got a 1 Gbps connection.

On the linux machine i ran dmesg | tail which gave me this :


Code:
root@Bigmofo1:/lib/modules/2.4.22-xfs/kernel/drivers/net# dmesg|tail
blk: queue c0334960, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c0334aa8, I/O limit 4095Mb (mask 0xffffffff)
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,EPP]
parport0: irq 7 detected
lp0: using parport0 (polling).
lp0: console ready
eth0: Identified chip type is 'RTL8169s/8110s'.
eth0: RTL8169s/8110s Gigabit Ethernet driver 1.6 <2003-08-25> at 0xd49b6000, 00:02:44:b0:d6:84, IRQ 11
eth0: Force-mode Enabled. 
eth0: 1000Mbps Full-duplex operation.
So Linux tells me i have a 1 Gbps connection as well. (Or it tells me because i forced the adapter in 0x10 mode, which stands for full duplex Gbit).
I am not able to run the mii-tool. Giving the command throws the error :

Code:
SIOCGMIIPHY on 'eth0' failed: Operation not supported
no MII interfaces found
After a reboot i do not get an ip-adress, and the error :
error fetching interface information. Device not found.
After applying some gentle force again i get it running.

edit :
After an hour or two of operation the Linux PC dissappears from the network and does no longer respond to any keystroke (local).
I have to brutally press the reboot button to get it working again. Maybe forcing the kernel to swallow the driver was not such a good idea. If somebody please can give me some help, i would really appreciate it. It's is turning into a small home-network-disaster.

And now (finally) my question :

Why does it still take me 4 minutes to drag a 700 MB file from one to the other computer ? It looks like it is still running on 100 mbit.
What do i have to do to get it working the way it should ?
Please help me.

Last edited by Grafbak; 10-04-2006 at 01:32 PM.
 
Old 10-04-2006, 04:47 PM   #2
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
As to to actual network throughput issue, is ALL of your hardware (both cards, switches, cables, etc.) rated at 1000 Mbps?

What about other traffic on the network?
 
Old 10-04-2006, 05:29 PM   #3
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,923

Rep: Reputation: 278Reputation: 278Reputation: 278
As jantman notes, the entire network infrastructure must be gigabit, not just one card. For instance, I use the gigabit adapters on my motherboards if they are there. But, my router, which is a linux firewall/dns server/nat/router box uses 100 base T cards. I use the gigabit ports built into the mobo on the clients, but that's just because it's easy. It isn't to get gigabit speed. Gigabit is 125 MB / s in theory, but it is difficult to sustain those speeds. 100 base T works for everything you could imagine. That's 100 Mb / s or 12.5 MB / s. It is even difficult to sustain that speed, which is 1/10 gigabit. Another thing is: Gigabit adapters will operate in gigabit or 100 base T, and most will even operate at 10 base T. You need to insure the entire network infrastructure is all running at gigabit, and then you might get sustained transfer rates of 50 MB / s. You need to use the proper cabling, also. If there are too many errors in the transmission, both gigabit adapters drop down to 100 base T because, although it is slower than gigabit, there won't be continuous errors, which then need to retransmitted. If you buy modern ethernet cabling, and the socket on the network card has metal shielding around it, you should not have a problem with cabling.
 
Old 10-05-2006, 02:07 AM   #4
Grafbak
Member
 
Registered: Jun 2003
Location: /dev/null
Distribution: Knoppix 3.3
Posts: 61

Original Poster
Rep: Reputation: 15
Unhappy

Thank you for your reply's.

I have two linux fileservers and two windows boxes, and they all have the same Gigabit card inside.
I am using 4 network cards of the same manufacturer and they are the same type.
I bought everything at once at one store. All products (cards and GB-switch) are from manufaturer Etech.

Card : GBP102 with rtl-8169
switch : SG0802

Between two windows boxes i have Gigabit comunication. I transferred 15 GB in 7 minutes from one XP box to the other, which is more than acceptable to me. I did this test to see if my network really was faster and indeed it was.

But now the linux box :

Once i got it working and got an ip adress i was able to drag files to it and download from it.
But the speed was no more than 100 mbit.

So i am doing something wrong.
But if you look at the diagnostics i pulled from linux than i can not see anything weird.
Everything seems to be in order.

Maybe my real question should be :

How do you install a network driver for linux into an opensource-GPL-Kernel while the driver is not opensource ?
I think i did it right but i'm not that knowledgeable.
 
  


Reply

Tags
adapter, network


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Debian 3.1r0a, Realtek RTL-8169 network controller slow on network mvr853 Linux - Networking 0 07-21-2006 09:20 PM
slow Intel 82540EM Gigabit card performance kscott121 Linux - Hardware 2 07-07-2006 11:37 AM
RTL-8169 Gigabit PCMCIA only goes at 100 half duplex gozza11 Linux - Networking 5 05-09-2006 08:41 AM
slow write performance with Gigabit depeche Linux - Networking 4 05-24-2005 05:18 AM
installing a RTL-8169 gigabit NexGen^MarK Linux - Hardware 1 09-15-2004 06:54 PM


All times are GMT -5. The time now is 09:59 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration