From owner-freebsd-net@FreeBSD.ORG Fri Dec 30 23:31:46 2011 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 41EE1106564A; Fri, 30 Dec 2011 23:31:46 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 16A718FC08; Fri, 30 Dec 2011 23:31:46 +0000 (UTC) Received: from [192.168.2.105] (host86-161-238-124.range86-161.btcentralplus.com [86.161.238.124]) by cyrus.watson.org (Postfix) with ESMTPSA id 10DA846B09; Fri, 30 Dec 2011 18:31:44 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: "Robert N. M. Watson" In-Reply-To: <4EFE158C.2040705@FreeBSD.org> Date: Fri, 30 Dec 2011 23:31:43 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4EB804D2.2090101@FreeBSD.org> <4EB86276.6080801@sippysoft.com> <4EB86866.9060102@sippysoft.com> <4EB86FCF.3050306@FreeBSD.org> <4ECEE6F0.4010301@FreeBSD.org> <4EFE158C.2040705@FreeBSD.org> To: Maxim Sobolev X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-net@freebsd.org, "Bjoern A. Zeeb" , Jack Vogel Subject: Re: Panic in the udp_input() under heavy load 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: Fri, 30 Dec 2011 23:31:46 -0000 On 30 Dec 2011, at 19:48, Maxim Sobolev wrote: > On 11/24/2011 11:24 PM, Robert N. M. Watson wrote: >>>> There was recently a commit to fix a race condition in 10-CURRENT = which >>>> >> I think is not slated to be merged for 9.0. You might check the = commit >>>> >> logs there and see if that fixes the problems you have -- if = so, we >>>> >> might want to reconsider the plan not to merge for 9.0. >>>> >> >>>> >> (It relates to a race condition on closing sockets..) >>> > >>> > Thank you for the tip. I will give it a try and see what happens. = So far, after installing that trap we have not seen any panics yet. I = have not checked logs yet if my trap actually has catch anything or not. >> Do we know if this fix has been merged to stable/9 and releng/9.0? = Given multiple reports of instability without it, I think we would be = well-served to merge it at this point. >=20 > Hey Robert, sorry to bother you again, but can you at least point me = towards specific SVN revisions that I need to get merged? I tried to = google it and also browsed my svn history for the last 4 months using = keyword "sockets", but nothing came up. This fix is critical for any = system that does lot of fault-ctitical networking, and FreeBSD has = always been solid in this regard. It saved us at least 10-15 crashes = across 5 machines in the last month. Hi Maxim: Looking back at a recent post from you, it appears that you are on 8.x = and not 9.x, as I had assumed form your original e-mail. The patch I was = referring to in 9-CURRENT has long since been merged for 9.0 and will = appear in that release. However, it does not apply to 8.x, as the bug it = fixed was introduced during the 9.x cycle. We'll need to do a = from-scratch diagnosis here rather than assume it's the same problem. = Could I ask you to follow up to this post with version information, = stack traces from relevant threads, etc? I am not aware of any other = reports of UDP-related crashes along the lines of what you've described = in 8.x, so it may be being triggered by some unusual aspect of your = workload (or just bad luck). Sorry that there's no instant "merge a = patch" fix for this one. Thanks, Robert=