-
Notifications
You must be signed in to change notification settings - Fork 401
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
use automaxprocs to calculate the number of CPUs #649
Conversation
misspell doesn't ignore vendor |
Can you share how you verified that this helps? I'd like to understand it better. Something like this?
That only matches one importpath, but I guess I could run it against Knative or Tekton or Triggermesh to see it correctly limit parallelism. |
Related issue: golang/go#33803 |
Essentially GOMAXPROCS is not cgroup aware so it reports the total CPUs on the machine instead of the # of CPUs allocated to the container |
Also I don't claim this fixes the issue but is a big part. I think in earlier versions of |
the other notable thing is cgroupsv2 support isn't in the library yet |
this is useful for container environments
got the typo fixed upstream - force pushing the fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems worth doing, and unlikely to cause any new problems. After this is merged I'll try it out and see if it changes the behavior.
Thanks for this fix!
Keep in mind that |
this is useful for container environments
Addresses: #642