RFC: AArch64: Implementing spin pauses with ISB
Astigeevich, Evgeny
eastig at amazon.co.uk
Fri Aug 20 10:54:53 UTC 2021
Thank you, Andrew and Stuart, for your comments. They are very useful. I'll be updating the implementation.
On 19/08/2021, 08:34, "hotspot-dev on behalf of Andrew Haley" <hotspot-dev-retn at openjdk.java.net on behalf of aph-open at littlepinkcloud.com> wrote:
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.
On 8/18/21 11:22 PM, Stuart Monteith wrote:
> I don't think WFE will work for you - I found on at least one machine the cpu will pause more or less indefinitely.
That's a shame. I thought it was specified to awaken when the exclusive monitor
was cleared, which will happen when the exclusive location is written to, won't
it?
> The
> SEV instruction may be a blunt weapon as it applies to all cores on the CPU.
>
> This discussion appears split between the Spin Pause review and this email thread, but the idea of the implementation
> being switchable is appealing. Hypothetically the options might be NONE, NOP, ISB, YIELD. With the current semantics,
> YIELD could be theoretically useful on SMT cores, but I don't know if that would change in the future to be applicable
> more widely.
Mmm, yes. I think it should be easy enough to make it switchable. I'd
support that, I think.
--
Andrew Haley (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
Amazon Development Centre (London) Ltd. Registered in England and Wales with registration number 04543232 with its registered office at 1 Principal Place, Worship Street, London EC2A 2FA, United Kingdom.
More information about the hotspot-dev
mailing list