From owner-freebsd-current Mon Nov 22 7:54:57 1999 Delivered-To: freebsd-current@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 09AE914CF4 for ; Mon, 22 Nov 1999 07:54:53 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id KAA84691; Mon, 22 Nov 1999 10:52:48 -0500 (EST) (envelope-from wollman) Date: Mon, 22 Nov 1999 10:52:48 -0500 (EST) From: Garrett Wollman Message-Id: <199911221552.KAA84691@khavrinen.lcs.mit.edu> To: John Polstra Cc: current@FreeBSD.ORG Subject: RE: Route table leaks In-Reply-To: References: <199911220150.UAA78559@khavrinen.lcs.mit.edu> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < said: >> [quoting me:] >> What does `netstat -ran' say? You're not seeing all the routes >> without the `-a' flag. > It lists some additional routes with -a, but not many. Here's the > latest output (still growing, as you can see): > cvsup-master# vmstat -m | grep 'routetbl ' > routetbl 822 115K 115K 21221K 2669 0 0 16,32,64,128,256 Hmmm. On one of my machines: Memory statistics by type Type Kern Type InUse MemUse HighUse Limit Requests Limit Limit Size(s) routetbl 171 24K 184K 10366K 976273 0 0 16,32,64,128,256 Looks fine. Another machine says: routetbl 2755 384K 394K 42708K 928043 0 0 16,32,64,128,256 It also tells me: root@xyz(49)$ netstat -ran | wc -l 118 root@xyz(50)$ netstat -ran | fgrep default default 18.24.10.3 UGc 25 13963 ti0 root@xyz(51)$ netstat -f inet -n | wc -l 1331 Now things start to make sense: root@xyz(55)$ netstat -f inet -n | fgrep CLOSING | wc -l 1287 (this machine still has the bug that Jonathan Lemon fixed). Now it's clear what's going on. The ``missing'' routes have been deleted from the routing table, but have not yet been freed because these old PCBs still hold a reference. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message