From owner-freebsd-questions Thu May 20 2:37:35 1999 Delivered-To: freebsd-questions@freebsd.org Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (Postfix) with ESMTP id 91FC214C9D for ; Thu, 20 May 1999 02:37:31 -0700 (PDT) (envelope-from brian@lan.awfulhak.org) Received: from keep.lan.Awfulhak.org (keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.9.2/8.9.2) with ESMTP id KAA11033; Thu, 20 May 1999 10:37:29 +0100 (BST) (envelope-from brian@lan.awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id JAA01055; Wed, 19 May 1999 09:04:06 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199905190804.JAA01055@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: "Tim Pushor" Cc: questions@FreeBSD.ORG Subject: Re: Number of TUN devices In-reply-to: Your message of "Tue, 18 May 1999 12:31:44 MDT." <003401bea15c$c0af4e10$1001a8c0@timmys.shl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 19 May 1999 09:04:05 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hello, > > Does anyone know how man tun devices I can run in the 3.x kernels? I would > like to run LOTS (as many as possible), so even if I had to potentially > modify the kernel... I've got 300 configured on my development box, and I've tested the devices > minor 256 (to see that minor numbers with the ``hole'' work). Unfortunately, after running ppp a couple of hundred times, the machine was suffering a bit. I haven't tried this since I revised the setitimer() stuff in ppp though - so it may actually be plausible to run 200-300 ppps, especially if it's something like ppp over udp without compression as there are far fewer overheads. YMMV - especially with something like nos-tun(8). AFAIR, there was a problem in OpenBSD's version of config(8) that stopped ``pseudo-device tun 257'' from getting things right as it ended up overflowing the minor number and incrementing the major number :-( There may have been some minor (heh!) MAKEDEV problems too. I wouldn't be surprised if NetBSD suffered similar problems. > Thanks, > Tim PS, the output of ``netstat -i'' looks silly when you've got more than 100 devices :-/ -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message