From owner-freebsd-performance@FreeBSD.ORG Mon Jul 3 12:45:50 2006 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8CF416A412; Mon, 3 Jul 2006 12:45:50 +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 6612543D55; Mon, 3 Jul 2006 12:45:50 +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 645D946C45; Mon, 3 Jul 2006 08:45:49 -0400 (EDT) Date: Mon, 3 Jul 2006 13:45:49 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: David Xu In-Reply-To: <200607030837.04685.davidxu@freebsd.org> Message-ID: <20060703134429.P57091@fledge.watson.org> References: <20060630001142.Y67344@fledge.watson.org> <200607030837.04685.davidxu@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-performance@freebsd.org Subject: Re: Updated fine-grain locking patch for UNIX domain sockets X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jul 2006 12:45:50 -0000 On Mon, 3 Jul 2006, David Xu wrote: > I found 5% performance decrease on dual P4, maybe P4 is quite bad when doing > atomic operation. ;-) Thanks, When I've measured, generally, yes, P4 performance has been abysmal for synchronization operations, both atomic operations and CPU-local interrupt disabling, etc. I suspect rwlocks could use a bit of optimization in the contention case. I've not dug into the code, so I'm not clear how they compare with respect to adaptive behavior. Robert N M Watson Computer Laboratory University of Cambridge