On Wed, Oct 16, 2002 at 08:57:19AM +0300, Petri Helenius wrote:
> >
> > how large are the packets and how fast is the box ?
> 
> Packets go out at an average size of 1024 bytes. The box is dual
> P4 Xeon 2400/400 so I think it should qualify as "fast" ? I disabled

yes, it qualifies as fast. With this kind of box, a trivial
program can send short (18 byte payload, 64 byte total)
UDP frames at 5-600kpps, with quite a bit of time i suspect is
being spent in the userland-kernel transition (with some tricks
to skip that i went up to ~680kpps).

> The information I´m looking for is how to instrument where the

hard to tell -- see if short packets you get the same performance
i mention above, then maybe try some tricks such as sending
short bursts (5-10 pkts at a time) on each of the interfaces.

Maybe using a UP kernel as opposed to an SMP one might give you
slightly better performance, i am not sure though.

There might be some minor optimizations here and there which could
possibly help (e.g. make th em driver use m_getcl(), remove IPSEC
from the kernel if you have it) but you are essentially close to
the speed you can get with that box (within a factor of 2, probably).

        cheers
        luigi

> > on a fast box you should be able to generate packets faster than wire
> > speed for sizes around 500bytes, meaning that you are going to saturate
> > the queue no matter how large it is.
> >
> > cheers
> > luigi
> >
> > > em-interface is running 66/64 and is there a way to see interface queue
> depth?
> > > em0: <Intel(R) PRO/1000 Network Connection, Version - 1.3.14> port
> 0x3040-0x307f
> > > mem 0xfc220000-0xfc23ffff irq 17 at device 3.0 on pci2
> > > em0:  Speed:1000 Mbps  Duplex:Full
> > > pcib2: <PCI to PCI bridge (vendor=8086 device=1460)> at device 29.0 on pci1
> > > IOAPIC #2 intpin 0 -> irq 16
> > > IOAPIC #2 intpin 6 -> irq 17
> > > IOAPIC #2 intpin 7 -> irq 18
> > > pci2: <PCI bus> on pcib2
> > >
> > > The OS is 4.7-RELEASE.
> > >
> > > Pete
> > >
> > >
> > >
> > > To Unsubscribe: send mail to [EMAIL PROTECTED]
> > > with "unsubscribe freebsd-net" in the body of the message
> >
> 
> 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to