From owner-p4-projects@FreeBSD.ORG Mon Jun 26 23:14:37 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id BE90B16A409; Mon, 26 Jun 2006 23:14:37 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9968116A405; Mon, 26 Jun 2006 23:14:37 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EC7743D62; Mon, 26 Jun 2006 23:14:33 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id B2A0946B9B; Mon, 26 Jun 2006 19:14:32 -0400 (EDT) Date: Tue, 27 Jun 2006 00:14:32 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: John Baldwin In-Reply-To: <200606261759.41541.jhb@freebsd.org> Message-ID: <20060627001336.T79454@fledge.watson.org> References: <200606262054.k5QKsDq7022302@repoman.freebsd.org> <200606261759.41541.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Perforce Change Reviews , Kip Macy Subject: Re: PERFORCE change 100089 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 23:14:38 -0000 On Mon, 26 Jun 2006, John Baldwin wrote: > On Monday 26 June 2006 16:54, Kip Macy wrote: >> http://perforce.freebsd.org/chv.cgi?CH=100089 >> >> Change 100089 by kmacy@kmacy_storage:sun4v_work_sleepq on 2006/06/26 > 20:53:51 >> >> add profiling for rwlocks >> not convinced of correctness as there don't appear to be any contended > rwlocks on my workloads > > Few things use them currently. I have a patch to make the name cache use > them if you want it. You may already have seen this, but I have a UNIX domain socket re-locking in //depot/user/rwatson/proto/src/sys/kern/uipc_usrreq.c that uses rwlocks and finer-grained mutexes, among other things. Ideally this can generate some contention (although perhaps not too much). Robert N M Watson Computer Laboratory University of Cambridge