Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7LIZV727399 for lockmeter-outgoing; Tue, 21 Aug 2001 11:35:31 -0700 Received: from zok.sgi.com (zok.sgi.com [204.94.215.101]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f7LIZT927396 for ; Tue, 21 Aug 2001 11:35:29 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by zok.sgi.com (8.11.4/8.11.4/linux-outbound_gateway-1.0) with ESMTP id f7LIfda03977 for ; Tue, 21 Aug 2001 11:41:39 -0700 Received: from pchawkes (dhcp-163-154-20-203.engr.sgi.com [163.154.20.203]) by cthulhu.engr.sgi.com (SGI-8.9.3/8.9.3) with SMTP id LAA77018; Tue, 21 Aug 2001 11:34:08 -0700 (PDT) Message-ID: <001501c12a6f$fc035da0$cb149aa3@engr.sgi.com> From: "John Hawkes" To: , References: <200108211434.KAA23810@www20.ureach.com> Subject: Re: query related to spinlock metering Date: Tue, 21 Aug 2001 11:34:59 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-lockmeter@oss.sgi.com Precedence: bulk From: "Kapish K" > We have been facing some problems with some kernel defects > and in the process we felt it might be worthwhile to try some > wrapper around the spinlock code to see if it might be getting > called wrongly or released wrongly. So, what we would like to is > just a wrapper around the spinlock code to do some preliminary > checks to make sure the lock is held before releasing it or > along similar lines. SGI's Lockmeter does not provide any such verification. Lockmeter instruments spinlocks in order to report who locks what spinlocks, how often, for how long, and suffering what wait-times in the event of lock contention. > Is this lockmeter from sgi similar in performance and is it > lightweight? Lockmeter is lighter-weight than some spinlock instumention implementations and heavier-weight than other implementations. Typical system slowdowns are in the 5-15% range. And yes, there is potential for perturbing timing-sensitive locking patterns. If you want to verify that the lock is held when you do an unlock, then you need to roll your own wrapper. John Hawkes hawkes@sgi.com