Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread David S. Miller
From: Eric Dumazet <[EMAIL PROTECTED]> Date: Thu, 08 Dec 2005 04:47:05 +0100 > #4#5 as proposed in the patch can not be a win > > + prefetch(next_skb); > + prefetch(next_skb->data - NET_IP_ALIGN); > > because at the time #5 is done, the CPU dont have in its cache next_skb

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread Eric Dumazet
Jesse Brandeburg a écrit : On Wed, 7 Dec 2005, David S. Miller wrote: > The different between the cases was not significant and the > prefetching cases were better than no prefetching. Again, still no > detriment to performance. I still think what e1000 is doing is way too aggressive. I know

System hang with X6DVA-EG2 motherboard and dual-port Intel pro/1000 NIC in PCI slot 5.

2005-12-07 Thread Ben Greear
I believe this is a hardware bug, but super-micro is being slow to respond... I have tried various different kernels based around an FC2 system, and all of them hang when I have a dual port Intel pro/1000 NIC in slot 5. Slot 6 works, and a single port NIC in slot 5 works. I tried two different

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread Eric Dumazet
John Ronciak a écrit : On 12/7/05, David S. Miller <[EMAIL PROTECTED]> wrote: Keyword, "this box". We don't disagree and never have with this. It's why we were asking the question of find us a case where the prefetch shows a detriment to performance. I think Jesse's data and recommendation

Re: Broadcom 43xx first results

2005-12-07 Thread Jeff Garzik
Michael Wu wrote: The softmac code that is still in adm8211 is actually based on an early version of the softmac code that Jouni made for Devicescape. The Devicescape code does much more useful stuff than the code currently in the kernel. Sure, I can and have been porting adm8211 to the new ker

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread David S. Miller
From: John Ronciak <[EMAIL PROTECTED]> Date: Wed, 7 Dec 2005 16:09:21 -0800 > On 12/7/05, David S. Miller <[EMAIL PROTECTED]> wrote: > > I think Jesse's data and recommendation of only keeping the #1, #2 > and #5 prefetches seem like the right thing to do with data to back > it up. It also goes a

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread John Ronciak
On 12/7/05, David S. Miller <[EMAIL PROTECTED]> wrote: > Keyword, "this box". We don't disagree and never have with this. It's why we were asking the question of find us a case where the prefetch shows a detriment to performance. I think Jesse's data and recommendation of only keeping the #1, #2

Re: [PATCH] core: add RFC2863 operstate

2005-12-07 Thread jamal
On Thu, 2005-08-12 at 00:13 +0100, Stefan Rompf wrote: > It is the result of our long discussion. However I must admit that it > represents what Jamal and I agreed on with compromises towards Krzysztof, but > Thomas and Krzysztof still disagree with some parts. Anyway I think it should > be app

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread David S. Miller
From: jamal <[EMAIL PROTECTED]> Date: Wed, 07 Dec 2005 18:50:03 -0500 > ok, sorry this stuck in my mind and i had to go back and find this > email. > What Dave explained in terms of accounting makes sense - and there could > be a relationship with what you are saying with UDP. or maybe not ;-> Th

Re: Broadcom 43xx first results

2005-12-07 Thread Michael Wu
On Monday 05 December 2005 14:31, Jiri Benc wrote: > > And Joseph & > > friends are writing a module to support softmac cards in that framework, > > which is one of the most urgently needed things right now, because all > > the existing softmac frameworks don't work with that code. > > And authors

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread David S. Miller
From: Jesse Brandeburg <[EMAIL PROTECTED]> Date: Wed, 7 Dec 2005 15:06:04 -0800 (Pacific Standard Time) > in no case did the prefetch hurt anything on this box. Keyword, "this box". - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] M

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread jamal
On Wed, 2005-07-12 at 13:47 -0800, John Ronciak wrote: > On 12/7/05, David S. Miller <[EMAIL PROTECTED]> wrote: > > > Regardless of the decision, it's incorrect to point out e1000 > > specifically as many other Linux networking drivers do copybreak too > > and I've always public advocated for copy

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread jamal
On Wed, 2005-07-12 at 15:06 -0800, Jesse Brandeburg wrote: > On Wed, 7 Dec 2005, David S. Miller wrote: [..] > Okay, so I tested with just pktgen sending to a machine with a PCI Express > Intel 82571 server adapter. The stack is just discarding the data, no > routing. > Where are you discardi

[PATCH] vlan: translate IF_OPER_DORMANT to netif_dormant_on()

2005-12-07 Thread Stefan Rompf
Hi David, this patch adds support to the VLAN driver to translate IF_OPER_DORMANT of the underlying device to netif_dormant_on(). Beside clean state forwarding, this allows running independant userspace supplicants on both the real device and the stacked VLAN. It depends on my RFC2863 patch. P

[PATCH] core: add RFC2863 operstate

2005-12-07 Thread Stefan Rompf
Hi David, this patch adds a dormant flag to network devices, RFC2863 operstate derived from these flags and possibility for userspace interaction. It allows drivers to signal that a device is unusable for user traffic without disabling queueing (and therefore the possibility for protocol establ

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread David S. Miller
From: Grant Grundler <[EMAIL PROTECTED]> Date: Wed, 7 Dec 2005 16:01:50 -0700 > I would argue the other way around. copybreak would stall and hurt > small packet routing performance if there was no prefetching. > With agressive prefetching, copybreak takes advantage of data that > is already in fl

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread Jesse Brandeburg
On Wed, 7 Dec 2005, David S. Miller wrote: > The different between the cases was not significant and the > prefetching cases were better than no prefetching. Again, still no > detriment to performance. I still think what e1000 is doing is way too aggressive. I know of at least one platform, sp

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread jamal
On Wed, 2005-07-12 at 14:11 -0800, David S. Miller wrote: > From: Eric Dumazet <[EMAIL PROTECTED]> > Date: Wed, 07 Dec 2005 23:04:04 +0100 > > > Another try could be to do some benchmarks about NET_IP_ALIGN being a valid > > optimization nowadays : > > Maybe setting it to 0 in e1000 driver could

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread jamal
On Wed, 2005-07-12 at 14:09 -0800, David S. Miller wrote: > From: John Ronciak <[EMAIL PROTECTED]> > Date: Wed, 7 Dec 2005 13:56:29 -0800 > > > The different between the cases was not significant and the > > prefetching cases were better than no prefetching. Again, still no > > detriment to perfo

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread Grant Grundler
On Wed, Dec 07, 2005 at 02:17:16PM -0500, jamal wrote: ... > Note, however that as soon as i turn copybreak off, the numbers go > down ;-> > > Now for some obtuse theory as to why this happens: > I think the reason that prefetch + copybreak together have higher > numbers is because the copybreak c

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread David S. Miller
From: John Ronciak <[EMAIL PROTECTED]> Date: Wed, 7 Dec 2005 13:56:29 -0800 > The different between the cases was not significant and the > prefetching cases were better than no prefetching. Again, still no > detriment to performance. I still think what e1000 is doing is way too aggressive. I k

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread David S. Miller
From: Eric Dumazet <[EMAIL PROTECTED]> Date: Wed, 07 Dec 2005 23:04:04 +0100 > Another try could be to do some benchmarks about NET_IP_ALIGN being a valid > optimization nowadays : > Maybe setting it to 0 in e1000 driver could give better results. > Could somebody give it a try ? NET_IP_ALIGN is

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread Eric Dumazet
David S. Miller a écrit : From: jamal <[EMAIL PROTECTED]> Date: Wed, 07 Dec 2005 16:37:10 -0500 I think there is value for prefetch - just not the way the current patch has it. Something less adventorous as suggested by Robert would make a lot more sense. Looking at the e1000 patch in quest

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread John Ronciak
On 12/7/05, jamal <[EMAIL PROTECTED]> wrote: > On the prefetch, i think would you agree now that it is problematic? Sorry, I don't agree. > I just showed that if i changed the cycle of execution between the > moment the prefecth gets issued to the moment the data gets used we get > different perf

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread David S. Miller
From: jamal <[EMAIL PROTECTED]> Date: Wed, 07 Dec 2005 16:37:10 -0500 > I think there is value for prefetch - just not the way the current patch > has it. Something less adventorous as suggested by Robert would make a > lot more sense. Looking at the e1000 patch in question again, it may be doing

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread John Ronciak
On 12/7/05, David S. Miller <[EMAIL PROTECTED]> wrote: > Regardless of the decision, it's incorrect to point out e1000 > specifically as many other Linux networking drivers do copybreak too > and I've always public advocated for copybreak to be used by drivers > due to the socket buffering issue.

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread jamal
On Wed, 2005-07-12 at 13:06 -0800, David S. Miller wrote: > From: jamal <[EMAIL PROTECTED]> > Date: Wed, 07 Dec 2005 15:23:57 -0500 > > > I am no longer sure that your results on copybreak for host bound > > packets can be trusted anymore. All your copybreak was doing was making > > the prefetch l

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread jamal
On Wed, 2005-07-12 at 21:59 +0100, Eric Dumazet wrote: > jamal a écrit : > > > > Eric Dumazet <[EMAIL PROTECTED]> theorized there may be some value in > > copybreak if you are host bound. I only seen it as an unnecessary pain > > really. > > > > In my case, my production servers are usually ra

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread jamal
On Wed, 2005-07-12 at 21:50 +0100, Robert Olsson wrote: > jamal writes: > > > Kernel 2.6.14 + e1000-6.2.15 prefetch off copybreak off: 451Kpps > > kernel 2.6.14 + e1000-6.2.15 prefetch off copybreak on: 450Kpps > > This pretty close to the results I got today in the single flow test > I even

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread Robert Olsson
John Ronciak writes: > > If so, it sounds like copybreak should be disabled by default, and/or a > > runtime switched added for it. > I wouldn't say "fall over". With small packet only tests (the ones > being run for this exercise) _all_ packets are being copied which is > why when the syst

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread David S. Miller
From: jamal <[EMAIL PROTECTED]> Date: Wed, 07 Dec 2005 15:23:57 -0500 > I am no longer sure that your results on copybreak for host bound > packets can be trusted anymore. All your copybreak was doing was making > the prefetch look good according to my tests. For the host bound case, copybreak is

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread David S. Miller
From: John Ronciak <[EMAIL PROTECTED]> Date: Wed, 7 Dec 2005 11:48:46 -0800 > Copybreak probably shouldn't be used in routing use cases. I think even this is arguable, routers route a lot more than small 64-byte frames. Unfortunately, that is what everyone uses for packet rate tests. :-/ Assumi

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread David S. Miller
From: jamal <[EMAIL PROTECTED]> Date: Wed, 07 Dec 2005 14:44:53 -0500 > so thats conclusion one. Copybreak oughta be off by default. People > who think it is useful can turn it on. I disagree, the socket buffering side effects of non-copybreak are severe especially during loss handling where it i

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread David S. Miller
From: Jeff Garzik <[EMAIL PROTECTED]> Date: Wed, 07 Dec 2005 14:27:50 -0500 > If so, it sounds like copybreak should be disabled by default, and/or a > runtime switched added for it. This logic applies to all drivers, though. If you're cpu loaded, then yes copying the packets will require more

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread Eric Dumazet
jamal a écrit : On Wed, 2005-07-12 at 11:48 -0800, John Ronciak wrote: On 12/7/05, Jeff Garzik <[EMAIL PROTECTED]> wrote: So... under load, copybreak causes e1000 to fall over more rapidly than no-copybreak? If so, it sounds like copybreak should be disabled by default, and/or a runtime swi

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread Robert Olsson
jamal writes: > Kernel 2.6.14 + e1000-6.2.15 prefetch off copybreak off: 451Kpps > kernel 2.6.14 + e1000-6.2.15 prefetch off copybreak on: 450Kpps This pretty close to the results I got today in the single flow test I even noticed a little win w. the copy-break on. > Kernel 2.6.14 + e1000-

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread jamal
On Wed, 2005-07-12 at 11:48 -0800, John Ronciak wrote: > On 12/7/05, Jeff Garzik <[EMAIL PROTECTED]> wrote: > > > So... under load, copybreak causes e1000 to fall over more rapidly than > > no-copybreak? > > > > If so, it sounds like copybreak should be disabled by default, and/or a > > runtime sw

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread John Ronciak
On 12/7/05, Jeff Garzik <[EMAIL PROTECTED]> wrote: > So... under load, copybreak causes e1000 to fall over more rapidly than > no-copybreak? > > If so, it sounds like copybreak should be disabled by default, and/or a > runtime switched added for it. I wouldn't say "fall over". With small packet o

Re: Broadcom 43xx first results

2005-12-07 Thread Jouni Malinen
On Wed, Dec 07, 2005 at 11:16:22AM -0800, Jean Tourrilhes wrote: > Well, the burning question is : Is it possible to include your > Atheros driver in the Linux kernel ? Meaning, will it be released, and > will it contain a binary blob ? If that were possible, it would have been released wit

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread jamal
On Wed, 2005-07-12 at 14:27 -0500, Jeff Garzik wrote: > John Ronciak wrote: > > As far as copybreak goes, we knew it probably won't help routing type > > test with small packets. Robert's test shows it really only hurts > > where it seems to be CPU bound, which makes sense. This can be > > disabl

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread Jeff Garzik
John Ronciak wrote: As far as copybreak goes, we knew it probably won't help routing type test with small packets. Robert's test shows it really only hurts where it seems to be CPU bound, which makes sense. This can be disable at compile time by setting E1000_CB_LENGHT to 2K which means that co

Re: Broadcom 43xx first results

2005-12-07 Thread Jean Tourrilhes
On Tue, Dec 06, 2005 at 02:47:28PM -0800, jt wrote: > > MadWifi stack : > drivers using it : MadWifi (non GPL) > drivers in progress : FreeHAL Atheros, Prism54 softMAC, ural-ralink Sam kindly pointed out that my statement above may be confusing. It should read : MadWifi stack

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread John Ronciak
On 12/7/05, Robert Olsson <[EMAIL PROTECTED]> wrote: > Thanks for this discussion. It comes in handy as I have to prepare > for a new distro for our network stuff. Right now it seems like > e1000 6.2.15 can be used but with HW-flow disabled, cpybrk disabled > and only with the two first prefetches

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread jamal
Robert, Very interesting results - i would like to comment; but let me post my results first. I recompiled all kernels from scratch and made sure that flow control was off in all cases. I still test with two flows .. will get to something like 32K flows perhaps tommorow (keeping my fingers cros

Re: Broadcom 43xx first results

2005-12-07 Thread Jean Tourrilhes
On Tue, Dec 06, 2005 at 11:11:02PM -0800, Jouni Malinen wrote: > On Tue, Dec 06, 2005 at 02:47:28PM -0800, Jean Tourrilhes wrote: > > > DeviceScape stack : > > drivers using it : ? > > potential drivers : hostap, ipw2100, ipw2200, r8180, adm8211 > > It's mainly used with Atheros chipsets

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread Robert Olsson
jamal writes: > > > copybreaks help you.. > > > > Thanks for running these tests, so far it mostly validates that for > > the general case the copybreak and prefetch benefits things. > > I dont know what you would call a general case. Pick two modern boards > as in these tests: I'll a

Re: Issue 0 WAS (Re: Oustanding issues WAS(IRe: Consensus? WAS(RFC 2863)

2005-12-07 Thread Krzysztof Halasa
jamal <[EMAIL PROTECTED]> writes: > How is this different, conceptually, from any other flag setting being > lost - for example a promisc or admin up/down? How do you lose promisc or admin up/down flag setting? Do you mean userspace listening? It has to poll then. > In other words if you want to

Re: Issue 0 WAS (Re: Oustanding issues WAS(IRe: Consensus? WAS(RFC 2863)

2005-12-07 Thread Krzysztof Halasa
Stefan Rompf <[EMAIL PROTECTED]> writes: > Yes, my patch bases on yours and Thomas' work. You're both welcome to add > your > signed-off lines. That was trivial and I don't demand credit here. I just answered Jamal's question. -- Krzysztof Halasa - To unsubscribe from this list: send the line "

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread Grant Grundler
On Wed, Dec 07, 2005 at 07:41:29AM -0500, jamal wrote: > > ok - that's fair. I suspect the hyperthreading case is one where > > binding the IRQs to particule "CPUs" is necessary to reproduce > > the results. > > > > > Note: I didnt bind anything. The p4/xeon starts with routing everything > to C

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread John Ronciak
On 12/7/05, jamal <[EMAIL PROTECTED]> wrote: > It is possible it will help some traffic setups to turn it on, however, > forever you had it as off. So people who need it know how to turn it on. > The sudden change of behavior that was questionable and btw it is not > documented either. Well it's a

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread Jeff Garzik
Grant Grundler wrote: Yes - his results indicated copybreak hurt perf on the AMD box. h... Jeff - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Issue 0 WAS (Re: Oustanding issues WAS(IRe: Consensus? WAS(RFC 2863)

2005-12-07 Thread Thomas Graf
* jamal <[EMAIL PROTECTED]> 2005-12-07 07:56 > How is this different, conceptually, from any other flag setting being > lost - for example a promisc or admin up/down? > In other words if you want to reliably transmit state, shouldnt the > "responsible system" have to worry about the reliability? >

Re: Broadcom 43xx first results

2005-12-07 Thread Michael Buesch
On Wednesday 07 December 2005 00:19, you wrote: > From: Harald Welte <[EMAIL PROTECTED]> > Date: Tue, 6 Dec 2005 20:40:47 +0530 > > > I'm also in favor of merging the devicescape code, but I don't see it > > happening without somebody taking care to provide all the required > > levels of interface

Re: Issue 0 WAS (Re: Oustanding issues WAS(IRe: Consensus? WAS(RFC 2863)

2005-12-07 Thread jamal
On Wed, 2005-07-12 at 09:05 +0100, Thomas Graf wrote: > The implementation of the rule "if admin status down operational status > should be down" only exists in the sysfs code. I would absolutely favour > one clear interface representing the operational status of an interface. > > The transition

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread jamal
On Wed, 2005-07-12 at 00:18 -0800, Jesse Brandeburg wrote: > On 12/6/05, Robert Olsson <[EMAIL PROTECTED]> wrote: > > jamal writes: > > > > > Results: > > > > > > > > > kernel 2.6.11.7: 446Kpps > > > kernel 2.6.14: 452kpps > > > kernel 2.6.14 with e1000-6.2.15: 470Kpps > > > Kernel

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread jamal
On Tue, 2005-06-12 at 23:33 -0700, Grant Grundler wrote: > On Tue, Dec 06, 2005 at 06:08:35PM -0500, jamal wrote: > > All load goes onto CPU#0. I didnt try to tune or balance anything > > so the numbers could be better than those noted here > > ok - that's fair. I suspect the hyperthreading case

Re: [PATCH 12/14] spidernet: check if firmware was loaded correctly

2005-12-07 Thread Jens Osterkamp
Arnd Bergmann <[EMAIL PROTECTED]> wrote on 12/06/2005 11:23:39 AM: > On Dinsdag 06 Dezember 2005 01:59, Paul Mackerras wrote: > > Arnd Bergmann writes: > > > > > Uploading the device firmware may fail if wrong input data > > > was provided by the user. This checks for the condition. > > > > > > Fr

Re: Resend [PATCH netdev-2.6 2/8] e1000: Performance Enhancements

2005-12-07 Thread Jesse Brandeburg
On 12/6/05, Robert Olsson <[EMAIL PROTECTED]> wrote: > jamal writes: > > > Results: > > > > > > kernel 2.6.11.7: 446Kpps > > kernel 2.6.14: 452kpps > > kernel 2.6.14 with e1000-6.2.15: 470Kpps > > Kernel 2.6.14 with e1000-6.2.15 but rx copybreak commented out: 460Kpps > > copybreak

Re: Issue 0 WAS (Re: Oustanding issues WAS(IRe: Consensus? WAS(RFC 2863)

2005-12-07 Thread Thomas Graf
Stefan, This looks better with every iteration, I'm still lacking a few minor things though: The implementation of the rule "if admin status down operational status should be down" only exists in the sysfs code. I would absolutely favour one clear interface representing the operational status of