[PATCH] Re: IP_MAX_MEMBERSHIPS story.

Bruce M Simpson bms at spc.org
Sun May 14 14:00:53 UTC 2006


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


More information about the freebsd-net mailing list