Apple Silicon P-core frequency drop, P/E-core switching add noise to CI benchmarks

Aperta
#534 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c, macos
Ambito
performance

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

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.

Lingua principale
C
Stelle
287
Fork
33
Merge medio
2g 17h
PR unite (30g)
18

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sysprog21/elfuse

Tutte le issue di sysprog21/elfuse

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.