From owner-freebsd-smp Sun Nov 26 10:30:59 2000 Delivered-To: freebsd-smp@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 5DF8537B479; Sun, 26 Nov 2000 10:30:57 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id eAQIUvb01899; Sun, 26 Nov 2000 10:30:57 -0800 (PST) Date: Sun, 26 Nov 2000 10:30:57 -0800 From: Alfred Perlstein To: smp@freebsd.org Cc: jhb@freebsd.org Subject: sysctl for DEBUG_MUTEX? Message-ID: <20001126103056.T8051@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I was wondering if it was possible to change DEBUG_MUTEX such that it sets up a sysctl that one could flip on and off so that those of us using it only have to pay the penalty when we're interested in the debugging. Tor Egge explained that he doesn't have the painfully slow disk access when he removes the DEBUG_MUTEX option. I'm going to take a quick look at it, the idea would be to hook a sysctl proc (sysctl handler) that would setup/teardown the DEBUG_MUTEX state. We'd still need a global lock for the linked list of mutexes, however all the expensive validation stuff would be done only when the sysctl was on, otherwise they'd just be linked together. John has been working on the mutex stuff for quite a while and if he wanted to do this it would probably go a lot smoother that if I tried. *nudge* :) -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message