From owner-freebsd-current@FreeBSD.ORG Wed Mar 3 21:03:34 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97C9C16A4CE; Wed, 3 Mar 2004 21:03:34 -0800 (PST) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDB5443D1D; Wed, 3 Mar 2004 21:03:33 -0800 (PST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) i2453KrQ038107 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 4 Mar 2004 06:03:28 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id i2453CQn009669 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 4 Mar 2004 06:03:13 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.10/8.12.10) with ESMTP id i2453Cc5086796; Thu, 4 Mar 2004 06:03:12 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.10/8.12.10/Submit) id i2453BB9086795; Thu, 4 Mar 2004 06:03:11 +0100 (CET) (envelope-from ticso) Date: Thu, 4 Mar 2004 06:03:11 +0100 From: Bernd Walter To: Robert Watson Message-ID: <20040304050310.GC84478@cicely12.cicely.de> References: <200403031721.i23HLUo9023985@cwsys.cwsent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.61 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on cicely5.cicely.de cc: freebsd-current@freebsd.org Subject: Re: sysctl spinning (was: Re: ps Causes Hard Hang) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2004 05:03:34 -0000 On Wed, Mar 03, 2004 at 01:38:27PM -0500, Robert Watson wrote: > > On Wed, 3 Mar 2004, Cy Schubert wrote: > > > I'm running 5 -CURRENT systems. My firewall system, using IPF, hard > > hangs every time ps is entered -- totally unresponsive, requiring either > > a power cycle or reset switch to bring it back to life. > > > > Before I start digging into this seriously I'd like to possibly get info > > from anyone who may have experienced this before. > > Alan Cox and I have both experienced this -- it's actually only a hard > hang if you're trying to use the syscons break to debugger, serial break > to debugger can get into DDB fine. It looks like the sysctl code is > spinning in kernel, possibly due to looping waiting for a response other > than EAGAIN. I'm wonder if it was the recent limits on locked memory > changes in sysctl, although at first we thought it might be the sleepq > changes (seems less likely now). Because sysctl holds Giant, the other > CPUs are locked out of Giant-protected bits of the kernel (many of them), > including Syscons. Me too. My system is also a router, but running ipfw. At least ps, top and w show this problem. System is syscons so I wasn't able to get into DDB - unfortunately all sio(4) serials are half-duplex RS485 so I can't switch to serial console without swapping cards. All commands work fine for a while if I reduce the number of services startet at boot time and it never happened in single user mode. I couldn't make out a single service to trigger this problem. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de