Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Craig Tierney <ctierney@hpti.com>
To: axp-list@redhat.com
Subject: Re: Problems with stuck spinlocks in 2.2.19
Date: Mon, 18 Jun 2001 13:35:43 -0600	[thread overview]
Message-ID: <20010618133543.E14891@hpti.com> (raw)
In-Reply-To: <3B2E479C.34FADDC1@zk3.dec.com>; from frival@zk3.dec.com on Mon, Jun 18, 2001 at 02:25:32PM -0400

On Mon, Jun 18, 2001 at 02:25:32PM -0400, Peter Rival wrote:
> Hi Craig,
> 
>     Your best bet is probably to  rebuild your cluster with
> -fomit-frame-pointer turned off and -g3 added to the compile flags.  That
> way you'll get a full symbol table to work with.  From there, you can
> "gdb vmlinux /proc/kcore" and then "list *0xfffffc000032de14".  That will
> tell you where the spinlock is coming from.  Hrm...  read_write.c sounds
> familiar...
> 
>     This is supposed to be just a debugging message, but has been known
> to cause systems to hang.  If you're feeling adventurous, you could
> always set DEBUG_SPINLOCK to 0 in arch/alpha/kernel/spinlock.c.  The real
> problem, if memory serves, is that I think you're running into a proble
> with the global kernel lock in the lseek() routine which isn't fixed
> until the 2.4 series.  Sure you can't make that upgrade?  I'm doubting
> it, but thought I'd ask anyway. :)

In a perfect world of course.  

I am rebuild the kernel as you suggested and will try that out.
The problem with this is that it takes about 24 hours before
we start to see a failure on one of the nodes.  

I am looking that the source code for read_write.c between
2.4.4 and 2.2.19.  It seems that in the llseek routines there
are not that many changes.  The main difference between
the size of a couple of the types (int to long) that the
lock_kernel() and unlock kernel calls have been moved
from sys_lseek() to llseek().

2.2.19 version of llseek:

static inline loff_t llseek(struct file *file, loff_t offset, int origin)
{
        loff_t (*fn)(struct file *, loff_t, int);

        fn = default_llseek;
        if (file->f_op && file->f_op->llseek)
                fn = file->f_op->llseek;
        return fn(file, offset, origin);
}

2.4.4 version of llseek:

static inline loff_t llseek(struct file *file, loff_t offset, int origin)
{
        loff_t (*fn)(struct file *, loff_t, int);
        loff_t retval;

        fn = default_llseek;
        if (file->f_op && file->f_op->llseek)
                fn = file->f_op->llseek;
        lock_kernel();
        retval = fn(file, offset, origin);
        unlock_kernel();
        return retval;
}


In sys_lseek in 2.2.19, the lock_kernel() is at the beginning
of the function and unlock_kernel() is right at the end.  The
llseek function is called only from sys_lseek.  

The code beyond that is no different as far as I can tell.  The
lock is just a bit more localized.

Or were you saying that the global lock has the problem and not
how the global lock is called in lseek?

Craig

> 
>  - Pete
> 
> Craig Tierney wrote:
> 
> > I am running linux-2.2.19 on a base of Redhat 6.1 on
> > several dual processor UP2000 nodes.  Packages
> > that are requred to be upgraded according to the kernel
> > have been.  The kernel has been patched to include
> > a few NFS patches for this kernel.
> >
> > I am having problems with the nodes hanging up.
> > I am getting messages like the following:
> >
> > sched.c:28 spinlock stuck in identd at fffffc000032de14(0) owner ps at
> > fffffc0000350cd8(1) read_write.c:41
> >
> > The messages are not all the same.  Once I saw when
> > csh was fighting with csh.  I did not record all
> > the messages though.
> >
> > When these messages start to show up on the console,
> > the node never gets unstuck.  You cannot rsh into
> > the node. Rebooting is the only way to clear it up.
> >
> > Since these nodes are in a cluster, there are many
> > rsh and ssh processes to the boxes for mpi jobs.
> >
> > My real question is not what is wrong, but how can
> > I debug lock problems like this?  The line numbers never
> > seem to correspond to any lines in the source code
> > that are relevant (sometimes #include lines, other times
> > just white space, but not to spinlocks or other SMP
> > mechanisms).
> >
> > Thanks,
> > Craig
> >
> > --
> > Craig Tierney (ctierney@hpti.com)
> > phone: 303-497-3112
> >
> > _______________________________________________
> > Axp-list mailing list
> > Axp-list@redhat.com
> > https://listman.redhat.com/mailman/listinfo/axp-list
> 
> 
> 
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list

-- 
Craig Tierney (ctierney@hpti.com)
phone: 303-497-3112




  parent reply	other threads:[~2001-06-18 19:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-18 18:08 Problems with stuck spinlocks in 2.2.19 Craig Tierney
2001-06-18 18:25 ` Peter Rival
2001-06-18 19:11   ` Greg Lindahl
2001-06-18 19:35   ` Craig Tierney [this message]
2001-06-18 20:05     ` Peter Rival
2001-06-19 23:07     ` Craig Tierney
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