From owner-freebsd-net@FreeBSD.ORG Mon Dec 1 15:43:11 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F029A1065673; Mon, 1 Dec 2008 15:43:11 +0000 (UTC) (envelope-from petri@helenius.fi) Received: from silver.he.iki.fi (helenius.fi [83.150.107.219]) by mx1.freebsd.org (Postfix) with ESMTP id A852D8FC12; Mon, 1 Dec 2008 15:43:11 +0000 (UTC) (envelope-from petri@helenius.fi) Received: from localhost (localhost [127.0.0.1]) by silver.he.iki.fi (Postfix) with ESMTP id 69876BC03; Mon, 1 Dec 2008 17:21:02 +0200 (EET) Received: from silver.he.iki.fi ([127.0.0.1]) by localhost (silver.he.iki.fi [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 35Dh+FWJC8gg; Mon, 1 Dec 2008 17:20:55 +0200 (EET) Received: from [83.150.107.196] (d196.helenius.fi [83.150.107.196]) by silver.he.iki.fi (Postfix) with ESMTP; Mon, 1 Dec 2008 17:20:54 +0200 (EET) Message-ID: <49340061.1060100@helenius.fi> Date: Mon, 01 Dec 2008 17:18:57 +0200 From: Petri Helenius User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: Andre Oppermann References: <4933EC58.5030204@nlink.com.br> <4933F7D6.50805@freebsd.org> In-Reply-To: <4933F7D6.50805@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: FreeBSD 7.1 tcp problem (syncache)? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2008 15:43:12 -0000 I couldn't get Apache 2.2 ab to work on 7.0 at all. The ab from 2.0 worked fine... Pete Andre Oppermann wrote: > Paulo Fragoso wrote: >> Hi, >> >> We was using one machine with FreeBSD 6.4-RELEASE running >> apache-worker-2.2.3 + mysql, this server can answer high request from >> one client using ab: >> >> {client}$ ab -n 2000 -c 1000 http://system_using_6.4-RELEASE >> ... >> Benchmarking ***** (be patient) >> Completed 200 requests >> Completed 400 requests >> Completed 600 requests >> Completed 800 requests >> Completed 1000 requests >> Completed 1200 requests >> Completed 1400 requests >> Completed 1600 requests >> Completed 1800 requests >> Finished 2000 requests >> ... >> {client}$ >> >> Using other hardware whit FreeBSD 7.1-PRERELEASE running >> apache-worker-2.2.9_5 + mysql, we have a poor result: >> >> {client}$ ab -n 2000 -c 1000 http://system_using_7.1-PRERELEASE >> ... >> Test aborted after 10 failures >> >> apr_connect(): Invalid argument (22) >> {client}$ >> >> Looking for a problem on new server log we found: >> >> kernel: TCP: [client]:50197 to [server]:80 tcpflags 0x4; >> syncache_chkrst: Spurious RST without matching syncache entry >> (possibly syncookie only), segment ignored >> kernel: TCP: [client]:53845 to [server]:80 tcpflags 0x4; >> syncache_chkrst: Spurious RST without matching syncache entry >> (possibly syncookie only), segment ignored >> kernel: TCP: [client]:53845 to [server]:80 tcpflags 0x4; >> syncache_chkrst: Spurious RST without matching syncache entry >> (possibly syncookie only), segment ignored > > This error is harmless and occurs when the client closes the socket > before the TCP session has terminated. The RST have crossed and hit > the syncache. The same happens on 6.4 but it never told you about it. > >> All sysctl and apache conf are same on both server, is there a tcp >> problem with FreeBSD 7.x? > > Are you using the HTTP accept filter on the server? This may cause > the listen accept queue to overflow. > > Please post the output of "netstat -n -s -p tcp" to further diagnose > the problem. >