CompareAndSet fails intermittently for riscv

Aleksey Shipilev shade at redhat.com
Tue Aug 16 07:54:41 UTC 2022


On 8/16/22 08:34, wangyadong (E) wrote:
> Yes, we know about these test failures, and we've found that these failures also occur on our 
> "powerful" aarch64 servers. I think there is some uncertainty about the test itself, and the 
> probability of passing increased when you raise the test parameter of "weakAttempts".
Yes, the test itself is flaky.

Unfortunately, disabling the test completely is worse option, because it would miss the actual 
broken weak CASes.

> We now run the weak-cas tests with a high "weakAttempts" on unmatched.

How much you bump weakAttempts to?

I also think we would be better with some backoff in the loop, so that we have more chance in 
succeeding.

-- 
Thanks,
-Aleksey



More information about the riscv-port-dev mailing list