Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Peter Rival <frival@zk3.dec.com>
Cc: axp-list@redhat.com
Subject: Re: 2.2.16 Alpha: "Fix SMP rescheduling with lock held"
Date: Thu, 22 Jun 2000 20:28:15 +0000	[thread overview]
Message-ID: <395276DF.553EB208@zk3.dec.com> (raw)
In-Reply-To: 000601bfdc7d$f05fdbe0$e4844b89@hptilap.hpti.com

Greg Lindahl wrote:

> OK, so I finally got a node to hang:
>
> sched.c:30 spinlock stuck in pbs_mom at fffffc000032cd64(1) owner
> a.out.system14. at fffffc000032cd64(0) sched.c:30
> sched.c:30 spinlock stuck in pbs_mom at fffffc000032cd64(1) owner
> a.out.system14. at fffffc000032cd64(0) sched.c:30
> sched.c:30 spinlock stuck in pbs_mom at fffffc000032cd64(1) owner
> a.out.system14. at fffffc000032cd64(0) sched.c:30
>

Hmm...that comes from this code right here (sched.c:821):
...
        kstat.context_swtch++;
        get_mmu_context(next);
        switch_to(prev, next, prev);
        __schedule_tail(prev);
same_process:
        reacquire_kernel_lock(current);
        return;
...

So, that means it's our good friend the kernel_lock again.  How long did the
system hang for before you killed it?  I'm just a little curious if it would
have recovered "eventually".  Are you either doing 1) a lot of data
transfers or 2) a lot of heavily threaded work?

Problem here is that this code probably will do the same thing in this
section of code in 2.3/2.4 - that particular section of code is roughly the
same.

>
> This is printed once every few minutes on the console of the hung system.
> There are two copies of a.out.system14. running.  That's some of the
> problem with the magic of the kernel_lock - it makes it a little too easy
> to use... :(
>
> The kernel is the RedHat-compiled 2.2.14-6.0smp.
>
> My question is: is this bug fixed by the 2.2.16 patch to alpha/smp.c ? I
> suppose I should try it, but it's nice to understand these things well
> enough to know...
>

It doesn't look like it should be.  That code is in pointer_lock() which is
only called by smp_call_function() (at least as far as cscope is concerned,
anyway).  It's entirely possible that it might, however, if somehow your
code is making heavy use of the smp_call_function() in some way.  (I'm
guessing a bit here, but hey - it's better than nothing. ;)  Obviously Jay
or rth (or whomever submitted the change) would know better.

 - Pete


  reply	other threads:[~2000-06-22 20:28 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
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 [this message]
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