Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jul 2001 22:16:13 +1000
From:      Stephen McKay <mckay@thehub.com.au>
To:        freebsd-hackers@freebsd.org
Cc:        mckay@thehub.com.au, Kenneth Wayne Culver <culverk@wam.umd.edu>, Terry Lambert <tlambert2@mindspring.com>
Subject:   Re: more on latency 
Message-ID:  <200107101216.f6ACGDF25604@dungeon.home>
In-Reply-To: <3B4A0F74.672D7B27@mindspring.com> from Terry Lambert at "Mon, 09 Jul 2001 20:09:24 %2B0000"
References:  <Pine.GSO.4.21.0107091320270.11885-100000@rac1.wam.umd.edu> <3B4A0F74.672D7B27@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, 9th July 2001, Terry Lambert wrote:

>Kenneth Wayne Culver wrote:
>> 
>> I think I found the reason that my FreeBSD box is performing
>> so poorly as a NATing router. When I do an ipnat -l to see
>> what "active connections" are there on the router, a list
>> about 3 pages long (using ipnat -l | more) appears. I think
>> maybe it's having trouble because for every packet coming in
>> and out of the router, it's got to look at that list of
>> active connections for the right one to send to and from. Is
>> there any way to make connections that aren't being used go
>> away from the NAT faster? Thanks a lot.
>
>Don't run unnecessary daemons.
>
>The pcb lookups are a linear traversal, as well, and for
>a large number of connections, the calllout wheel for
>timers sucks.

I can't imagine even the most inefficiently coded linear traversal
causing this problem given the beefy machine being used.

I set up a cable sharing system for friends of mine and it is a Pentium
100 with 2 ISA NICs!  That system adds no more than 2 or so ms to the
latency with 3 simultaneous counterstrike players.  I used ipfw and natd
in a trivial configuration on 4.3-R.

I wonder if the problem is a lack of mbufs or some similar misconfiguration
tragedy.  "netstat -m" and "top" output might be helpful.

Stephen.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107101216.f6ACGDF25604>