Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jan 2012 10:23:28 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        davidxu@freebsd.org
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r230201 - head/lib/libc/gen
Message-ID:  <201201191023.28426.jhb@freebsd.org>
In-Reply-To: <4F17B0DE.3060008@gmail.com>
References:  <201201160615.q0G6FE9r019542@svn.freebsd.org> <4F178CDC.3030807@gmail.com> <4F17B0DE.3060008@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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/ 
> <http://people.freebsd.org/%7Edavidxu/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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201191023.28426.jhb>