Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Apple’s TSO patch? #2865

Open
eddyg opened this issue Nov 7, 2024 · 0 comments
Open

Support for Apple’s TSO patch? #2865

eddyg opened this issue Nov 7, 2024 · 0 comments
Labels

Comments

@eddyg
Copy link

eddyg commented Nov 7, 2024

Description

Wondering about the possibility of having templates for things like Ubuntu with Apple’s TSO patch pre-applied to improve performance of x86 workloads:

x86 CPUs implement a stricter memory modern than ARM64 (TSO). For this reason, x86 emulation on baseline ARM64 systems requires very expensive memory model emulation. Having hardware that supports this natively is therefore very attractive. Such hardware, in fact, exists. This patch series adds support for userspace to identify when TSO is available and toggle it on, if supported.

Apple tried upstreaming these kernel patches, as did Hector Martin of Asahi Linux, but it was rejected.

I could be wrong, but since this isn’t in the Linux kernel, it seems taking advantage of this feature (and of course calling prctl to enable it) now rests elsewhere. I’d be surprised if OrbStack isn’t already taking advantage of this.

Any chance pre-patched kernels can be made available for Lima, for the typical, default “Docker VM” scenario?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants