Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jul 2003 20:51:12 -0400
From:      Scot Loach <sloach@sandvine.com>
To:        'Don Lewis' <truckman@FreeBSD.org>, silby@silby.com
Cc:        freebsd-net@FreeBSD.org
Subject:   RE: Kernel tuning for large maxsockets
Message-ID:  <FE045D4D9F7AED4CBFF1B3B813C8533701AE8538@mail.sandvine.com>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org]
Sent: Tuesday, July 15, 2003 8:48 PM
To: silby@silby.com
Cc: sloach@sandvine.com; freebsd-net@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FE045D4D9F7AED4CBFF1B3B813C8533701AE8538>