Apple Silicon P-core frequency drop, P/E-core switching add noise to CI benchmarks
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- c, macos
- Bereich
- performance
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C
- Sterne
- 287
- Forks
- 33
- Ø Merge
- 2 T. 17 Std.
- Gemergte PRs (30 T.)
- 18
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus sysprog21/elfuse
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 80/100
Maintainer antworten meist innerhalb von 2 Tagen
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 2 Tagen
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 2 Tagen
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in sysprog21/elfuse
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
libreswan/libreswan#3185 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
category:port-update
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 2 Tagen
-
llvm:instcombine
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
llvm/llvm-project#246503 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag