Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying static buffer/overhead for MAXPROCS #94

Open
DerekTBrown opened this issue Dec 10, 2024 · 0 comments
Open

Allow specifying static buffer/overhead for MAXPROCS #94

DerekTBrown opened this issue Dec 10, 2024 · 0 comments

Comments

@DerekTBrown
Copy link

Context

  • 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

Footnotes

  1. https://news.ycombinator.com/item?id=42248550

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant