From: Peter Rival <frival@zk3.dec.com>
To: axp-list@redhat.com
Subject: Re: Problems with stuck spinlocks in 2.2.19
Date: Mon, 18 Jun 2001 16:05:34 -0400 [thread overview]
Message-ID: <3B2E5F0E.7A8139ED@zk3.dec.com> (raw)
In-Reply-To: 20010618133543.E14891@hpti.com
Craig Tierney wrote:
> On Mon, Jun 18, 2001 at 02:25:32PM -0400, Peter Rival wrote:
<snip>
> > 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().
>
<snip code detective work>
>
> 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
next prev parent reply other threads:[~2001-06-18 20:08 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
2001-06-18 20:05 ` Peter Rival [this message]
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