From owner-freebsd-hackers Tue Jul 10 8:58:19 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from harrier.mail.pas.earthlink.net (harrier.mail.pas.earthlink.net [207.217.121.12]) by hub.freebsd.org (Postfix) with ESMTP id 2C0E837B40B for ; Tue, 10 Jul 2001 08:58:16 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (dialup-209.247.143.76.Dial1.SanJose1.Level3.net [209.247.143.76]) by harrier.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id IAA10701; Tue, 10 Jul 2001 08:58:12 -0700 (PDT) Message-ID: <3B4B2638.8E577B10@mindspring.com> Date: Tue, 10 Jul 2001 08:58:48 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: kc5vdj@yahoo.com Cc: Kenneth Wayne Culver , freebsd-hackers@FreeBSD.ORG Subject: Re: more on latency References: <3B4A0F74.672D7B27@mindspring.com> <3B4A21C7.B9B63FE4@yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jim Bryant wrote: > 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. > > Is there a way to get similar stats from natd? I don't know; you could look at the netstat output from the tun interface it uses, and that would give you some of the flow information. In general, FreeBSD doesn't completely track SNMP RFC mandated statistics; I've helped a local person hack code out of netstat to do things like reporting of the number of active connections using UCD SNMP, but it's not common to find FreeBSD keeping stats that match up 100% with the MIB entries people normally like to see from the generic MIBs. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message