From owner-freebsd-questions@FreeBSD.ORG Wed Oct 19 13:11:30 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6D7A106564A for ; Wed, 19 Oct 2011 13:11:30 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from asbnvacz-mailrelay01.megapath.net (asbnvacz-mailrelay01.megapath.net [207.145.128.243]) by mx1.freebsd.org (Postfix) with ESMTP id 739D28FC18 for ; Wed, 19 Oct 2011 13:11:30 +0000 (UTC) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.39]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id BFA6CA720A4 for ; Wed, 19 Oct 2011 09:11:29 -0400 (EDT) Received: (qmail 24309 invoked from network); 19 Oct 2011 13:11:29 -0000 Received: by simscan 1.4.0 ppid: 2029, pid: 11933, t: 0.1538s scanners: clamav: m: Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 19 Oct 2011 13:11:29 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.8]) by be-well.ilk.org (Postfix) with ESMTP id 6717A2E0DA; Wed, 19 Oct 2011 09:11:23 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 3701D3983C; Wed, 19 Oct 2011 09:11:19 -0400 (EDT) From: Lowell Gilbert To: Ihsan Junaidi Ibrahim References: Date: Wed, 19 Oct 2011 09:11:19 -0400 In-Reply-To: (Ihsan Junaidi Ibrahim's message of "Tue, 18 Oct 2011 20:44:50 +0800") Message-ID: <44botd86tk.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Maximum gif(4) interfaces X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Oct 2011 13:11:30 -0000 Ihsan Junaidi Ibrahim writes: > I need to build a system that need to terminate a number of 6-in-4 and 4-in-4 tunnels. > > Can someone point me to a direction, with gif auto-cloning and on GENERIC, what is the maximum number of gif interfaces/tunnels that can be supported? > > I'm on 8.2. The implementation is in src/sys/net/if_gif.c. There is no absolute limit to the number of cloned interfaces. They are stored in a linked list (as are interfaces as a whole), so having large numbers of them could be a performance issue in some cases. I would guess that such cases would mostly involve having high rates of tunnel creation and destruction, but you would have to test to be sure.