Re: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-03-03 Thread Andrew Gallatin
Luigi Rizzo writes: > On Wed, Mar 03, 2004 at 10:03:11AM -0500, Andrew Gallatin wrote: <...> > > I'm trying to design a new ethernet API for a firmware-based nic, > > and I'm trying to convince a colleague that having separate > > receive rings for small and large frames is a really good thing

Re: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-03-03 Thread Luigi Rizzo
On Wed, Mar 03, 2004 at 10:03:11AM -0500, Andrew Gallatin wrote: > > Don Bowman writes: > > > I'm not sure what affect on fxp. fxp is inherently limited > > by something internal to it, which prevents achieving > > high packet rates. bge is the best chip, but doesn't but you should not compa

RE: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-03-03 Thread Andrew Gallatin
Don Bowman writes: > I'm not sure what affect on fxp. fxp is inherently limited > by something internal to it, which prevents achieving > high packet rates. bge is the best chip, but doesn't > have the best bsd support. > Just curious - why is bge the best chip? Is it because it exports

RE: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-03-01 Thread Mike Tancsa
At 09:38 PM 29/02/2004, Don Bowman wrote: From: Mike Tancsa [mailto:[EMAIL PROTECTED] > At 08:44 PM 29/02/2004, Don Bowman wrote: > >From: Mike Tancsa [mailto:[EMAIL PROTECTED] > > > > > > On Sat, 28 Feb 2004 23:17:44 -0500, in > sentex.lists.freebsd.hackers > > > > >If you want to spend more time

Re: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-03-01 Thread Mike Tancsa
On Sat, 28 Feb 2004 23:17:44 -0500, in sentex.lists.freebsd.hackers > >If you want to spend more time in kernel, perhaps change > >I might have HZ @ 2500 as well. Hi, Just curious as to the reasoning behind that ? ---Mike ___ [EMAIL PROT

RE: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-02-29 Thread Don Bowman
From: Mike Tancsa [mailto:[EMAIL PROTECTED] > At 08:44 PM 29/02/2004, Don Bowman wrote: > >From: Mike Tancsa [mailto:[EMAIL PROTECTED] > > > > > > On Sat, 28 Feb 2004 23:17:44 -0500, in > sentex.lists.freebsd.hackers > > > > >If you want to spend more time in kernel, perhaps change > > > > > > > >

RE: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-02-29 Thread Mike Tancsa
At 08:44 PM 29/02/2004, Don Bowman wrote: From: Mike Tancsa [mailto:[EMAIL PROTECTED] > > On Sat, 28 Feb 2004 23:17:44 -0500, in sentex.lists.freebsd.hackers > > >If you want to spend more time in kernel, perhaps change > > > >I might have HZ @ 2500 as well. > > Hi, > Just curious as to the r

RE: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-02-29 Thread Don Bowman
From: Mike Tancsa [mailto:[EMAIL PROTECTED] > > On Sat, 28 Feb 2004 23:17:44 -0500, in sentex.lists.freebsd.hackers > > >If you want to spend more time in kernel, perhaps change > > > >I might have HZ @ 2500 as well. > > Hi, > Just curious as to the reasoning behind that ? @ high packet ra

RE: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-02-29 Thread Robert Watson
On Sun, 29 Feb 2004, Mike Silbersack wrote: > On Sat, 28 Feb 2004, Don Bowman wrote: > > > this would only allow 2 concurrent TCP sessions per unique > > source address. Depends on the syn flood you are expecting > > to experience. You could also use dummynet to shape syn > > traffic to a fixed

RE: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-02-29 Thread Don Bowman
From: Mike Silbersack [mailto:[EMAIL PROTECTED] > On Sat, 28 Feb 2004, Don Bowman wrote: > > > You could use ipfw to limit the damage of a syn flood, e.g. > > a keep-state rule with a limit of ~2-5 per source IP, lower the > > timeouts, increase the hash buckets in ipfw, etc. This would > > use a

Re: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-02-28 Thread Deepak Jain
You could use ipfw to limit the damage of a syn flood, e.g. a keep-state rule with a limit of ~2-5 per source IP, lower the timeouts, increase the hash buckets in ipfw, etc. This would use a mask on src-ip of all bits. something like: allow tcp from any to any setup limit src-addr 2 this would only

RE: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-02-28 Thread Mike Silbersack
On Sat, 28 Feb 2004, Don Bowman wrote: > You could use ipfw to limit the damage of a syn flood, e.g. > a keep-state rule with a limit of ~2-5 per source IP, lower the > timeouts, increase the hash buckets in ipfw, etc. This would > use a mask on src-ip of all bits. > something like: > allow tcp f

RE: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-02-28 Thread Don Bowman
... > > > > > > You may need to increase the MAX_RXD inside your em driver > to e.g. 512. > > I didn't know if my card had a buffer bigger than the default > 256. I can > increase it, but I didn't know how to determine how big a MAX_RXD my > card would support. When the system was under loa

Re: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-02-28 Thread Deepak Jain
Don Bowman wrote: It was kindly pointed out that I didn't including the symptoms of the problem: Without polling on, I get 70+% interrupt load, and I get live lock. With polling on, I start getting huge amounts of input errors, packet loss, and general unresponsiveness to the network. The we

RE: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-02-28 Thread Don Bowman
> It was kindly pointed out that I didn't including the symptoms of the > problem: > > > Without polling on, I get 70+% interrupt load, and I get live lock. > > With polling on, I start getting huge amounts of input errors, packet > loss, and general unresponsiveness to the network. The web >

Re: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-02-28 Thread Deepak Jain
And this was picked up in the messages log: /kernel: stray irq 7 last message repeated 2 times /kernel: too many stray irq 7's; not logging any more DJ Don Bowman wrote: I have a machine running 4.9. P4 2.8Ghz, 800mhz bus, Intel PRO/1000 ethernet connected to a Cisco, both sides are locked to

Re: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-02-28 Thread Deepak Jain
Don Bowman wrote: I have a machine running 4.9. P4 2.8Ghz, 800mhz bus, Intel PRO/1000 ethernet connected to a Cisco, both sides are locked to 1000/FD. The kernel has HZ=1000, and DEVICE_POLLING, IPFW, DUMMYNET, etc. After only a few minutes of run time under an attack ~90,000 pps. The atta

Re: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-02-28 Thread Deepak Jain
It was kindly pointed out that I didn't including the symptoms of the problem: Without polling on, I get 70+% interrupt load, and I get live lock. With polling on, I start getting huge amounts of input errors, packet loss, and general unresponsiveness to the network. The web server on it doesn

RE: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-02-28 Thread Don Bowman
> I have a machine running 4.9. P4 2.8Ghz, 800mhz bus, Intel PRO/1000 > ethernet connected to a Cisco, both sides are locked to 1000/FD. > > The kernel has HZ=1000, and DEVICE_POLLING, IPFW, DUMMYNET, > etc. After > only a few minutes of run time under an attack ~90,000 pps. > The attack > h

em0, polling performance, P4 2.8ghz FSB 800mhz

2004-02-28 Thread Deepak Jain
I have a machine running 4.9. P4 2.8Ghz, 800mhz bus, Intel PRO/1000 ethernet connected to a Cisco, both sides are locked to 1000/FD. The kernel has HZ=1000, and DEVICE_POLLING, IPFW, DUMMYNET, etc. After only a few minutes of run time under an attack ~90,000 pps. The attack has been limited at