Date: Tue, 2 Sep 2003 15:03:36 +0300 From: "Yonatan Bokovza" <Yonatan@xpert.com> To: <freebsd-questions@freebsd.org> Subject: RE: Problem Tuning Maxsockets Message-ID: <C2DC75EEA405354AA9C03EF5CB8CDE089AAB17@exchange.xpert.com>
next in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: Company 2210 [mailto:company2210@hotmail.com] > Sent: Tuesday, September 02, 2003 14:49 > To: freebsd-questions@freebsd.org > Subject: Problem Tuning Maxsockets >=20 >=20 > I am trying to alter the number of maxsockets allocated from=20 > 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=20 > (kern.ipc.maxsockets) is read > only. Does this mean I need to recompile the kernel? I've=20 > tried 'options > MAXSOCKETS=3D8192' in a kernel recompile - but that was=20 > rejected by the inital > parse, so either the option is different to the sysctl name=20 > 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C2DC75EEA405354AA9C03EF5CB8CDE089AAB17>