News for hackers. Stuff that matters.
Re:16-inch MBP 2x slower than M1 MacBook Air in a real-world... by unsigner on Tuesday November 17, 2020 @04:29PM (#25130123)
One of the reasons Rosetta 2 works so well is Apple silicon sticks to the more restricted x86 memory model.
Re:16-inch MBP 2x slower than M1 MacBook Air in a real-world... by enzo1982 on Tuesday November 17, 2020 @06:18PM (#25131218)
Does it? Apple's documentation seems to disagree [1]:

"A weak memory ordering model, like the one in Apple silicon, gives the processor more flexibility to reorder memory instructions and improve performance, but doesn’t add implicit memory barriers."

[1] https://developer.apple.com/documentation/apple_silicon/addr...

Re:16-inch MBP 2x slower than M1 MacBook Air in a real-world... by duskwuff on Wednesday November 18, 2020 @01:54AM (#25133908)
It's switchable at runtime. Apple silicon can enable total store ordering on a per-thread basis while emulating x86_64, then turn it back off for maximum performance in native code.

Here's a kernel extension someone built to manipulate this feature: https://github.com/saagarjha/TSOEnabler