RDTSCP instruction triggers "illegal instruction" for Linux container on macOS
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- c, linux, macos
- Domain
- infrastructure, operating-systems
Research direction
Start by reproducing the RDTSCP failure in a Linux container on macOS Big Sur and compare the processor capabilities reported in /proc/cpuinfo with the host processor specification. Determine whether macOS's virtualization framework can expose RDTSCP or whether another VM option is possible; document the conclusion and any supported workaround.
Written by the indexing model from the issue text.
Description
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?
- Dominant language
- C
- Stars
- 3.7k
- Forks
- 336
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from moby/hyperkit
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
kovidgoyal/kitty#10516 ·
-
libc
Difficulty 2/5 1-2 days Newbie friendliness 76/100
llvm/llvm-project#225506 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Status: Waiting triage Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
nanoframework/Home#1857 ·
-
bug
Difficulty 2/5 Half a day Newbie friendliness 82/100