From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id DACEC2F203 for ; Mon, 18 Jun 2001 15:39:51 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f5IJcGL26779 for axp-list@listman.redhat.com; Mon, 18 Jun 2001 15:38:16 -0400 Received: from woody.fsl.noaa.gov (IDENT:root@woody.fsl.noaa.gov [137.75.132.225]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5IJcFb26775 for ; Mon, 18 Jun 2001 15:38:15 -0400 Received: (from tierney@localhost) by woody.fsl.noaa.gov (8.9.3/8.9.3) id NAA15002 for axp-list@redhat.com; Mon, 18 Jun 2001 13:35:43 -0600 Date: Mon, 18 Jun 2001 13:35:43 -0600 From: Craig Tierney To: axp-list@redhat.com Subject: Re: Problems with stuck spinlocks in 2.2.19 Message-ID: <20010618133543.E14891@hpti.com> References: <20010618120855.A14891@hpti.com> <3B2E479C.34FADDC1@zk3.dec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.6i In-Reply-To: <3B2E479C.34FADDC1@zk3.dec.com>; from frival@zk3.dec.com on Mon, Jun 18, 2001 at 02:25:32PM -0400 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: 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