From owner-freebsd-net@FreeBSD.ORG Thu Jun 19 06:44:44 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3776C37B401 for ; Thu, 19 Jun 2003 06:44:44 -0700 (PDT) Received: from smail2.alcatel.fr (colt-na7.alcatel.fr [62.23.212.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A97143F93 for ; Thu, 19 Jun 2003 06:44:42 -0700 (PDT) (envelope-from ciprian.badescu@alcatel.ro) Received: from ns.tm.alcatel.ro (ns.tm.alcatel.ro [155.132.154.34]) by smail2.alcatel.fr (ALCANET/NETFR) with SMTP id h5JDiddk031511 for ; Thu, 19 Jun 2003 15:44:40 +0200 Received: FROM mail.tm.alcatel.ro BY ns.tm.alcatel.ro ; Thu Jun 19 16:46:45 2003 +0300 Received: from mrc.mrc.alcatel.ro (unverified [172.25.128.124]) by mail.tm.alcatel.ro (EMWAC SMTPRS 0.83) with SMTP id ; Thu, 19 Jun 2003 16:46:08 +0300 Received: from mcd01paf (mcd01paf.mrc.alcatel.ro [172.25.128.175]) h5JDspNr026110 for ; Thu, 19 Jun 2003 16:54:52 +0300 (EEST) Date: Thu, 19 Jun 2003 16:50:17 +0300 (EEST) From: Ciprian Badescu X-X-Sender: badescu@mcd01p59.mrc.alcatel.ro To: freebsd-net@freebsd.org In-Reply-To: Message-ID: <20030619164024.L698@mcd01p59.mrc.alcatel.ro> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new Subject: Redundant link configuration X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2003 13:44:44 -0000 Hi, I'm not very old in networking, and I want to migrate to following configuration: Local router Remote router +---------------+ +---------------+ | | | | | |192.168.0.1 link 1 192.168.0.11 | | | |---------------------------------------| | | |---------------------------------------| | | |192.268.0.2 link 2 192.168.0.12 | | +---------------+ +---------------+ The link 192.168.0.1 <->192.168.0.11 Is the actual one, using RF, and I want to move all traffic to the new OF link 192.268.0.2 <->192.168.0.12. I don't know how to configura the routers to use the second link, and to keep the first link for redundancy, and if something is happening with link2, tha traffic must use automatically link1. It's enough tu use routing metrics, or I must use a routing protocol (and if so, which one)? -- Ciprian Badescu On Thu, 19 Jun 2003, Scot Loach wrote: > Date: Thu, 19 Jun 2003 08:20:34 -0400 > From: Scot Loach > To: "'freebsd-net@freebsd.org'" > Subject: socket leak in FreeBSD 4.7 > > If I execute the following program on a FreeBSD 4.7 system: > > int main() > { > for (int i = 0; i < 70000; i++) > { > socket(PF_INET, SOCK_STREAM, 0); > } > return 0; > } > the sockets never seem to be freed. > > vmstat tells me the memory is still in use: > > bash-2.05a$ vmstat -z > > ITEM SIZE LIMIT USED FREE REQUESTS > > tcpcb: 544, 106000, 65557, 4474, 70029 > udpcb: 192, 106000, 7, 35, 481 > unpcb: 160, 0, 7, 43, 78 > socket: 192, 106000, 65571, 4487, 70639 > > However, fstat and sockstat do not show a large number of sockets. > > netstat shows them, and they look like this: > > tcp4 0 0 *.* *.* CLOSED > > > If I explicitly close the sockets before the program exits, this does not > occur. However I'm worried about the case where a high-volume server exits > unexpectedly and leaks sockets. > > Any ideas of what might be wrong? > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >