* 8169 driver with NetGear GA511 card.
@ 2004-10-27 23:18 Ben Greear
2004-10-28 1:58 ` Ben Greear
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Ben Greear @ 2004-10-27 23:18 UTC (permalink / raw)
To: 'netdev@oss.sgi.com'
I got one of the new GigE cardbus nics today, and it just started
working when I put it in (uses 8169 chipset evidently). How
refreshing!
I tried stressing it, and it can handle about 30Mbps bi-directional
(1514 byte pkts). I was hoping for better...but not too bad.
A bit later, my keyboard just stopped working. The scratch pad
and USB mouse continued to work. System wouldn't shut down all
the way either...forced fsck, system is back online.
The keyboard hang is reproducible...seems to happen as soon as I insert
the NIC.
Kernel is 2.6.9 + my networking patches, compiled for pentium-M
NAPI for 8169 is enabled.
hardware is nx5000 laptop
My thanks to the 8169 driver writer(s). I will continue to debug
this, and will be happy to try any suggestions for improving performance
and/or stability of this NIC.
Take it easy,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 8169 driver with NetGear GA511 card.
2004-10-27 23:18 8169 driver with NetGear GA511 card Ben Greear
@ 2004-10-28 1:58 ` Ben Greear
2004-10-28 7:48 ` Francois Romieu
2004-10-28 16:45 ` 8169 driver with NetGear GA511 card Jon Mason
2 siblings, 0 replies; 9+ messages in thread
From: Ben Greear @ 2004-10-28 1:58 UTC (permalink / raw)
To: 'netdev@oss.sgi.com'
Ben Greear wrote:
> Kernel is 2.6.9 + my networking patches, compiled for pentium-M
> NAPI for 8169 is enabled.
>
> hardware is nx5000 laptop
I recompiled w/out NAPI and no more problems, though performance is
horrible (about 5Mbps bi-directional).
If the developer/maintainer could use one of these cardbus NICs, I'm
willing to donate one to help further development and stability.
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 8169 driver with NetGear GA511 card.
2004-10-27 23:18 8169 driver with NetGear GA511 card Ben Greear
2004-10-28 1:58 ` Ben Greear
@ 2004-10-28 7:48 ` Francois Romieu
2004-10-28 17:47 ` Ben Greear
2004-10-28 22:00 ` [PATCH] r8169 tx checksuming on by default Jon Mason
2004-10-28 16:45 ` 8169 driver with NetGear GA511 card Jon Mason
2 siblings, 2 replies; 9+ messages in thread
From: Francois Romieu @ 2004-10-28 7:48 UTC (permalink / raw)
To: Ben Greear; +Cc: 'netdev@oss.sgi.com'
Ben Greear <greearb@candelatech.com> :
[...]
> I tried stressing it, and it can handle about 30Mbps bi-directional
> (1514 byte pkts). I was hoping for better...but not too bad.
There is a direction for which a 2x factor has been reported.
It does not look like a completely dysfunctional setup.
[...]
> Kernel is 2.6.9 + my networking patches, compiled for pentium-M
> NAPI for 8169 is enabled.
>
> hardware is nx5000 laptop
>
> My thanks to the 8169 driver writer(s). I will continue to debug
Many people help.
> this, and will be happy to try any suggestions for improving performance
> and/or stability of this NIC.
The r8169 in -mm and in -netdev includes some extra buzzword-compliant
features (TX csum/SG and TSO mainly). The changes are isolated in a
single patch against 2.6.9 available at:
http://www.fr.zoreil.com/people/francois/misc/20041020-2.6.9-r8169.c-test.patch
I will not claim it is as stable as vanilla 2.6.9 should be.
The frequency of requests for jumbo frames went higher lately ("Realtek
driver does it"). There is some code I need to test before it is pushed to
-mm.
Btw:
[...]
> I recompiled w/out NAPI and no more problems, though performance is
> horrible (about 5Mbps bi-directional).
Please send the usuals 'lspci -vx' + /proc/interrupts contents during
activity + complete dmesg + short description of the generated traffic.
I will hardly dissect it before the week end but there is a problem. :o(
> If the developer/maintainer could use one of these cardbus NICs, I'm
> willing to donate one to help further development and stability.
I work with the plain PCI version of the GA 511 but I can use a laptop
for testing. Please contact me offline if you can send an adapter and
accept euro.
--
Ueimor
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 8169 driver with NetGear GA511 card.
2004-10-27 23:18 8169 driver with NetGear GA511 card Ben Greear
2004-10-28 1:58 ` Ben Greear
2004-10-28 7:48 ` Francois Romieu
@ 2004-10-28 16:45 ` Jon Mason
2004-10-28 16:52 ` Ben Greear
2 siblings, 1 reply; 9+ messages in thread
From: Jon Mason @ 2004-10-28 16:45 UTC (permalink / raw)
To: Ben Greear; +Cc: 'netdev@oss.sgi.com'
On Wednesday 27 October 2004 06:18 pm, Ben Greear wrote:
> A bit later, my keyboard just stopped working. The scratch pad
> and USB mouse continued to work. System wouldn't shut down all
> the way either...forced fsck, system is back online.
I was seeing similar behavior with high workloads and TSO. Can you confirm
that you are running with TSO on?
--
Jon Mason
jdmason@us.ibm.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 8169 driver with NetGear GA511 card.
2004-10-28 16:45 ` 8169 driver with NetGear GA511 card Jon Mason
@ 2004-10-28 16:52 ` Ben Greear
0 siblings, 0 replies; 9+ messages in thread
From: Ben Greear @ 2004-10-28 16:52 UTC (permalink / raw)
To: Jon Mason; +Cc: 'netdev@oss.sgi.com'
Jon Mason wrote:
> On Wednesday 27 October 2004 06:18 pm, Ben Greear wrote:
>
>>A bit later, my keyboard just stopped working. The scratch pad
>>and USB mouse continued to work. System wouldn't shut down all
>>the way either...forced fsck, system is back online.
>
>
> I was seeing similar behavior with high workloads and TSO. Can you confirm
> that you are running with TSO on?
I'll have to check, but I do know that the traffic I was sending was
at the ethernet frame level and it was UDP packets.
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 8169 driver with NetGear GA511 card.
2004-10-28 7:48 ` Francois Romieu
@ 2004-10-28 17:47 ` Ben Greear
2004-10-28 22:37 ` Francois Romieu
2004-10-28 22:00 ` [PATCH] r8169 tx checksuming on by default Jon Mason
1 sibling, 1 reply; 9+ messages in thread
From: Ben Greear @ 2004-10-28 17:47 UTC (permalink / raw)
To: Francois Romieu; +Cc: 'netdev@oss.sgi.com'
Francois Romieu wrote:
> The r8169 in -mm and in -netdev includes some extra buzzword-compliant
> features (TX csum/SG and TSO mainly). The changes are isolated in a
> single patch against 2.6.9 available at:
> http://www.fr.zoreil.com/people/francois/misc/20041020-2.6.9-r8169.c-test.patch
>
> I will not claim it is as stable as vanilla 2.6.9 should be.
I'm running tests at the ethernet frame (skb) level, so I would not
expect the IP offload to help much.
Do you have any performance numbers for your 8169 cards for me to
compare against?
> Please send the usuals 'lspci -vx' + /proc/interrupts contents during
> activity + complete dmesg + short description of the generated traffic.
> I will hardly dissect it before the week end but there is a problem. :o(
I'll get this in a bit, as I have locked up the keyboard again. This time,
I was still using the non-NAPI code which had run over-night at around 5Mbps...
I tried a different network setup, and noticed that the 8169 was only
negotiating 10bt/HD. That would explain the poor performance numbers.
The NIC was connected to a BCM5705M when I noticed this, though it had
been connected to an e1000 earlier.
I tried forcing both NICs to 100bt/FD. The BCM would force to that speed,
but the 8169 would only force to 100bt/HD. While attempting to change them
back to auto-negotiate, I noticed that the keyboard had quit working...
With regard to the BCM, it is interesting in that ethtool reports that it
supports only up to 100bt/FD, but it advertises 1000bt/FD.
The wierd advertise and negotiation stuff could be at least partly my
fault as I have a program that manipulates these settings from default.
I will continue to play with this later this evening...
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH] r8169 tx checksuming on by default
2004-10-28 7:48 ` Francois Romieu
2004-10-28 17:47 ` Ben Greear
@ 2004-10-28 22:00 ` Jon Mason
1 sibling, 0 replies; 9+ messages in thread
From: Jon Mason @ 2004-10-28 22:00 UTC (permalink / raw)
To: Francois Romieu; +Cc: 'netdev@oss.sgi.com'
The tx checksumming and scatter-gather in r8169 runs well. Below is a trivial
patch to turn them on by default.
--- r8169.c.orig 2004-10-28 15:02:07.000000000 -0500
+++ r8169.c 2004-10-28 15:21:03.000000000 -0500
@@ -1337,6 +1337,8 @@ rtl8169_init_one(struct pci_dev *pdev, c
dev->poll_controller = rtl8169_netpoll;
#endif
+ dev->features |= NETIF_F_IP_CSUM | NETIF_F_SG;
+
tp->intr_mask = 0xffff;
tp->pci_dev = pdev;
tp->mmio_addr = ioaddr;
--
Jon Mason
jdmason@us.ibm.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 8169 driver with NetGear GA511 card.
2004-10-28 17:47 ` Ben Greear
@ 2004-10-28 22:37 ` Francois Romieu
2004-10-28 22:49 ` Ben Greear
0 siblings, 1 reply; 9+ messages in thread
From: Francois Romieu @ 2004-10-28 22:37 UTC (permalink / raw)
To: Ben Greear; +Cc: 'netdev@oss.sgi.com'
Ben Greear <greearb@candelatech.com> :
[...]
> I'm running tests at the ethernet frame (skb) level, so I would not
> expect the IP offload to help much.
>
> Do you have any performance numbers for your 8169 cards for me to
> compare against?
Gross numbers:
- with a receiving amd64, nttcp should saturate the GigaE link;
- halved bandwidth for Tx on the same setup. Untested since changes in -mm;
- 10% cpu on a 100bt link;
- TSO saves 5~7% of the cpu when it can be used.
saturated
- old host system (PII class): on 100bt, napi chews 4x10kpps (icmp) without
significant load.
[...]
> I'll get this in a bit, as I have locked up the keyboard again. This time,
> I was still using the non-NAPI code which had run over-night at around
> 5Mbps...
>
> I tried a different network setup, and noticed that the 8169 was only
> negotiating 10bt/HD. That would explain the poor performance numbers.
Call me dense but... Are the 5Mbps below in the same unit as the 30Mbps
in your previous message (are they bytes or bits) ? If yes something is
badly broken.
--
Ueimor
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 8169 driver with NetGear GA511 card.
2004-10-28 22:37 ` Francois Romieu
@ 2004-10-28 22:49 ` Ben Greear
0 siblings, 0 replies; 9+ messages in thread
From: Ben Greear @ 2004-10-28 22:49 UTC (permalink / raw)
To: Francois Romieu; +Cc: 'netdev@oss.sgi.com'
Francois Romieu wrote:
> Ben Greear <greearb@candelatech.com> :
> [...]
>
>>I'm running tests at the ethernet frame (skb) level, so I would not
>>expect the IP offload to help much.
>>
>>Do you have any performance numbers for your 8169 cards for me to
>>compare against?
>
>
> Gross numbers:
> - with a receiving amd64, nttcp should saturate the GigaE link;
> - halved bandwidth for Tx on the same setup. Untested since changes in -mm;
> - 10% cpu on a 100bt link;
> - TSO saves 5~7% of the cpu when it can be used.
Cool, I am glad to know the chipset can handle it at least...
>>I'll get this in a bit, as I have locked up the keyboard again. This time,
>>I was still using the non-NAPI code which had run over-night at around
>>5Mbps...
>>
>>I tried a different network setup, and noticed that the 8169 was only
>>negotiating 10bt/HD. That would explain the poor performance numbers.
>
> Call me dense but... Are the 5Mbps below in the same unit as the 30Mbps
> in your previous message (are they bytes or bits) ? If yes something is
> badly broken.
Yes, but I think now the problem is that it was stuck at 10bt/HD for whatever
reason. There seems to be a way to lock the keyboard by trying to make the
NIC change it's negotiate settings. I am going to try to track down exactly
how this can be reproduced with minimum number of steps...
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-10-28 22:49 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-27 23:18 8169 driver with NetGear GA511 card Ben Greear
2004-10-28 1:58 ` Ben Greear
2004-10-28 7:48 ` Francois Romieu
2004-10-28 17:47 ` Ben Greear
2004-10-28 22:37 ` Francois Romieu
2004-10-28 22:49 ` Ben Greear
2004-10-28 22:00 ` [PATCH] r8169 tx checksuming on by default Jon Mason
2004-10-28 16:45 ` 8169 driver with NetGear GA511 card Jon Mason
2004-10-28 16:52 ` Ben Greear
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).