LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-11-2013, 11:11 AM   #1
Luno
LQ Newbie
 
Registered: Jan 2013
Posts: 15

Rep: Reputation: Disabled
Realtek 8139 only transmits ~30Mbit


Hi,

I have a weird problem with a 10/100Mbit-Realtek-NIC (Chip on the card reads "8139D", lspci reports "RTL-8139/8139C/8139C+")

If used in combination with a Supermicro X7SBE, the network card receives about 100Mbit/s, but is only able to transmit around 30Mbit/s. The NIC reports Full Duplex 100Mbit/s.

I have a few of these available for testing, and this behavior is reproducible - but only if used together. Any other NIC (other Realtek, VIA, Intel) will work just fine, as does the 8139D if placed on another board.

What I've done so far:
  1. Looked into IRQ-related stuff. Doesn't seem to be an issue.
  2. Upgraded the BIOS - no change.
  3. Tried tweaking with ethtool. The card only supports very basic stuff like autoneg on/off and fixed speed settings. Changed these settings around a bit - no effect.
  4. Changing PCI parameters. Changing the PCI-Slot. Nothing.
  5. Tried different Kernels / Debian Linux Versions. Nope. (Currently on Squeeze with 3.2.0 bpo)
  6. Tried to use 8139cp instead of 8139too. Didn't work, 8139cp doesn't grab the NIC.

Multiple reboots and smashing my head on the keyboard also didn't help.

I'm at a bit of a loss here, any hints appreciated :>.
 
Old 07-11-2013, 05:00 PM   #2
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349

Rep: Reputation: Disabled
not an answer, but have you tried to adjust the settings of the card using mii-tool? I vaguely remember having to use it instead of ethtool with some realtek chipsets. also, have you done a trace with tcpdump to maybe see if packets are getting dropped at the card?
 
Old 07-11-2013, 05:28 PM   #3
Luno
LQ Newbie
 
Registered: Jan 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
also, have you done a trace with tcpdump to maybe see if packets are getting dropped at the card?
No errors or funny stuff.

Quote:
have you tried to adjust the settings of the card using mii-tool?
Nope. Read something about mii-tool being deprecated, so I didn't try. Should I?
 
Old 07-11-2013, 05:29 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,333

Rep: Reputation: Disabled
It could be hardware related. Does ifconfig report errors or dropped frames? If the card is connected to a port on a managed switch, check the port statistics for errors.

This may sound silly, but have you tried replacing the network cable? Cable defects are surprisingly common.
 
Old 07-11-2013, 10:02 PM   #5
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349

Rep: Reputation: Disabled
Quote:
Originally Posted by Luno View Post


Nope. Read something about mii-tool being deprecated, so I didn't try. Should I?
i've had to use it on older cards that ethtool wouldn't work with. specifically a linksys lne100tx from ~2000.
 
Old 07-12-2013, 04:53 AM   #6
Luno
LQ Newbie
 
Registered: Jan 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
This may sound silly, but have you tried replacing the network cable? Cable defects are surprisingly common.
Cable is fine.

Quote:
Originally Posted by psycroptic View Post
i've had to use it on older cards that ethtool wouldn't work with. specifically a linksys lne100tx from ~2000.
mii-tool doesn't have a lot of options though. I could only do what I was already able to do with ethtool.

Quote:
It could be hardware related. Does ifconfig report errors or dropped frames? If the card is connected to a port on a managed switch, check the port statistics for errors.
Everything looks fine. No errors. Got some overruns once, but they weren't reproducible.
 
Old 07-12-2013, 05:06 AM   #7
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,333

Rep: Reputation: Disabled
Quote:
Originally Posted by Luno View Post
Everything looks fine. No errors. Got some overruns once, but they weren't reproducible.
No errors on the switch side either? Since the problem is related to outbound traffic any L1/L2 errors would be recorded at that end.

What are you using to test throughput? iperf?

Does CPU utilization increase noticeably during tests?
 
Old 07-12-2013, 05:25 AM   #8
Luno
LQ Newbie
 
Registered: Jan 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
No errors on the switch side either? Since the problem is related to outbound traffic any L1/L2 errors would be recorded at that end.
Didn't monitor the other side (currently just a laptop via crossover) yet; will do later and look for errors there.

Quote:
What are you using to test throughput? iperf?
Nope, just copying random data with scp.

Quote:
Does CPU utilization increase noticeably during tests?
Almost no change in cpu load when copying.
 
Old 07-12-2013, 05:32 AM   #9
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,333

Rep: Reputation: Disabled
Quote:
Originally Posted by Luno View Post
Nope, just copying random data with scp.
Since you're only seeing poor performance with this particular brand and type of NIC, it clearly is related to the hardware or the driver, or how those interact with other components.

Still, it would be interesting to see how it performs with iperf or any similar testing tool, since that kind of test basically excludes absolutely all other hardware, subsystems and drivers as possible problem sources.
 
Old 07-12-2013, 08:30 AM   #10
Luno
LQ Newbie
 
Registered: Jan 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
Still, it would be interesting to see how it performs with iperf or any similar testing tool, since that kind of test basically excludes absolutely all other hardware, subsystems and drivers as possible problem sources.
iperf confirmed the measured data rates. RX ~95 Mbit, TX ~30Mbit

A -vv tcpdump on the receiving side showed something interesting though: An unusually high amount of incorrect TCP checksums. Currently googling possible reasons.
 
Old 07-12-2013, 10:06 AM   #11
Luno
LQ Newbie
 
Registered: Jan 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
Sooo... Some suggest turning checksumming off.

Code:
$ ethtool --show-offload  eth0
Offload parameters for eth0:
rx-checksumming: on
tx-checksumming: on
scatter-gather: on
tcp-segmentation-offload: on
udp-fragmentation-offload: off
generic-segmentation-offload: on
generic-receive-offload: off
large-receive-offload: off
ntuple-filters: off
receive-hashing: off
Problem: I get an "operation not supported". As posted before, ethtool does have many options, but the Realtek NIC supports only the really basic stuff. How can I change these parameters?
 
  


Reply


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
Realtek 8139 - 10Mbit slano Linux - Networking 4 10-03-2003 05:52 AM
8139 realtek jakublgz Linux - Hardware 3 04-11-2003 04:48 PM
realtek 8139 poortl9109 Linux - Hardware 6 12-18-2002 02:39 PM
Realtek 8139 esteeven Linux - Hardware 10 05-29-2002 05:53 AM
Realtek 8139 SirKalten Linux - Networking 3 02-19-2002 09:02 PM

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

All times are GMT -5. The time now is 07:18 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