From owner-freebsd-net@FreeBSD.ORG Fri May 13 19:54:32 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11DD716A4CE for ; Fri, 13 May 2005 19:54:32 +0000 (GMT) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43B2C43D77 for ; Fri, 13 May 2005 19:54:31 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received-SPF: pass (mp2.macomnet.net: domain of maxim@macomnet.ru designates 127.0.0.1 as permitted sender) receiver=mp2.macomnet.net; client_ip=127.0.0.1; envelope-from=maxim@macomnet.ru; Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.12.11/8.12.11) with ESMTP id j4DJsTb2089470; Fri, 13 May 2005 23:54:30 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Fri, 13 May 2005 23:54:29 +0400 (MSD) From: Maxim Konovalov To: Matt Ruzicka In-Reply-To: Message-ID: <20050513234632.G89371@mp2.macomnet.net> References: <20050513134227.P616@odysseus.silby.com> <20050513230848.K89035@mp2.macomnet.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: **net** Re: Outbound TCP issue, potentially related to'FreeBSD-SA-05:08.kmem [REVISED]' X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 19:54:32 -0000 [...] > When I check the vmstat while getting errors from the netcat script I get > this. > > -->vmstat -z | grep -i sock 2005/05/13 13:33:20 > socket: 224, 16424, 16438, 0, 1150867 Limit ---------------------^^^^^ Current ---------------------------^^^^^ > Here is my vmstat -z in a "normal" state. > > ITEM SIZE LIMIT USED FREE REQUESTS [...] > socket: 224, 16424, 3621, 12817, 1167053 [...] > And during the failures.. > > ITEM SIZE LIMIT USED FREE REQUESTS [...] > socket: 224, 16424, 16430, 8, 1201620 [...] > Am I pretty much just looking at a tuning issue at this point I assume? 1) Use a persistent connection if possible. 2) /etc/sysctl.conf: net.inet.tcp.msl="5000" net.inet.ip.portrange.last="50000" perhaps /boot/loader.conf: kern.ipc.maxsockets="32768" -- Maxim Konovalov