Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jay Estabrook <Jay.Estabrook@compaq.com>
To: Greg Lindahl <glindahl@hpti.com>
Cc: Peter Rival <frival@zk3.dec.com>, axp-list@redhat.com
Subject: Re: 2.2.16 Alpha: "Fix SMP rescheduling with lock held"
Date: Mon, 12 Jun 2000 22:59:04 -0400	[thread overview]
Message-ID: <20000612225904.B734@linux04.mro.dec.com> (raw)
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
-----------------------------------------------------------------------------


  reply	other threads:[~2000-06-13  2:59 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-01 21:36 oops! need help! Jonathan DuBois
2000-06-01 19:41 ` Jeff Sturm
2000-06-02  1:42   ` floppyless install? Jeff DeMaagd
2000-06-02  3:08     ` Way to go, Greg! Larry Snyder
2000-06-02  5:02       ` Greg Lindahl
2000-06-12 21:32       ` 2.2.16 Alpha: "Fix SMP rescheduling with lock held" Greg Lindahl
2000-06-12 21:58         ` Peter Rival
2000-06-12 22:31           ` Greg Lindahl
2000-06-13  2:59             ` Jay Estabrook [this message]
2000-06-13 12:28               ` Peter Rival
2000-06-13 14:49                 ` Jay Estabrook
2000-06-13 18:12                   ` W Bauske
2000-06-13 18:40                     ` Jay Estabrook
2000-06-13 18:50                       ` Greg Lindahl
2000-06-13 22:15                       ` W Bauske
2000-06-14  0:49                         ` Greg Lindahl
2000-06-13 20:55                           ` Jeff Sturm
2000-06-14  3:51                             ` W Bauske
2000-06-14 11:05                             ` Peter Rival
2000-06-14  2:16                           ` W Bauske
2000-06-14 17:20                             ` Greg Lindahl
2000-06-14 18:46                               ` W Bauske
2000-06-22 19:13                             ` Greg Lindahl
2000-06-22 20:28                               ` Peter Rival
2000-06-23 16:02                                 ` Greg Lindahl
2000-06-14 11:24                           ` Peter Rival
2000-06-13 18:40                     ` Peter Rival
2000-06-13 21:58                       ` W Bauske
2000-06-14 11:23                         ` Peter Rival
2000-06-13 20:46                     ` 2.2.16 Alpha, exceptions, de4x5? John Groseclose
2000-06-13 18:29               ` 2.2.16 Alpha: "Fix SMP rescheduling with lock held" Greg Lindahl
2000-06-13 18:41                 ` Peter Rival
2000-06-02 21:47     ` floppyless install? tibor
2000-06-03  3:54       ` Jeff DeMaagd
2000-06-04  0:45 ` oops! need help! Craig P Prescott
2000-06-04  1:53   ` Jeff Sturm
2000-06-04  2:54     ` Larry Snyder
2000-06-04  3:47       ` Ross A Knepper
2000-06-04  5:32       ` Craig P Prescott
2000-06-06 15:32         ` oops! need help! (thanks! -- its working now) Jonathan Dubois
  -- strict thread matches above, loose matches on Subject: below --
2000-06-12 22:26 2.2.16 Alpha: "Fix SMP rescheduling with lock held" Brad Lucier
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox