From owner-freebsd-net Fri Mar 9 3: 1:27 2001 Delivered-To: freebsd-net@freebsd.org Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by hub.freebsd.org (Postfix) with ESMTP id F253537B719; Fri, 9 Mar 2001 03:01:20 -0800 (PST) (envelope-from brandt@fokus.gmd.de) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.gmd.de (8.8.8/8.8.8) with ESMTP id MAA04870; Fri, 9 Mar 2001 12:01:19 +0100 (MET) Date: Fri, 9 Mar 2001 12:01:18 +0100 (CET) From: Harti Brandt To: Cc: Subject: Netgraph is leaking node references Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, it seems that netgraph is leaking references. One simple experiment to do is to repeat 'ngctl types' several times: 500 [root] (beagle) netgraph_atm/tests/ccatm # ngctl types There are 5 total types: Type name Number of living nodes --------- ---------------------- socket 9 sscfu 0 sscop 1 atm 2 tee 0 501 [root] (beagle) netgraph_atm/tests/ccatm # ngctl types There are 5 total types: Type name Number of living nodes --------- ---------------------- socket 10 sscfu 0 sscop 1 atm 2 tee 0 502 [root] (beagle) netgraph_atm/tests/ccatm # ngctl types There are 5 total types: Type name Number of living nodes --------- ---------------------- socket 11 sscfu 0 sscop 1 atm 2 tee 0 503 [root] (beagle) netgraph_atm/tests/ccatm # exit See the number of socket type nodes increasing. A ngctl list shows only the two persistant atm nodes and the ngctl socket node. Dumping the node list shows, that all the nodes have 0 hooks, are INVALID and CLOSING, but have references. This happens for all types (the sscop nodes above is one of these stuck nodes). The leaking references are probably hook references, because the number of dangling references in the dead nodes depends on the number of hooks it previously had. So what is the problem? harti PS: FreeBSD beagle.fokus.gmd.de 5.0-CURRENT FreeBSD 5.0-CURRENT #5: Thu Mar 8 11:42:04 CET 2001 hbb@beagle.fokus.gmd.de:/opt/obj/usr/src/sys/BEAGLE i386 -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.gmd.de, harti@begemot.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message