Kernel tuning for large maxsockets

Scot Loach sloach at sandvine.com
Tue Jul 15 17:51:18 PDT 2003


True, I can add a tunable for each of tcp, udp, raw, divert.

What will happen when the system runs out of pcbs?



-----Original Message-----
From: Don Lewis [mailto:truckman at FreeBSD.org]
Sent: Tuesday, July 15, 2003 8:48 PM
To: silby at silby.com
Cc: sloach at sandvine.com; freebsd-net at FreeBSD.org
Subject: Re: Kernel tuning for large maxsockets


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