Realtek driver r8169 slow network speed

Bug #1275161 reported by Dmitry
54
This bug affects 12 people
Affects Status Importance Assigned to Milestone
linux (Gentoo Linux)
New
Undecided
Unassigned
linux (Ubuntu)
Opinion
Medium
Unassigned

Bug Description

Network speed variable, some sites not open or very slow (example: amazon.com).
Replace driver with r8168 from this http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=5&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false#2 not help.

ubuntu amd64 13.10 (also tested daily build 14.04 30 Jan 2014)
kernel 3.11.0-15-generic

lspci -nn | grep Ethernet
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
---
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: dem 1250 F.... pulseaudio
 /dev/snd/controlC1: dem 1250 F.... pulseaudio
 /dev/snd/pcmC1D0c: dem 1250 F...m pulseaudio
 /dev/snd/pcmC1D0p: dem 1250 F...m pulseaudio
CRDA: Error: [Errno 2] No such file or directory
CurrentDmesg: [ 712.730809] hda-intel 0000:00:1b.0: Unstable LPIB (19200 >= 1920); disabling LPIB delay counting
DistroRelease: Ubuntu 13.10
IwConfig: Error: [Errno 2] No such file or directory
MachineType: MSI MS-7817
MarkForUpload: True
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.11.0-15-generic root=UUID=2982e0ae-6485-4894-9306-01c72c340d13 ro
ProcVersionSignature: Ubuntu 3.11.0-15.25-generic 3.11.10
RelatedPackageVersions:
 linux-restricted-modules-3.11.0-15-generic N/A
 linux-backports-modules-3.11.0-15-generic N/A
 linux-firmware 1.116
RfKill: Error: [Errno 2] No such file or directory
Tags: saucy
Uname: Linux 3.11.0-15-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm audio cdrom dip lpadmin plugdev sambashare sudo video
dmi.bios.date: 06/20/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: V1.0
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: H81M-P33 (MS-7817)
dmi.board.vendor: MSI
dmi.board.version: 1.0
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: MSI
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrV1.0:bd06/20/2013:svnMSI:pnMS-7817:pvr1.0:rvnMSI:rnH81M-P33(MS-7817):rvr1.0:cvnMSI:ct3:cvr1.0:
dmi.product.name: MS-7817
dmi.product.version: 1.0
dmi.sys.vendor: MSI

Dmitry (fwebstudio)
tags: added: r8168 r8169 saucy trusty
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1275161

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
UbuntuAddicted (ubuntuaddictedubu) wrote :

i too am experiencing the same issue. some webpages don't ever fully load. very strange behavior. here's the results from running that apport command. Another tab did open in firefox and I DID ALLOW access to my launchpad account for this computer so I don't know why it didnt' do what it was suppose to do.

apport-collect 1275161
The authorization page:
 (https://launchpad.net/+authorize-token?oauth_token=DtzxxNHPnSk1wqbCq7M2&allow_permission=DESKTOP_INTEGRATION)
should be opening in your browser. Use your browser to authorize
this program to access Launchpad on your behalf.
Press any key to continue or wait (5) seconds...
Waiting to hear from Launchpad about your decision...

(process:8583): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
ERROR: connecting to Launchpad failed: Unable to find the server at launchpad.net
You can reset the credentials by removing the file "/home/xubuntu/.cache/apport/launchpad.credentials"

What other info can I provide?
lspci -nn | grep Ethernet
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)

uname -a
Linux xubuntu 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Dmitry (fwebstudio) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Dmitry (fwebstudio) wrote : BootDmesg.txt

apport information

Revision history for this message
Dmitry (fwebstudio) wrote : Lspci.txt

apport information

Revision history for this message
Dmitry (fwebstudio) wrote : Lsusb.txt

apport information

Revision history for this message
Dmitry (fwebstudio) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Dmitry (fwebstudio) wrote : ProcEnviron.txt

apport information

Revision history for this message
Dmitry (fwebstudio) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Dmitry (fwebstudio) wrote : ProcModules.txt

apport information

Revision history for this message
Dmitry (fwebstudio) wrote : PulseList.txt

apport information

Revision history for this message
Dmitry (fwebstudio) wrote : UdevDb.txt

apport information

Revision history for this message
Dmitry (fwebstudio) wrote : UdevLog.txt

apport information

Revision history for this message
Dmitry (fwebstudio) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Dmitry (fwebstudio) wrote :

UbuntuAddicted hit this bug affect you

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Did this issue occur in a previous version of Ubuntu, or is this a new issue?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.13 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14-rc1-trusty/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Dmitry (fwebstudio) wrote :

tested upstream kernel 3.14.0-031400rc1-generic, bug occur

Revision history for this message
Dmitry (fwebstudio) wrote :

seems bug leave, test anoter couple days and feedback

Revision history for this message
Dmitry (fwebstudio) wrote :

upstream kernel 3.14.0-031400rc1-generic have the same bug

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

This issue appears to be an upstream bug, since you tested the latest upstream kernel. Would it be possible for you to open an upstream bug report[0]? That will allow the upstream Developers to examine the issue, and may provide a quicker resolution to the bug.

Please follow the instructions on the wiki page[0]. The first step is to email the appropriate mailing list. If no response is received, then a bug may be opened on bugzilla.kernel.org.

Once this bug is reported upstream, please add the tag: 'kernel-bug-reported-upstream'.

[0] https://wiki.ubuntu.com/Bugs/Upstream/kernel

tags: added: kernel-bug-exists-upstream needs-bisect
Changed in linux (Ubuntu):
status: Confirmed → Triaged
Dmitry (fwebstudio)
tags: added: kernel-bug-reported-upstream
Revision history for this message
Andre (andre-mamelund) wrote :

I'm having the exact same problem, Internet being painfully unstable and slow. Running Ubuntu 13.10 amd64 and driver r8169 on 1000Mb/s. Just switched from Windows 7, didn't have any problems there.

Revision history for this message
Dmitry (fwebstudio) wrote :

hit "This bug affects you!", because this bug remains one man bug, and never solved, developers not answer, latest linux kernel 3.14 rc6 have this problem, i never buy any realtek network device, search show this is long years problem and always the same

Revision history for this message
Hans De Boo (hq2s) wrote :

I have a very similar problem, which I believe may be related. I have the RTL8111/8168/8411. Since I upgraded to 13.10 I'm noticing a drop in network speed. Installing the Realtek driver didn't help, nor other helpfull tips as disabling IPv6. When testing raw network speed from my Ubuntu to my file server I see speeds between 1,1 and 1,5Mb/s.

dd if=/dev/zero bs=50M count=1 | nc 192.168.1.85 1122
1+0 records gelezen
1+0 records geschreven
52428800 bytes (52 MB) gekopieerd, 49,6147 s, 1,1 MB/s

Other computers reach easily 50-80Mb/s. (als on the same cable). I haven't tested a rollback to 12.04 to check the actual networkspeed with the old version, or tried a clean install. I may do this to check if all other sources for this issue can be excluded.

Revision history for this message
Dmitry (fwebstudio) wrote :

tested 3.14.0-031400rc8-generic, bug present

Revision history for this message
Dmitry (fwebstudio) wrote :

tested 3.14-generic

Revision history for this message
derek dickerson (dickerson-derek) wrote :
Revision history for this message
Pyrrhon Lawdruid (lawdruid) wrote :
Download full text (3.2 KiB)

After spending 15 to 20 hours on this over the weekend, I'm stunned to report that in my case the problem was resolved by switching from CAT 5 to CAT 5e cables, a solution I dismissed as not worth trying when I first came across this suggestion from another 5 hours into my efforts. Here are my setup and symptoms. If anyone's interested in a particular log or report on my setup I'm willing to pass this along.

Bought a new Shuttle DS61 v. 1.1 with dual onboard RTL8111/8168/8411 PCI Express Gigabit Ethernet Controllers. Installed Ubuntu Gnome 14.04. The cables I replaced were only those between my desktop machine and desktop router (D-Link DIR 655), but I believe I'm running Cat 5e (or 6) from inside the wall to my Netgear internet router. (I'd been working with Ubuntu 12.04 on my laptop from this same location using the same cabling and routers for a wired connection for more than 6 months, without incident or problem.)

Didn't really notice any latency until I ran an update a day or two after my initial set up and noticed that the packages were lagging and some erroring out. But, merely inspecting the “edit connections” in Ubuntu, particularly the DHCP setting, resulted in a prompt completion of the update session, in the manner I've come to expect on my other Ubuntu based machines.

But, the problem persisted. My internet access was very slow, and at times reported no connection. Pinging addresses of other machines on my intranet showed the lan ports were working just fine for this purpose, just over 0.2 ms per attempt with no packet loss and no intermittent slowing. (I'm working on a website that's currently hosted internally and I had this automatically booting in a browser tab with another browser tab pointing to an external site throughout the many reboot attempts involved in working on this problem. The internal site typically came up promptly and seconds faster than the external site (which was google.com).) Pinging sites on the internet resulted in times of 1500 or greater and, on at least two test attempts, all packets were loss. This corresponded to my visual experience using my web based mail server. Lots of “still sending” instances and sporadic loss of connection.

I tried various fixes reported by others as resolving what seemed like the same or similar slow performance of the RTL 8111/8168 lan ports (e.g., changed the driver from r8169 to r8168, disabled IPv6, assigned static IP ports – I thought it was an internal network problem for a while – and a half dozen or more other suggestions I came across in my searches, and, for what it's worth, I'm still running the r8168 module under the “it ain't broke” theory). It was only after signing up for email on this bug report that I decided to switch the existing CAT 5 cables between these lanports and the Dlink. Plugging in the first of the 5e cables resulted in immediate resolution of the internet connection problem (I even noticed the activity lights on the lanport flickering more quickly on the one with the 5e than the one without). It's been up and running fabulously for about 48 hours so, with no small amount of trepidation, I'm calling my particular iteration of this problem s...

Read more...

Revision history for this message
Pyrrhon Lawdruid (lawdruid) wrote :

Further to #27 - So much for resolution. Browser speed is still terrific since switching to 5e cables, but I'd forgotten I'd disabled the HD Audio in the BIOS very early on in the hunt for a solution to the ethernet speed problem. A couple of hours ago I noticed no sound and re-enabled the HD Audio only to receive the same dismal ethernet speeds reported earlier. Disable the HD Audio in the BIOS, and ethernet performs like a champ. HD Audio was disabled through most of the adventures I had this past weekend so I still thing there's something to the 5e cabling. Sorry if this misled anyone.

Revision history for this message
Dmitry (fwebstudio) wrote :

my motherboard MSI H81M-P33, just update bios from version 1.0 to version 1.4, download from official http://www.msi.com/product/mb/H81MP33.html#/?div=BIOS, network work normal, but, i think test couple days and report there :-). ethernet driver standard r8169, also work with r8168 from realtek site.

unzip driver archive 7817v14.zip, copy to usb file E7817IMS.140 and update from bios through MFlash menu, choose "BIOS + ME".

Revision history for this message
Dmitry (fwebstudio) wrote :

update bios not help, bug remain, noticed total loss of the error that after updating the BIOS, change the driver, this only works the first time until shutdown computer, THIS IS MAGIC!!!!

Revision history for this message
eric.vdelst (eric-vdelst) wrote :

Since I upgraded ubuntu 14.04 from kernel 3.11 to kernel 3.13, I have lost my ethernet connection.
Reading the various forum, it seems there is something wrong with the macros _devinit and _devexit . But I am no expert.

Revision history for this message
Dmitry (fwebstudio) wrote :

3.11 kernel used in ubuntu 13.10, tested - have bug

Revision history for this message
Dmitry (fwebstudio) wrote :

log show error:
[ 0.594282] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[ 0.594289] r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
[ 0.600637] r8169 0000:02:00.0: irq 41 for MSI/MSI-X
[ 0.600788] r8169 0000:02:00.0 eth0: RTL8168g/8111g at 0xffffc9000064c000, d4:3d:7e:ed:43:7e, XID 0c000800 IRQ 41
[ 0.600790] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]

Revision history for this message
Dmitry (fwebstudio) wrote :

For now have another network card tp-link, issue the same, this is not driver, kernel even not use r8169 (or r8168) - lsmod | grep r81 - none. Because connected through router (netgear jwnr2000v2), but from windows is work fine, linux not. Direct cable connection work perfect.

Revision history for this message
Jah (thejar) wrote :

another one here.
made ubuntu forum post here asking others to test LAN speed:
http://ubuntuforums.org/showthread.php?t=2245203

killing lightgm resolves the problem and speed jumps to 12mb/s . But once back in GUI, problem returns.

Tested using Netcat and iperf, LAN speeds peek out at 1.2MB/s

Effected:
PC1
Desotop, Ram Page 3 Extreme motherboard:
Description: Ubuntu 14.04.1 LTS
Linux ubuntu 3.13.0-34-generic #60-Ubuntu SMP Wed Aug 13 15:45:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
network
       description: Ethernet interface
       product: 82567V-2 Gigabit Network Connection

LAPTOP 1
Description: Ubuntu 12.04.4 LTS
Linux user 3.11.0-26-generic #45~precise1-Ubuntu SMP Tue Jul 15 04:04:35 UTC 2014 i686 i686 i386 GNU/Linux

network
       description: Ethernet interface
       product: RTL8101E/RTL8102E PCI Express Fast Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.

ntel(R) PRO/1000 Network Driver - 3.1.0.2-NAPI

Ethernet controller [0200]: Intel Corporation 82567V-2 Gigabit Network Connection [8086:10ce]
 Subsystem: ASUSTeK Computer Inc. Device [1043:82d5]
 Kernel driver in use: e1000e

Updating driver does not help.

Revision history for this message
Dmitry (fwebstudio) wrote :

if someone use router, try turnoff IGMP option, restart router, turnon IGMP option (needed), maybe is router bug, but is known problem "MTU black hole" when in network path someone turn off IGMP and packets are lost, this is why some sites open, some not

Revision history for this message
Dmitry (fwebstudio) wrote :

after router update, make router reset, confiture router and all work perfect, is router bug

Changed in linux (Ubuntu):
status: Triaged → Opinion
Revision history for this message
sitro (chardron) wrote :

Same bug for me on linux the speed is 10Mb/s except that on Windows 8 (dual boot) the speed of the link is 100Mb/s.

What I did :
1/ change the module for the realtek module -> no change
2/ try the ethtool -s speed -> cannot advertise
3/ change the ethernet cord between my laptop and the wall -> immediatly the speed switchs to 100Mb/s (with the actual module realtek, I didn't reverse) . I did that many time to see the result : with one cord : 10Mb/s ; with the other one : 100Mb/s
this behavior is strange as it seems to me that on same laptop on windows 8 the speed anyway is 100Mb/s

Revision history for this message
sitro (chardron) wrote :

oups !
I made a mistake : the behaviour on Windows 8 is the same : with one cord there is an erratic speed (sometime 10 , sometime 100, most often 10) with the new one the speed is 100Mb/s.

Revision history for this message
Rodrigo Araújo Cavalcante (imbika) wrote :

Is the dirver r8169 bug still persisting? On the realtek site the solution is to run the script: 'autorun.sh' and switch to the r8168 driver.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.