Re: Improving spin-lock implementation on ARM. - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Improving spin-lock implementation on ARM.
Date
Msg-id 51e2f75b-3742-7f28-4438-0425b11cf410@enterprisedb.com
Whole thread Raw
In response to Re: Improving spin-lock implementation on ARM.  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Improving spin-lock implementation on ARM.
List pgsql-hackers
On 2020-11-26 23:55, Tom Lane wrote:
> ... and, after retrieving my jaw from the floor, I present the
> attached.  Apple's chips evidently like this style of spinlock a LOT
> better.  The difference is so remarkable that I wonder if I made a
> mistake somewhere.  Can anyone else replicate these results?

I tried this on a M1 MacBook Air.  I cannot reproduce these results. 
The unpatched numbers are about in the neighborhood of what you showed, 
but the patched numbers are only about a few percent better, not the 
1.5x or 2x change that you showed.




pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Add Information during standby recovery conflicts
Next
From: Alexey Kondratov
Date:
Subject: Re: Printing LSN made easy