From owner-freebsd-arch Thu Sep 28 5:42:35 2000 Delivered-To: freebsd-arch@freebsd.org Received: from falla.videotron.net (falla.videotron.net [205.151.222.106]) by hub.freebsd.org (Postfix) with ESMTP id 25E4037B422 for ; Thu, 28 Sep 2000 05:42:29 -0700 (PDT) Received: from modemcable136.203-201-24.mtl.mc.videotron.ca ([24.201.203.136]) by falla.videotron.net (Sun Internet Mail Server sims.3.5.1999.12.14.10.29.p8) with ESMTP id <0G1L00H1GKMQPP@falla.videotron.net> for freebsd-arch@FreeBSD.ORG; Thu, 28 Sep 2000 08:42:26 -0400 (EDT) Date: Thu, 28 Sep 2000 08:46:15 -0400 (EDT) From: Bosko Milekic Subject: Re: spinlocks and acquire pseudo-priority In-reply-to: <20000927230538.I7553@fw.wintelcom.net> To: Alfred Perlstein Cc: freebsd-arch@FreeBSD.ORG Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 27 Sep 2000, Alfred Perlstein wrote: > It seems like a possibility, however a spinlock being that contested is > most likely a problem and needs to be fixed. Not necessarily. It may occur in a big resource starvation where many threads just end up in msleep(), or similar, and many others call wakeup(). > It may be a good idea to examine the lock right before panicing to > see if the lock state has changed. Yeah, I agree, but it may still happen.... although you make it lesss likely by doing that. > It may also be a good idea to alternate between a hard spin and a > DELAY loop rather then backoff so much. > > -- > -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] > "I have the heart of a child; I keep it in a jar on my desk." Bosko Milekic bmilekic@technokratis.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message