Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2007 04:39:19 -0700 (PDT)
From:      Martha Pasikatan <magpasikat@yahoo.com>
To:        freebsd-net@freebsd.org
Subject:   Computer hangs after creating 30,000 one2many netgraph nodes
Message-ID:  <716032.41995.qm@web44911.mail.sp1.yahoo.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi,

I tried running a script that does nothing but create 50,000 netgraph nodes.  After creating about 30,000 netgraph nodes, the computer crashes.  I tried this with the tee node but it was able to successfully create 50,000 nodes.  Can I know what the limits of each netgraph nodes are?  How to identify when the limit has been reached?  I'm using an application that makes use of the netgraph library and during stress testing it keeps hanging because of this.  If anyone can give me a solution to prevent the system from hanging out of using too many netgraph nodes, that would be appreciated.

I'm attaching the script I used for creating 50,000 netgraph nodes.  Before running a script I created one one2many node named node0.

Any help, ideas, corrections are appreciated.

matt

       
---------------------------------
Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. 
[-- Attachment #2 --]
#!/bin/sh

i='0'

while [ $i -le 50000 ]
do
  echo "ngctl mkpeer node$i: one2many many0 one"
  ngctl mkpeer node$i: one2many many0 one
  i2=`expr $i + 1`
  echo "ngctl name node$i:many0 node$i2"
  ngctl name node$i:many0 node$i2
  i=`expr $i + 1`
done


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?716032.41995.qm>