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 3363A2FE45 for ; Mon, 18 Jun 2001 16:08:38 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f5IK72l29731 for axp-list@listman.redhat.com; Mon, 18 Jun 2001 16:07:02 -0400 Received: from ztxmail03.ztx.compaq.com (ztxmail03.ztx.compaq.com [161.114.1.207]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5IK72b29726 for ; Mon, 18 Jun 2001 16:07:02 -0400 Received: by ztxmail03.ztx.compaq.com (Postfix, from userid 12345) id 2A31B2D3; Mon, 18 Jun 2001 15:08:13 -0500 (CDT) Received: from taynzmail03.nz-tay.cpqcorp.net (taynzmail03.nz-tay.cpqcorp.net [16.47.4.103]) by ztxmail03.ztx.compaq.com (Postfix) with ESMTP id DB0833A for ; Mon, 18 Jun 2001 15:08:12 -0500 (CDT) Received: by taynzmail03.nz-tay.cpqcorp.net (Postfix, from userid 12345) id 5485E419; Mon, 18 Jun 2001 16:08:11 -0400 (EDT) Received: from anw.zk3.dec.com (wasted.zk3.dec.com [16.140.32.3]) by taynzmail03.nz-tay.cpqcorp.net (Postfix) with ESMTP id 4322E656 for ; Mon, 18 Jun 2001 16:08:11 -0400 (EDT) Received: from zk3.dec.com by anw.zk3.dec.com (8.9.3/1.1.22.2/08Sep98-0251PM) id QAA0000895208; Mon, 18 Jun 2001 16:08:10 -0400 (EDT) Message-ID: <3B2E5F0E.7A8139ED@zk3.dec.com> Date: Mon, 18 Jun 2001 16:05:34 -0400 From: Peter Rival Organization: Tru64 QMG Performance Engineering X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Problems with stuck spinlocks in 2.2.19 References: <20010618120855.A14891@hpti.com> <3B2E479C.34FADDC1@zk3.dec.com> <20010618133543.E14891@hpti.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: Craig Tierney wrote: > On Mon, Jun 18, 2001 at 02:25:32PM -0400, Peter Rival wrote: > > 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 didn't expect you could. One nice thing about my systems not being used for production boxen. :) > > 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 understand that feeling. We have tests that take _days_ sometimes. ;) If you're just rebuilding with the same kernel config, you shouldn't need to reboot - the symbols should pretty much match up with what you have in your running kernel. It's worth a try, anyway... > > 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(). > > > 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. > Right. The difference is not in the llseek() code, but rather in the other users of the global kernel lock. Usually it's not used because it's a good design decision, but because it's easier to get working that way. > > Or were you saying that the global lock has the problem and not > how the global lock is called in lseek? > Both.:) I don't see any _real_ reason to have the global lock held in a filesystem-specific call such as lseek(). Last thing I checked, it doesn't have much to do with networking, or VM, or scheduling, or... The important question is not only who is waiting for the lock, but who is holding it. If you really want to dig into this, get the lockmeter patches from oss.sgi.com/projects/lockmeter. I ported them over to Alpha about a year ago - I'm not positive about the 2.2 patches, but when I did the port I made sure both 2.2 and 2.4 (then 2.3) worked. Patch in, rebuild, reboot and run your load. Somewhere in the middle (I'm assuming the load is somewhat steady-state) run lockmeter for say 5 minutes. The report you get should tell you who is the big culprit for the lock problem you're seeing. I'm hoping that it's in the global kernel lock and that it's in code that you can make some fairly easy changes to. :) Of course, this is quite a bit of work, so I wouldn't blame you for not putting yourself through it. Let me/us know what you come up with in whatever you're able to check out. - Pete