From owner-freebsd-net@FreeBSD.ORG Sun May 14 14:00:53 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19F0416A400; Sun, 14 May 2006 14:00:53 +0000 (UTC) (envelope-from bms@spc.org) Received: from mindfull.spc.org (mindfull.spc.org [83.167.185.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB7F643D5E; Sun, 14 May 2006 14:00:48 +0000 (GMT) (envelope-from bms@spc.org) Received: from arginine.spc.org ([83.167.185.2]) by mindfull.spc.org with esmtps (TLSv1:AES256-SHA:256) (Exim 4.52) id 1FfH9I-0005ge-Ev; Sun, 14 May 2006 15:00:44 +0100 Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 3732165499; Sun, 14 May 2006 15:00:46 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17032-05; Sun, 14 May 2006 15:00:45 +0100 (BST) Received: by arginine.spc.org (Postfix, from userid 1078) id 05A07653F9; Sun, 14 May 2006 15:00:44 +0100 (BST) Date: Sun, 14 May 2006 15:00:44 +0100 From: Bruce M Simpson To: Stephen Clark Message-ID: <20060514140044.GF79277@spc.org> Mail-Followup-To: Bruce M Simpson , Stephen Clark , Robert Watson , freebsd-net@freebsd.org, pavlin@icir.org, atanu@icir.org References: <20060509122801.GA65297@spc.org> <20060509131517.GB79277@spc.org> <20060512030152.X20138@fledge.watson.org> <4463FD1D.9010600@seclark.us> <20060512131227.GD79277@spc.org> <20060513230315.GE79277@spc.org> <44667C7E.1020401@seclark.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44667C7E.1020401@seclark.us> User-Agent: Mutt/1.4.1i Organization: Incunabulum X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - mindfull.spc.org X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - spc.org X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-net@freebsd.org, Robert Watson , pavlin@icir.org, atanu@icir.org Subject: Re: [PATCH] Re: IP_MAX_MEMBERSHIPS story. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 May 2006 14:00:53 -0000 Hello, On Sat, May 13, 2006 at 08:40:30PM -0400, Stephen Clark wrote: > Thanks for your effort - I will try it on monday at work in a test > configuration I have setup with > a hundred gre/vpn tunnels and ospf. This configuration needs a > multicast membership group > of 100. Thank you! I have extended Robert's netinet regression test framework to cover IP_ADD_MEMBERSHIP also and will be committing this update along with an update to the manual page. Initial tests with the regression framework suggest that joining more than 4095 groups on the same interface is likely to cause churn with structures further below in the stack, so whilst this is probably a scalable enough solution for yours (and everyone else's) needs, it probably doesn't need to be this scalable 'in real life', without changing many of the structures further down in net and/or netinet. IPv6 is likely to run into similar churn anyway, given that the KAME stack holds per-socket multicast memberships in a doubly linked list. So I will be updating the patch in the next 24 hours. Given that it seems stable for values 2047 <= n <= 4095 with SOCK_DGRAM I am inclined to commit with the maximum raised to 4095 and lazy allocation in place. Regards, BMS