Bug 120262

Summary: slow outbound performance of the r8169 driver
Product: Red Hat Enterprise Linux 3 Reporter: Bastien Nocera <bnocera>
Component: kernelAssignee: John W. Linville <linville>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: petrides, riel, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-20 20:55:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 118637, 123574    
Attachments:
Description Flags
patch for TX IRQ handling
none
r8169-1.4-patch
none
r8169-backport.patch none

Description Bastien Nocera 2004-04-07 13:38:27 UTC
The problem is similar to:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=117691

With /home/users/ being an NFS share:
# time dd if=/dev/zero of=/home/users/tmp/testfile_wr bs=16k count=16384
16384+0 enregistrements lus.
16384+0 enregistrements ecrits.

real    2m0.944s
user    0m0.010s
sys     0m0.660s

# time dd if=/home/users/tmp/testfile_rd of=/dev/null bs=16k
16384+0 enregistrements lus.
16384+0 enregistrements ecrits.

real    0m26.131s
user    0m0.020s
sys     0m0.300s

Using another network card (Realtek 8139) shows decent outbound speed
(around 36 seconds with the 8139 card).
The machine is on a 10/100 network, with the cards set at 100Mbps.

This is with kernel 2.4.21-9.EL and 2.4.21-9.0.1.EL

Comment 1 Bastien Nocera 2004-04-08 09:55:54 UTC
Created attachment 99232 [details]
patch for TX IRQ handling

Patch provided by the customer, Olivier Lepape <ol>

Comment 2 Don Howard 2004-04-28 22:24:21 UTC
I can confirm that the above patch builds against the latest RHEL 
devel kernel 2.4.21-14.   

Comment 3 Don Howard 2004-04-28 22:42:53 UTC
Also, the customer's patch is is very similar to what is in current 
upstream 2.4. 

Comment 5 Bastien Nocera 2004-05-14 16:08:46 UTC
Created attachment 100228 [details]
r8169-1.4-patch

Updated patch, fixes a potential deadlock.

Comment 8 John W. Linville 2004-06-16 19:27:57 UTC
Created attachment 101195 [details]
r8169-backport.patch

Backport from upstream 2.4.27-pre5 kernel...

Comment 12 John W. Linville 2004-06-25 14:29:41 UTC
Testing w/ backported driver shows greatly improved results here...

/home/devel/linville
[dhcp59-161]:> time dd if=/dev/zero of=testfile_wr bs=16k count=16386
16386+0 records in
16386+0 records out

real    0m23.320s
user    0m0.030s
sys     0m0.450s

/home/devel/linville
[dhcp59-161]:> time dd if=testfile_rd of=/dev/null bs=16k
16386+0 records in
16386+0 records out

real    0m9.217s
user    0m0.020s
sys     0m0.100s


Comment 16 Ernie Petrides 2004-08-31 04:11:18 UTC
A fix for this problem has just been committed to the RHEL3 U4
patch pool this evening (in kernel version 2.4.21-20.1.EL).


Comment 17 John Flanagan 2004-12-20 20:55:01 UTC
An errata has been issued which should help the problem 
described in this bug report. This report is therefore being 
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, 
please follow the link below. You may reopen this bug report 
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2004-550.html