You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have observed that setting GOMAXPROCS=cpu.limits leads to some low level of CPU throttling because there are other processes not accounted for. It seems others have observed this case as well. 1
We also have a few systems that fork non-golang procs within the same CPU namespace.
We would like a mechanism to reserve some headroom for MAXPROCS (i.e. subtract some fixed constant from the value set by automaxprocs).
Feature Request
Support an environment variable like AUTOMAXPROCSBUFFER=2 that is subtracted from the observed CPU limit before setting GOMAXPROCS
Context
GOMAXPROCS=cpu.limits
leads to some low level of CPU throttling because there are other processes not accounted for. It seems others have observed this case as well. 1MAXPROCS
(i.e. subtract some fixed constant from the value set byautomaxprocs
).Feature Request
AUTOMAXPROCSBUFFER=2
that is subtracted from the observed CPU limit before settingGOMAXPROCS
Footnotes
https://news.ycombinator.com/item?id=42248550 ↩
The text was updated successfully, but these errors were encountered: