From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 28025 invoked from network); 22 Jun 2000 20:28:40 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 22 Jun 2000 20:28:40 -0000 Received: from zmamail04.zma.compaq.com (zmamail04.zma.compaq.com [161.114.64.104]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id QAA30051 for ; Thu, 22 Jun 2000 16:28:39 -0400 Received: by zmamail04.zma.compaq.com (Postfix, from userid 12345) id 5F4B9318; Thu, 22 Jun 2000 16:28:08 -0400 (EDT) Received: from oflume.zk3.dec.com (broflume.zk3.dec.com [16.141.0.42]) by zmamail04.zma.compaq.com (Postfix) with ESMTP id 50BCA247 for ; Thu, 22 Jun 2000 16:28:08 -0400 (EDT) Received: from wavy.zk3.dec.com by oflume.zk3.dec.com (8.8.8/1.1.22.3/03Mar00-0551AM) id QAA0000027971; Thu, 22 Jun 2000 16:28:08 -0400 (EDT) Received: from zk3.dec.com by wavy.zk3.dec.com (8.9.3/1.1.27.5/31Jan00-1243PM) id QAA0001035007; Thu, 22 Jun 2000 16:28:08 -0400 (EDT) Sender: frival@wavy.zk3.dec.com Message-ID: <395276DF.553EB208@zk3.dec.com> Date: Thu, 22 Jun 2000 20:28:15 +0000 From: Peter Rival Organization: Tru64 QMG Performance Engineering X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.15pre15ext3 alpha) X-Accept-Language: en MIME-Version: 1.0 Cc: axp-list@redhat.com Subject: Re: 2.2.16 Alpha: "Fix SMP rescheduling with lock held" References: <000601bfdc7d$f05fdbe0$e4844b89@hptilap.hpti.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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