Apple Silicon P-core frequency drop, P/E-core switching add noise to CI benchmarks
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- c, macos
- Domain
- performance
Research direction
Read issue #504 and locate the CI benchmark rounds, their metadata recording, and the A/A calibration runs; no files or tests are named in this issue. Determine how to measure single-threaded calibration before and after each round and how to flag or rerun affected samples, then assess separate thresholds for Tier 3. Done means benchmark metadata captures the calibration and the proposed handling is evaluated against CI noise.
Written by the indexing model from the issue text.
Description
Follow-up to #504
I measured on the CI host (Apple M4, 4 P-cores + 6 E-cores):
macOS schedules CPU-bound threads on P-cores first. Each elfuse guest thread is its own vCPU and host thread, and elfuse follows the same placement as native threads.
When 3 or more P-cores are busy at once, every P-core slows down by about 12%. A fixed amount of work took 1812 µs with 1–2 busy threads and 2030 µs with 3–4.
Tier 1 and Tier 2 are sequential and effectively single-threaded, so they normally run at full P-core speed. Any other load on the host could push the number of busy P-cores past 2 and drop the frequency for part of a run. That would make samples shift between two levels. A cheap guard would be a short single-threaded calibration loop before and after each round, recorded in meta. If it shows the lower-frequency level, flag the round or rerun it.
Tier 3 includes multi-threaded workloads. jvm runs 8 compute threads, which is more than the 4 P-cores, so its threads move back and forth between P-cores and E-cores during the run. E-cores ran about 30% slower on a branchy workload. These metrics will likely be noisier than Tier 1 and Tier 2, so their threshold should probably be calibrated separately in the A/A runs.
- Dominant language
- C
- Stars
- 287
- Forks
- 33
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 18
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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 sysprog21/elfuse
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 2 days
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 2 days
All issues in sysprog21/elfuse
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
libreswan/libreswan#3185 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
llvm:instcombine
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
llvm/llvm-project#246503 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day