From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 23 15:15:25 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D82AF16A417 for ; Thu, 23 Aug 2007 15:15:25 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id 8DCE013C45A for ; Thu, 23 Aug 2007 15:15:25 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8k) with ESMTP id 204831900-1834499 for multiple; Thu, 23 Aug 2007 11:15:30 -0400 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l7NFFHrr018935; Thu, 23 Aug 2007 11:15:21 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Thu, 23 Aug 2007 09:55:34 -0400 User-Agent: KMail/1.9.7 References: <20070820131218.GA2198@alamar.org> In-Reply-To: <20070820131218.GA2198@alamar.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708230955.34963.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [192.168.0.1]); Thu, 23 Aug 2007 11:15:21 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/4033/Thu Aug 23 05:36:42 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: "Julian D. Seifert" Subject: Re: process freeze (state *inp) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 15:15:25 -0000 On Monday 20 August 2007 09:12:18 am Julian D. Seifert wrote: > Hi, > > I'm running an ircd (derived from unrealircd) on a FreeBSD 5.5-Release. > Most times it runs totally okay but sometimes (not reproducable) > the process freezes with state "*inp" shown with "top". > > On no other operating system this problem occurs. > (Linux 2.6.x and FreeBSD 6.2 and -Current) > > When I googled for information I found this in the FAQ of unrealircd: > http://www.unrealircd.com/faq.php#105 > > I assume the bug they refer to is also present in 5.5-Rls and that this is > the cause of the random freezes. I asked the unreal developers if they > know any more specifics but they didn't. > > Does anyone know what "tcp socket bug" they are referring to? > I'm not so familiar with the FreeBSD kernel(and debugging it etc.) > The simplest solution is probably to upgrade to 6.2 but I'd prefer fixing the > bug for 5.5.. > > (I forgot to mention that I formerly had 5.4-RLS installed and experienced the > same problem) > > MfG, > > Julian D. `alamar` Seifert The "*inp" state means that the thead is blocked on a mutex named "inp", probably a lock for an inpcb (internet protocol control block: IP-specific data about a socket). The network stack locking had a _lot_ of changes in 6.x, and backporting them is probably very non-trivial. I'd definitely suggest updating to 6.2 (or even 6-stable) as there are many more bugs fixed in 6.x whereas 5.x does not receive hardly any bug fixes at this point. -- John Baldwin