From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21717 invoked from network); 13 Jun 2000 12:29:17 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 13 Jun 2000 12:29:17 -0000 Received: from ztxmail05.ztx.compaq.com (ztxmail05.ztx.compaq.com [161.114.1.209]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id IAA21465 for ; Tue, 13 Jun 2000 08:29:11 -0400 Received: by ztxmail05.ztx.compaq.com (Postfix, from userid 12345) id 3A94C407; Tue, 13 Jun 2000 07:28:41 -0500 (CDT) Received: from oflume.zk3.dec.com (broflume.zk3.dec.com [16.141.0.42]) by ztxmail05.ztx.compaq.com (Postfix) with ESMTP id CC981420; Tue, 13 Jun 2000 07:28:40 -0500 (CDT) Received: from wavy.zk3.dec.com by oflume.zk3.dec.com (8.8.8/1.1.22.3/03Mar00-0551AM) id IAA0000013829; Tue, 13 Jun 2000 08:28:40 -0400 (EDT) Received: from zk3.dec.com by wavy.zk3.dec.com (8.9.3/1.1.27.5/31Jan00-1243PM) id IAA0000880310; Tue, 13 Jun 2000 08:28:36 -0400 (EDT) Sender: frival@wavy.zk3.dec.com Message-ID: <394628FA.534465D8@zk3.dec.com> Date: Tue, 13 Jun 2000 12:28:42 +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 To: Jay Estabrook Cc: Greg Lindahl , axp-list@redhat.com Subject: Re: 2.2.16 Alpha: "Fix SMP rescheduling with lock held" References: <39455D03.A8B2B601@zk3.dec.com> <000a01bfd4be$01b55900$198bfea9@hptilap.hpti.com> <20000612225904.B734@linux04.mro.dec.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Jay Estabrook wrote: > The "grabbed" message simply indicates when a process that was "stuck" > actually got the lock. The "ticks" indicated are jiffies, of course, > and on ALPHA there are usually 1024/second, so when a "grabbed" > message is printed saying it waited for 6732 ticks, that's 6+ seconds. > That seemed awful long to me when I first saw it, so I asked either > Linus or Alan about it, and they said it was "normal" or "reasonable", > so I stopped worrying. Perhaps it's time to ask again, though I'd be > quite worried if I saw that much time on a 2.4.xx kernel... ;-} > Truth be told, that's a _really_ long time. We start to freak out when we see locks in Tru64 have a waitsum of >2 seconds _total_ in an hour benchmark run. In Tru64, that's considered easy pickin's for perf guys like me, where it's a simple sign of bad lock design. But then again, Tru64 has probably in the area of an order of magnitude (at least) more locks than Linux does, so one lock hogging that much time is a much clearer sign than the more coarse granularity of Linux. So what am I saying? Yes, it is a bad thing from a perf perspective, and only gets worse as the systems get bigger and faster. That's why I try to keep on top of the lockmeter code for Alpha (can be gotten from SGI, works now with a small patch from me until John integrates it) - so we can make sure we always know what is going on whenever possible. (Not helpful in this case, as it's at boot time, but other than that...) BTW - Greg, could you send me a couple of lines of the "spinlock stuck" and "spinlock grabbed" messages? I'm curious which locks are getting in the way, and if they're the same ones I see now and again... - Pete