From owner-cvs-all@FreeBSD.ORG Thu Oct 23 22:44:15 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1520816A4B3; Thu, 23 Oct 2003 22:44:15 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89F2743FBD; Thu, 23 Oct 2003 22:44:14 -0700 (PDT) (envelope-from silby@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h9O5iEXJ029102; Thu, 23 Oct 2003 22:44:14 -0700 (PDT) (envelope-from silby@repoman.freebsd.org) Received: (from silby@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h9O5iEYJ029101; Thu, 23 Oct 2003 22:44:14 -0700 (PDT) (envelope-from silby) Message-Id: <200310240544.h9O5iEYJ029101@repoman.freebsd.org> From: Mike Silbersack Date: Thu, 23 Oct 2003 22:44:14 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet tcp_subr.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2003 05:44:15 -0000 silby 2003/10/23 22:44:14 PDT FreeBSD src repository Modified files: sys/netinet tcp_subr.c Log: Reduce the number of tcp time_wait structs to maxsockets / 5; this ensures that at most 20% of sockets can be in time_wait at one time, ensuring that time_wait sockets do not starve real connections from inpcb structures. No implementation change is needed, jlemon already implemented a nice LRU-ish algorithm for tcp_tw structure recycling. This should reduce the need for sysadmins to lower the default msl on busy servers. Revision Changes Path 1.164 +1 -1 src/sys/netinet/tcp_subr.c