Guest processes are limited to 64 threads
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
- 47/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Bereich
- operating-systems
Rechercherichtung
Start with MAX_THREADS in src/runtime/thread.h and the SP_EL1 slot tracking in src/runtime/thread.c; then review the thread-related context in #224. Reproduce the failure with the Go workload command in the issue and confirm whether it also occurs during make bench-ci. Done means guest processes can create more than 64 threads and the workload no longer fails with EAGAIN.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
A guest process gets at most 64 threads (MAX_THREADS in src/runtime/thread.h; the SP_EL1 slots are tracked in one uint64_t in src/runtime/thread.c). The 65th clone fails with EAGAIN. Linux allows far more, and Go programs reach this with ordinary work, because the Go runtime starts a new OS thread whenever a goroutine blocks in a syscall, independent of GOMAXPROCS.
gofmt over a few standard-library trees is enough:
scripts/elfuse-oci.py run --entrypoint /bin/sh \
mirror.gcr.io/library/golang:1.23-alpine@sha256:56e44a486dc12270a471259239c0005ae492be2f078c4f54567c0e3159e23e4b \
-c 'r=$(go env GOROOT); go version; for t in net runtime crypto; do gofmt -l $r/src/$t; done; gofmt -d $r/src/fmt' > /dev/null
It failed 5 of 30 runs:
runtime: failed to create new OS thread (have 65 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
With GOMAXPROCS=4 it passed 40 of 40 runs alone but still failed inside a full make bench-ci, so capping GOMAXPROCS is not a workaround.
This is why the go row of the real-workload ranking is left out of the Tier 3 benchmarks in #493.
Refs #224
- 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