From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 24 10:28:35 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BD2337B401 for ; Tue, 24 Jun 2003 10:28:35 -0700 (PDT) Received: from seed.net.tw (sn16.seed.net.tw [139.175.54.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7B9243F75 for ; Tue, 24 Jun 2003 10:28:33 -0700 (PDT) (envelope-from leafy@chihiro.leafy.idv.tw) Received: from [210.64.32.88] (port=49187 helo=chihiro.leafy.idv.tw) by seed.net.tw with esmtp (Seednet 4.14:2) id 19Uraq-0003bk-Tz for freebsd-hackers@freebsd.org; Wed, 25 Jun 2003 01:28:33 +0800 Received: from chihiro.leafy.idv.tw (nobody@localhost [127.0.0.1]) by chihiro.leafy.idv.tw (8.12.9/8.12.9) with ESMTP id h5OHSVFV024349 for ; Wed, 25 Jun 2003 01:28:31 +0800 (CST) (envelope-from leafy@chihiro.leafy.idv.tw) Received: (from leafy@localhost) by chihiro.leafy.idv.tw (8.12.9/8.12.9/Submit) id h5OHSVM3024348 for freebsd-hackers@freebsd.org; Wed, 25 Jun 2003 01:28:31 +0800 (CST) Date: Wed, 25 Jun 2003 01:28:31 +0800 From: leafy To: freebsd-hackers@freebsd.org Message-ID: <20030624172831.GA24320@chihiro.leafy.idv.tw> References: <20030624171426.GU34365@iconoplex.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i Subject: Re: How to delete unix socket entries X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2003 17:28:35 -0000 On Tue, Jun 24, 2003 at 09:23:01PM +0400, Varshavchick Alexander wrote: > Surely, but sockstat shows only the correct number of entries, I mean that > it doesn't show anything that is due to be killed. Yet netstat shows a > whole lot (about 2000!) of entries like these: > How can I get rid of these extra ones? you might want to tweak these: net.inet.tcp.keepidle: 7200000 net.inet.tcp.keepintvl: 75000 so that to-be-killed connections won't stay up so long. -- "Without the userland, the kernel is useless." --inspired by The Tao of Programming