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: Lock elision test results


First I must say I'm pretty sceptic on the idea of assembling a 
micro benchmark suite for lock elision. It is unlikely to give
you a true picture of the performance, as small programs tend to not
model real applications well for something as complex as transactions.

On Wed, Jul 03, 2013 at 01:03:52PM +0200, Torvald Riegel wrote:
> Andi, do you have measurements of how costly aborts are on Haswell, or
> can you give a rough estimation (i.e., not counting the work one wasted,

Normally the mis-speculated work should dominate, but it's not always
wasted (e.g. it may serve as a prefetch)

> just the looking at the rollback and jump back to the xbegin)?  I'm

It depends on what the transaction was doing, in particular how much
synchronization the abort needs.  But it's typically within one
order of magnitude of a commit.

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only.


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