This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/3] Remove x86 assembler rwlock code


On Mon, Jun 09, 2014 at 03:15:39PM -0400, Carlos O'Donell wrote:
> On 05/06/2014 05:36 PM, Andi Kleen wrote:
> > From: Andi Kleen <ak@odo.jf.intel.com>
> > 
> > With the recent tuning the C version of rwlocks is basically the same
> > performance as the x86 assembler version for uncontended locks (with a
> > a few cycles near the run-to-run variability). For others it should not
> > matter anyways.
> > 
> > So remove the assembler code and use the C version like other
> > architectures.
> 
> Is there an objective microbenchmark we can add to the benchmark suite
> that shows the assembly and C are roughly equivalent?
> 
Yes, read thread, either my or siddhesh's benchmark which measure
equivalent ways.

I am after Torvald's comment relatively sure that it measures correct
thing and it does not show difference. Only case that could affect it
would be when there are many threads with simultaneous readers but it is
out of scope.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]