* Ari Suutari <[EMAIL PROTECTED]> [020211 22:50] wrote: > Hi, > > > On Monday 11 February 2002 16:15, Mike Silbersack wrote: > > On Mon, 11 Feb 2002, Alfred Perlstein wrote: > > > > > another way would be to loop doing recvfrom's until EAGAIN is returned, > > > I suspect this may give at least a 2 fold increase in performance and > > > is trivial to accomplish. > > > > Wow. Yeah, it sounds like that change would make more of a difference > > than moving away from select(). Tell us how it works, Tariq. :) > > > > Natd doesn't use select if you use alias address instead of interface > name. In this case there is just simple recvfrom - sendto loop.
Yes, that looks right, still, that case probably doesn't perform all that well at all and could be improved. > The select is there currently mostly to get information from routing > socket which is needed on DHCP / PPP environments. There > was also second purpose - to check space on output socket - > but it has been found unnecessary recently and I think it > was removed from -current, at least. I guess then it looks like natd really either wants batch-recvfrom/sendto or to be moved into the kernel for higher performance. -- -Alfred Perlstein [[EMAIL PROTECTED]] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message