[PATCH v2 1/3] PowerPC: Add the lock elision using HTM
Andreas Schwab
schwab@suse.de
Thu Feb 12 10:01:00 GMT 2015
Adhemerval Zanella <azanella@linux.vnet.ibm.com> writes:
> This patch adds support for lock elision using ISA 2.07 hardware
> transactional memory instructions for pthread_mutex primitives.
> Similar to s390 version, the for elision logic defined in
> 'force-elision.h' is only enabled if ENABLE_LOCK_ELISION is defined.
>
> Also, the lock elision code should be able to be built even with
> a compiler that does not provide HTM support with builtins.
> However I have noted the performance is sub-optimal due scheduling
> pressures.
>
> Tested on powerpc64 and powerpc32.
Did you test it on powerpc64le? perl is behaving very erroneously:
$ perl -e 'open(F, "echo foo |"); print while (<F>)' | wc -l
250
Something is causing fork to be reentered repeatedly, at random (the
number of processes varies between runs).
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list