From owner-freebsd-questions@FreeBSD.ORG Sat Nov 19 21:33:56 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 895CE16A41F for ; Sat, 19 Nov 2005 21:33:56 +0000 (GMT) (envelope-from dgl@kirk.dlee.org) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E52943D45 for ; Sat, 19 Nov 2005 21:33:55 +0000 (GMT) (envelope-from dgl@kirk.dlee.org) Received: from kirk.dlee.org ([69.143.16.144]) by comcast.net (sccrmhc11) with ESMTP id <2005111921334401100266dle>; Sat, 19 Nov 2005 21:33:49 +0000 Received: from kirk.dlee.org (dgl@localhost.dlee.org [127.0.0.1]) by kirk.dlee.org (8.12.11/8.12.11) with ESMTP id jAJLXhD6005208; Sat, 19 Nov 2005 16:33:43 -0500 (EST) (envelope-from dgl@kirk.dlee.org) Received: (from dgl@localhost) by kirk.dlee.org (8.12.11/8.12.11/Submit) id jAJLXhcY005207; Sat, 19 Nov 2005 16:33:43 -0500 (EST) (envelope-from dgl) Date: Sat, 19 Nov 2005 16:33:42 -0500 From: Doug Lee To: Kris Kennaway Message-ID: <20051119213342.GB1042@kirk.dlee.org> Mail-Followup-To: Doug Lee , Kris Kennaway , freebsd-questions@freebsd.org References: <20051119183236.GA1042@kirk.dlee.org> <20051119210903.GC21199@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051119210903.GC21199@xor.obsecurity.org> Organization: SSB + BART Group User-Agent: Mutt/1.5.9i Cc: freebsd-questions@freebsd.org Subject: Re: deadlock caused by idprio? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Nov 2005 21:33:56 -0000 Any hidden hazards in rtprio then? I plan to use rtprio when recording sound, so i/o bursts etc. won't cause things to be missed in the recording. Thanks much for the idprio heads-up. And I do hope, sometime, to jump from 4 to 6 directly--though I also plan to buy a new machine for that. I currently run 4.10 on a P166. Nice to have support for old hardware, and amazing that all I miss in using it are speed of MySQL and mail searches and sound-handling performance; but it is time... On Sat, Nov 19, 2005 at 04:09:03PM -0500, Kris Kennaway wrote: On Sat, Nov 19, 2005 at 01:32:36PM -0500, Doug Lee wrote: > I just ran a MySQL lookup process (written in Perl) as root prefixed > with "idprio 1." I expected it to take a while, but not several > minutes. After a while I decided to abort it, so I typed ^c in its > `screen' window. From then on (either from the ^c point or the idprio > run, I know not which), I could not create any new processes, nor > could I kill the running task. Any attempt to do either would hang > indefinitely. I could end processes and work within existing > processes as long as they didn't try to create new ones. I entered > the debugger (I use the alt method of ~^b) and typed, among other > things, "show lockedvnodes" and got one vnode which said "... with 22 > pending," and this count went up by 1 each time I tried creating a new > process. Sadly, I forgot to snapshot that screen, so I can't quote > the rest of that entry. I remember it said VDIR and type > something+VOBJECT, but I don't remember what the something was. > Unable to retrieve my system, I finally typed "panic" in the debugger > so at least the disks would sync. Other than "giving up on 4 > buffers," that went fine. > > Any ideas what this is, and whether it's a bug? I thought idprio was > harmless as far as affecting other processes. No, it's known to cause deadlocks. I don't know if this is still the case on 6.0. Kris -- Doug Lee dgl@dlee.org SSB + BART Group doug@bartsite.com http://www.bartsite.com "It is not the mountain in the distance which makes you want to stop walking; but the grain of sand in your shoe." --Anon