From owner-svn-src-all@FreeBSD.ORG Thu Jan 19 15:50:47 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2E23106564A; Thu, 19 Jan 2012 15:50:47 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 768C88FC13; Thu, 19 Jan 2012 15:50:47 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) by cyrus.watson.org (Postfix) with ESMTPSA id 2F08F46B0C; Thu, 19 Jan 2012 10:50:47 -0500 (EST) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 97814B999; Thu, 19 Jan 2012 10:50:46 -0500 (EST) From: John Baldwin To: davidxu@freebsd.org Date: Thu, 19 Jan 2012 10:23:28 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p10; KDE/4.5.5; amd64; ; ) References: <201201160615.q0G6FE9r019542@svn.freebsd.org> <4F178CDC.3030807@gmail.com> <4F17B0DE.3060008@gmail.com> In-Reply-To: <4F17B0DE.3060008@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201201191023.28426.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 19 Jan 2012 10:50:46 -0500 (EST) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r230201 - head/lib/libc/gen X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2012 15:50:47 -0000 On Thursday, January 19, 2012 12:57:50 am David Xu wrote: > rdtsc() may not work on SMP, so I have updated it to use clock_gettime > to get total time. > http://people.freebsd.org/~davidxu/bench/semaphore2/ > > > Still, lfence is a lot faster than atomic lock. http://www.freebsd.org/~jhb/patches/amd64_fence.patch This the patch I've had for quite a while. Can you retest with this? You'll probably have to install the updated header in /usr/include as well. -- John Baldwin