Kernel tuning for large maxsockets

Don Lewis truckman at FreeBSD.org
Tue Jul 15 17:47:53 PDT 2003


On 15 Jul, Mike Silbersack wrote:
> 
> On Tue, 15 Jul 2003, Scot Loach wrote:
> 
>> Is there any reason I should not modify the kernel code to only let a small,
>> fixed number of raw and divert pcbs be preallocated instead of having them
>> scale with maxsockets?
> 
> Your idea is sound.
> 
>> Next, does this seem like a generally useful thing that could be rolled back
>> into the source tree?  I could make this a kernel option or a tunable sysctl
>> variable.
>>
>> thanks
>>
>> Scot Loach
> 
> A tunable maximum for each of those settings sounds good, that should fit
> well in subr_param.c.  Send me your patch when it's done, and I'll look
> into incorporating it.

I'd prefer separate tunables.  I suspect that it is also common to have
vastly different requirements for the numbers of TCP and UDP sockets.


More information about the freebsd-net mailing list