From owner-freebsd-net@FreeBSD.ORG Sat Nov 10 00:09:15 2007 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 895F316A417 for ; Sat, 10 Nov 2007 00:09:15 +0000 (UTC) (envelope-from mattjreimer@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.freebsd.org (Postfix) with ESMTP id 4C79013C4C8 for ; Sat, 10 Nov 2007 00:09:15 +0000 (UTC) (envelope-from mattjreimer@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so1398339pyb for ; Fri, 09 Nov 2007 16:09:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=bTWGoPBEAmk6rR2Gb/h0QePWMcyFe6wf7XL2JhRpUBc=; b=XlItE3Kummi8utSYBiTcpV+gD7YbDFP8hfW+swImKm26mxVhCdaKr15Co6dBC8RoVwf5525FHHgE775+JfUOYhsm8h/W9FVNE1PQr0JEl9zWw9MEsQratJGvgtS8/VIwrViGuNmd4Ww7uxhOvADYiC2BASrb4r8fvc8R5HceyHM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=eWVkAtjDWtr43S0K0RNAlWoULfkSGRQOHCt3hCtVzU7equ85iW8vGiVjVtLlU9R+sHgnetzQO8KjAkwNUQPBP+nTQIofxUIhWrq8mNV72onxtlwvgD2HNng/Hub1jY6Vw8voa3CkJHiWR8XOYaKHDPnC4HrCnEqz16WcRBX9oFs= Received: by 10.35.79.3 with SMTP id g3mr2696335pyl.1194653346885; Fri, 09 Nov 2007 16:09:06 -0800 (PST) Received: by 10.35.67.16 with HTTP; Fri, 9 Nov 2007 16:09:06 -0800 (PST) Message-ID: Date: Fri, 9 Nov 2007 16:09:06 -0800 From: "Matt Reimer" To: net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Should syncache.count ever be negative? 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: Sat, 10 Nov 2007 00:09:15 -0000 On a eight core machine running RELENG_7 I'm seeing TCP stalls, sometimes lasting up to 60 seconds or so. While trying to track this down I noticed that net.inet.tcp.syncache.count is negative. Should it be possible for the count to go negative? Perhaps it indicates a race, or the counter is wrongly being decremented twice? Matt # sysctl net.inet.tcp.syncache net.inet.tcp.syncache.rst_on_sock_fail: 1 net.inet.tcp.syncache.rexmtlimit: 3 net.inet.tcp.syncache.hashsize: 512 net.inet.tcp.syncache.count: -97 net.inet.tcp.syncache.cachelimit: 15360 net.inet.tcp.syncache.bucketlimit: 30