From owner-freebsd-current@FreeBSD.ORG Thu May 6 08:08:01 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0522C16A4CE for ; Thu, 6 May 2004 08:08:01 -0700 (PDT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 669FF43D31 for ; Thu, 6 May 2004 08:08:00 -0700 (PDT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 9FEEB65371; Thu, 6 May 2004 16:07:58 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26800-03; Thu, 6 May 2004 16:07:58 +0100 (BST) Received: from empiric.dek.spc.org (82-147-17-88.dsl.uk.rapidplay.com [82.147.17.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id AEF4B652FE; Thu, 6 May 2004 16:07:57 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 5D24360EE; Thu, 6 May 2004 16:07:54 +0100 (BST) Date: Thu, 6 May 2004 16:07:54 +0100 From: Bruce M Simpson To: Andrew Gallatin Message-ID: <20040506150754.GC27139@empiric.dek.spc.org> Mail-Followup-To: Andrew Gallatin , Don Bowman , freebsd-current@FreeBSD.org, Gerrit Nagelhout References: <16538.18576.320694.79356@grasshopper.cs.duke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16538.18576.320694.79356@grasshopper.cs.duke.edu> cc: freebsd-current@FreeBSD.org cc: Gerrit Nagelhout Subject: Re: 4.7 vs 5.2.1 SMP/UP bridging performance X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 06 May 2004 15:08:01 -0000 On Thu, May 06, 2004 at 10:15:44AM -0400, Andrew Gallatin wrote: > For what its worth, using those operations yeilds these results > on my 2.53GHz P4 (for UP) > > Mutex (atomic_store_rel_int) cycles per iteration: 208 > Mutex (sfence) cycles per iteration: 85 > Mutex (lfence) cycles per iteration: 63 > Mutex (mfence) cycles per iteration: 169 > Mutex (none) cycles per iteration: 18 > > lfence looks like a winner.. Please be aware, though, that the different FENCE instructions are acting as fences against different things. The NASM documentation has a good quick reference for what each of the instructions do, but the definitive reference is Intel's IA-32 programmer's reference manuals. Regards, BMS