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

RDTSCP instruction triggers "illegal instruction" for Linux container on macOS #321

Open
xkszltl opened this issue Sep 26, 2021 · 0 comments

Comments

@xkszltl
Copy link

xkszltl commented Sep 26, 2021

OS: Big Sur (11.5.2)

We're trying to use RDTSC and RDTSCP on Core i9 chip for ns-scale perf measurement.

RDTSC works fine.
RDTSCP is supported by the processor based on the spec, but inside the container /proc/cpuinfo doesn't have rdtscp flag, and trying to use it will cause illegal instruction error.

My guess is it's an issue/limitation of VM in macOS itself.
But given there's almost no doc about it, we cannot get any meaningful conclusion.

Can moby side help with some investigation, to see if it's fixable within macOS's own virtualization framework API.
And if not, is it possible to introduce other VM options?

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

No branches or pull requests

1 participant