Problem Tuning Maxsockets

Yonatan Bokovza Yonatan at xpert.com
Tue Sep 2 05:04:46 PDT 2003


> -----Original Message-----
> From: Company 2210 [mailto:company2210 at hotmail.com]
> Sent: Tuesday, September 02, 2003 14:49
> To: freebsd-questions at freebsd.org
> Subject: Problem Tuning Maxsockets
> 
> 
> I am trying to alter the number of maxsockets allocated from 
> the default of
> 2022 to 8192 on a FreeBSD 4.8 box. However, when I try to perform this
> operation via sysctl I'm informed the oid 
> (kern.ipc.maxsockets) is read
> only. Does this mean I need to recompile the kernel? I've 
> tried 'options
> MAXSOCKETS=8192' in a kernel recompile - but that was 
> rejected by the inital
> parse, so either the option is different to the sysctl name 
> or their is
> another way to do this? Could someone shed some light?

according to init_maxsockets in sys/kern/uips_socket2.c
you should recompile your kernel with a different
NMBCLUSTERS.


More information about the freebsd-questions mailing list