From owner-freebsd-stable@FreeBSD.ORG Fri Mar 20 06:35:42 2009 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED0301065673 for ; Fri, 20 Mar 2009 06:35:42 +0000 (UTC) (envelope-from eugen@kuzbass.ru) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.freebsd.org (Postfix) with ESMTP id 4DC158FC27 for ; Fri, 20 Mar 2009 06:35:41 +0000 (UTC) (envelope-from eugen@kuzbass.ru) Received: from kuzbass.ru (kost [213.184.65.82]) by www.svzserv.kemerovo.su (8.13.8/8.13.8) with ESMTP id n2K6ZdAn019864; Fri, 20 Mar 2009 13:35:39 +0700 (KRAT) (envelope-from eugen@kuzbass.ru) Message-ID: <49C339AE.E4254A0C@kuzbass.ru> Date: Fri, 20 Mar 2009 13:37:34 +0700 From: Eugene Grosbein Organization: SVZServ X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: ru,en MIME-Version: 1.0 To: Kostik Belousov References: <498FAA2A.7423AC15@kuzbass.ru> <20090209214822.GH9427@deviant.kiev.zoral.com.ua> <20090210040125.GA80054@svzserv.kemerovo.su> <20090210062757.GK9427@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Cc: stable@freebsd.org Subject: Re: sysctl lock in RELENG_6 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2009 06:35:43 -0000 Kostik Belousov wrote: > > On Tue, Feb 10, 2009 at 11:01:25AM +0700, Eugene Grosbein wrote: > > On Mon, Feb 09, 2009 at 11:48:22PM +0200, Kostik Belousov wrote: > > > > > > I've digged commit logs a bit and found this change MFC'd to RELENG_7 > > > > but not RELENG_6: > > > > > > > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/kern_sysctl.c#rev1.177.6.2 > > > > > > > > It seems RELENG_6 needs this too, doesn't it? > > > > I'm going to merge the change to RELENG_6 and give it a try. > > > > > > Yes, please give it a try. In fact, it was quite specific situation > > > that I observed and produced a fix for. You need execing process that > > > needs to grab Giant, e.g. due to image being located on !MPSAFE fs, and > > > simultaneous sysctl issued that inspects this process. > > > > Well, my 6.3-STABLE locked very often (sometimes every hour). > > Yesterday I've upgraded it to 6.4-STABLE, applied 1.177.2.1 of the file > > to sources, rebuilt NanoBSD image and ran it. It has not locked yet. > Can you be slightly more scientific in your tests ? > Try RELENG_6 without my patch to see whether it is needed at all. Well, there was pretty long testing period (over a month) and I conclude: 1. 6.4-STABLE without your patch hangs. 2. 6.4-STABLE with your patch does not. Eugene Grosbein