Date: Mon, 09 Aug 1999 17:54:27 +0200 From: Thierry Herbelot <thierry.herbelot@alcatel.fr> To: Chris Dillon <cdillon@wolves.k12.mo.us> Cc: InterACT Info <je@interact.se>, freebsd-isp@FreeBSD.ORG Subject: maximum UDP output (was Re: Multi networkcards) Message-ID: <37AEF9B3.87259EFC@alcatel.fr> References: <Pine.BSF.4.10.9908090909180.98350-100000@mail.wolves.k12.mo.us>
next in thread | previous in thread | raw e-mail | index | archive | help
Talking about saturating interfaces, I've got here a little program spitting UDP packets as fast at it can, in a burst. The program is just a loop : while (1) usleep(delay) // to adjust the rate for i = 1 to n send(socket, packet) I've set up the socket as "connected" to speed up the kernel processing (it is even bound to a local address). I am still wondering why I can't use a burst of 6 packets or more unless the emitted rate drops to one fifth of the one attained with a 5-packet burst. I've had a look at the usual suspects (ip_output, udp_output, ...), but I've not seen the light (I've increased UDP send space, but everything remains the same). Anyway, I've got a box processing around 10K packets per second with a 40% load (PIII-450) TfH Chris Dillon wrote: > > On Mon, 9 Aug 1999, InterACT Info wrote: > > > Have anyone successfully tryed a gateway/firewall > > with more than ten or six interfaces? > > More than six, yes. I've been using a Compaq Proliant 3000 (PIII-500, > 256MB) with six Intel EtherExpress PRO 10/100B's (82558) and one Dual > EtherExpress PRO 10/100B (dual 82558 + PCI bridge) for a total of 8 > interfaces. FreeBSD 3.1-RELEASE didn't want to see all of the PCI > busses in this particular server, but 3.2 saw everything just fine, > and works without a hitch. I could easily put 10 interfaces in this > thing since it has a couple of free PCI slots, and I wouldn't forsee a > problem doing so. > > The performance is quite good, by the way. I've managed to saturate 4 > of the interfaces at 100Mbit FD and the server didn't break a sweat. > This was with 36 ipfw rules, with most of the traffic passing through > 14 rules on its way in and out (exactly 28 rules for a packet to pass > through the box from one of my private networks to another). > Granted, this was a bunch of SMB traffic passing between multiple NT > (blech) boxes, so the packets on average were fairly large. > > Maybe in a few months, time allowing, I'll set up some workstations on > each of the networks to pump as much data as they can through all 8 > interfaces, packets both big and small, and see how it performs. > > -- Chris Dillon - cdillon@wolves.k12.mo.us - cdillon@inter-linc.net > FreeBSD: The fastest and most stable server OS on the planet. > For Intel x86 and Alpha architectures (SPARC under development). > ( http://www.freebsd.org ) > > "One should admire Windows users. It takes a great deal of > courage to trust Windows with your data." > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37AEF9B3.87259EFC>