From owner-freebsd-hackers Sat Sep 18 22:20:19 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from cs.rice.edu (cs.rice.edu [128.42.1.30]) by hub.freebsd.org (Postfix) with ESMTP id C736915049; Sat, 18 Sep 1999 22:20:13 -0700 (PDT) (envelope-from aron@cs.rice.edu) Received: (from aron@localhost) by cs.rice.edu (8.9.0/8.9.0) id AAA20766; Sun, 19 Sep 1999 00:20:12 -0500 (CDT) Date: Sun, 19 Sep 1999 00:20:12 -0500 (CDT) From: Mohit Aron Message-Id: <199909190520.AAA20766@cs.rice.edu> To: freebsd-hackers@freebsd.org, freebsd-net@freebsd.org Subject: limit on number of sockets by zone allocator Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I was recently doing some throughput tests with the Apache webserver on FreeBSD-4.0. It seems that the recently introduced (after FreeBSD-2) zone allocator limits the maximum number of socket structures to about 8000 (I configured my kernel with 256 MAXUSERS). A busy webserver can have about 50000 connections primarily due to TCP's TIME-WAIT state (see http://cs-tr.cs.rice.edu/Dienst/UI/2.0/Describe/ncstrl.rice_cs/TR99-335/). A limit of 8000 on socket descriptors would thus prevent a webserver from achieving full throughput. Perhaps the maxsockets variable defined in sys/uipc_socket2.c should be increased. - Mohit To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message