From owner-freebsd-questions@FreeBSD.ORG Tue Sep 2 05:04:46 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07CC716A4BF for ; Tue, 2 Sep 2003 05:04:46 -0700 (PDT) Received: from void.xpert.com (smtp.xpert.com [199.203.132.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5043543FF5 for ; Tue, 2 Sep 2003 05:04:44 -0700 (PDT) (envelope-from Yonatan@xpert.com) Received: from void.xpert.com (localhost [127.0.0.1]) by void.xpert.com (8.12.8/8.12.8) with ESMTP id h82COo7L007136 for ; Tue, 2 Sep 2003 15:24:50 +0300 Received: from EXCHANGE.xpert.com (exchange.xpert.com [199.203.132.135]) by void.xpert.com (8.12.8/8.12.8) with ESMTP id h82COmGn007128 for ; Tue, 2 Sep 2003 15:24:49 +0300 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MIMEOLE: Produced By Microsoft Exchange V6.0.6375.0 Date: Tue, 2 Sep 2003 15:03:36 +0300 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem Tuning Maxsockets Thread-Index: AcNxSAnkzjhfwN6MTi6RyNqP8joYHAAAqTTQ From: "Yonatan Bokovza" To: Subject: RE: Problem Tuning Maxsockets X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2003 12:04:46 -0000 > -----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.