From owner-freebsd-current@FreeBSD.ORG Fri Feb 23 21:08:21 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A041D16A403 for ; Fri, 23 Feb 2007 21:08:21 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by mx1.freebsd.org (Postfix) with ESMTP id AE3D713C48E for ; Fri, 23 Feb 2007 21:08:18 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so757497nfc for ; Fri, 23 Feb 2007 13:08:17 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=rfz9/GI4qBTYCey+NKeir8OO12Jdpvz7hGYauvzFRmsOXMUPW7gcseCbqrqfG2mSO2kfPvZFvHrxGagfkjcm+WhKWuCHvrntcVY6Mh1PwxEMHzAJjbJQs//IWWLKEomORhDxmMcA/yih2jLiSIF7nLkQdo0IJ8pUgbGeln47AXc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=m0Cwh8b3V7fmiC6ylY6MLLxEisznIEGJkH6K7XPpOzbYnK9LOba7uYamyGHG+9r2g0aLh6cZ10ZjJfkHTfxPv5Vq5E+C7wcwEZ5nDpUCniOY8lL7lPuAvaPchWqhBGQ6svO4m3qawwkMDHsYUA6zdkL2+7sZVAnrcsc8JjM1u7A= Received: by 10.82.107.15 with SMTP id f15mr942271buc.1172264894896; Fri, 23 Feb 2007 13:08:14 -0800 (PST) Received: by 10.82.151.15 with HTTP; Fri, 23 Feb 2007 13:08:14 -0800 (PST) Message-ID: Date: Fri, 23 Feb 2007 13:08:14 -0800 From: "Kip Macy" To: current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: LOCK_PROFILING patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Feb 2007 21:08:21 -0000 Tracking acquisition wait time on x86 is very expensive. The following patch only looks at the time if the lock is contested so that we only pay the price for timekeeping if we are going to actually have to wait to acquire the lock. http://www.fsmware.com/freebsd/lock_prof.diff