From owner-cvs-src@FreeBSD.ORG Fri Sep 29 06:24:26 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBB5516A40F; Fri, 29 Sep 2006 06:24:26 +0000 (UTC) (envelope-from silby@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A985B43D49; Fri, 29 Sep 2006 06:24:26 +0000 (GMT) (envelope-from silby@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8T6OQ94032482; Fri, 29 Sep 2006 06:24:26 GMT (envelope-from silby@repoman.freebsd.org) Received: (from silby@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8T6OQ44032481; Fri, 29 Sep 2006 06:24:26 GMT (envelope-from silby) Message-Id: <200609290624.k8T6OQ44032481@repoman.freebsd.org> From: Mike Silbersack Date: Fri, 29 Sep 2006 06:24:26 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/netinet tcp_subr.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2006 06:24:27 -0000 silby 2006-09-29 06:24:26 UTC FreeBSD src repository Modified files: sys/netinet tcp_subr.c Log: Rather than autoscaling the number of TIME_WAIT sockets to maxsockets / 5, scale it to min(ephemeral port range / 2, maxsockets / 5) so that people with large gobs of memory and/or large maxsockets settings will not exhaust their entire ephemeral port range with sockets in the TIME_WAIT state during periods of heavy load. Those who wish to tweak the size of the TIME_WAIT zone can still do so with net.inet.tcp.maxtcptw. Reviewed by: glebius, ru Revision Changes Path 1.263 +24 -8 src/sys/netinet/tcp_subr.c