From owner-freebsd-net Sat Nov 3 7:19:17 2001 Delivered-To: freebsd-net@freebsd.org Received: from alf.uib.no (alf.uib.no [129.177.30.3]) by hub.freebsd.org (Postfix) with ESMTP id 616DB37B416 for ; Sat, 3 Nov 2001 07:19:13 -0800 (PST) Received: from tunnel-45-14.vpn.uib.no (ii.uib.no) [129.177.45.14] by alf.uib.no with esmtp (Exim 3.16) id 1602ZM-0006Rl-00; Sat, 03 Nov 2001 16:18:48 +0100 Message-ID: <3BE40BC8.9060504@ii.uib.no> Date: Sat, 03 Nov 2001 16:22:48 +0100 From: Trond Davidsen User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.3) Gecko/20010909 X-Accept-Language: en-us MIME-Version: 1.0 To: Archie Cobbs Cc: freebsd-net@FreeBSD.ORG Subject: Re: Mpd with a large number, 200+ , of bundles References: <200110301602.f9UG2gr07609@arch20m.dellroad.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanner: exiscan *1602ZM-0006Rl-00*y0vurEDuHDc* http://tjinfo.uib.no/virus.html Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Archie Cobbs wrote: > > One problem with netgraph is that node and hook names can only be about 15 > characters.. so when you get to 100 bundles, the hook names start > overflowing the buffers. > > If you're only running one version of mpd, for example, you can > try this patch to fix the '100 bundles' problem by shortening > the node names: > When I try to make 240 bundles, from the log, it seems mpd is makeing all the nodes ok, but when I try to establish a connection nothing happens, no respons, nothing in the log, and mpd is frozen and needs to be killed with kill -9. And then it leaves 720 nodes behind which needs to be removed manually. > > This is probably due to a fixed size buffer in the base netgraph > code somewhere... it doesn't look like libnetgraph can generate > an ENOBUFS on its own. Try running ngctl with one or more '-d' flags.. > vpn-gw3# ngctl -d -d -d Available commands: config get or set configuration of node at connect Connects hook of the node at to debug Get/set debugging verbosity level help Show command summary or get more help on a specific command list Show information about all nodes mkpeer Create and connect a new node to the node at "path" msg Send a netgraph control message to the node at "path" name Assign name to the node at read Read and execute commands from a file rmhook Disconnect hook "hook" of the node at "path" show Show information about the node at shutdown Shutdown the node at status Get human readable status information from the node at types Show information about all installed node types quit Exit program + list ngctl: SENDING MESSAGE: ngctl: SOCKADDR: { fam=32 len=4 addr="." } ngctl: NG_MESG : ngctl: vers 2 ngctl: arglen 0 ngctl: flags 0 ngctl: token 1 ngctl: cookie GENERIC (851672668) ngctl: cmd 9 ngctl: args (0 bytes) ngctl: sendto(.): No buffer space available ngctl: send msg: No buffer space available + When I create 240 bundles, mpd creates 720 netgraph nodes. Is there a limit on how many nodes the netgraph system can handle? Where is the netgraph system defined? i can find the modules under /usr/src/sys/modules/netgraph, but I can't find the 'netgraph base system'. Trond To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message