From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 4018 invoked from network); 13 Jun 2000 02:59:20 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 13 Jun 2000 02:59:20 -0000 Received: from ztxmail03.ztx.compaq.com (ztxmail03.ztx.compaq.com [161.114.1.207]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id WAA01510 for ; Mon, 12 Jun 2000 22:59:17 -0400 Received: by ztxmail03.ztx.compaq.com (Postfix, from userid 12345) id B66F1BA4; Mon, 12 Jun 2000 21:58:46 -0500 (CDT) Received: from pdgsrv.mro.dec.com (pdgsrv.mro.dec.com [16.34.112.86]) by ztxmail03.ztx.compaq.com (Postfix) with ESMTP id 22494B9D; Mon, 12 Jun 2000 21:58:46 -0500 (CDT) Received: from linux04.mro.dec.com by pdgsrv.mro.dec.com; (8.8.8/1.1.8.2/13Dec96-1209PM) id WAA28393; Mon, 12 Jun 2000 22:58:45 -0400 (EDT) Received: (from jestabro@localhost) by linux04.mro.dec.com (8.9.3/8.9.3) id WAA00752; Mon, 12 Jun 2000 22:59:04 -0400 Date: Mon, 12 Jun 2000 22:59:04 -0400 From: Jay Estabrook To: Greg Lindahl Cc: Peter Rival , axp-list@redhat.com Subject: Re: 2.2.16 Alpha: "Fix SMP rescheduling with lock held" Message-ID: <20000612225904.B734@linux04.mro.dec.com> Mail-Followup-To: Greg Lindahl , Peter Rival , axp-list@redhat.com References: <39455D03.A8B2B601@zk3.dec.com> <000a01bfd4be$01b55900$198bfea9@hptilap.hpti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <000a01bfd4be$01b55900$198bfea9@hptilap.hpti.com>; from glindahl@hpti.com on Mon, Jun 12, 2000 at 06:31:52PM -0400 On Mon, Jun 12, 2000 at 06:31:52PM -0400, Greg Lindahl wrote: > > > The "spinlock stuck" message is just a debugging aid AFAIK, > > ... and I should also mention that I'm getting spinlock grabbed. Which is an > error, not a warning. I beg your pardon? Both of those prints are part of the "debugging" code associated with the SMP lock primitives. They are meant to be informative; the "stuck" one indicates when a lock is being held for a long period of time (relatively speaking, and essentially an arbitrary definition of "long"). The "grabbed" message simply indicates when a process that was "stuck" actually got the lock. The "ticks" indicated are jiffies, of course, and on ALPHA there are usually 1024/second, so when a "grabbed" message is printed saying it waited for 6732 ticks, that's 6+ seconds. That seemed awful long to me when I first saw it, so I asked either Linus or Alan about it, and they said it was "normal" or "reasonable", so I stopped worrying. Perhaps it's time to ask again, though I'd be quite worried if I saw that much time on a 2.4.xx kernel... ;-} In addition, the "stuck" and "grabbed" messages indicate on which CPU the "stickee" and the "owner" are running. If you see a bunch of "stuck" messages with the same owner/CPU, they're all waiting for that one. If you see a bunch of "stuck" messages, and no "grabbed", THAT is a problem, ie usually the owner/CPU has died some horrible death without releasing the lock, and no progress can ever be made - you're hosed. Is this what you're seeing? --Jay++ ----------------------------------------------------------------------------- Jay A Estabrook Alpha Engineering - LINUX Project Compaq Computer Corp. - MRO1-2/K20 (508) 467-2080 200 Forest Street, Marlboro MA 01752 Jay.Estabrook@compaq.com -----------------------------------------------------------------------------