From owner-freebsd-arch Mon Apr 1 9: 3:45 2002 Delivered-To: freebsd-arch@freebsd.org Received: from k6.locore.ca (k6.locore.ca [198.96.117.170]) by hub.freebsd.org (Postfix) with ESMTP id 739E637B41E for ; Mon, 1 Apr 2002 09:03:42 -0800 (PST) Received: (from jake@localhost) by k6.locore.ca (8.11.6/8.11.6) id g31H53704564; Mon, 1 Apr 2002 12:05:03 -0500 (EST) (envelope-from jake) Date: Mon, 1 Apr 2002 12:05:02 -0500 From: Jake Burkholder To: Dag-Erling Smorgrav Cc: arch@FreeBSD.ORG Subject: Re: mutex profiling Message-ID: <20020401120502.G207@locore.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from des@ofug.org on Mon, Apr 01, 2002 at 12:07:18AM +0200 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Apparently, On Mon, Apr 01, 2002 at 12:07:18AM +0200, Dag-Erling Smorgrav said words to the effect of; > The attached patch (derived from patches by Eivind) adds code to > record statistics about MTX_DEF locks. It's currently i386-only as it > uses the TSC to measure the amount of time each mutex is held. Once You can use the get_cyclecount() function as an MI way to read the tsc or whatever cheap cyclecounter an architecture provides. I think everything we run on but i386 and i486 have one. Jake To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message