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
{{ message }}
Repository navigation
Set GOMAXPROCS quota aware in Linux containers #9357
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionneeds-triageNew issues needed to be validated
What we do is a no-op since many years since the default is to use all CPU cores. It should just be removed since it does nothing.
I honestly don't think we should be doing anything clever here. If the (obviously quite knowledgeable) user is deploying containers with CPU limits rust can also set GOMAXPROCS...
Is the damage we're trying to avoid a few milliseconds pause in GC? If so, I think it's a non-issue for Syncthing specifically. A web service responding to API requests for interactive user things is something else entirely, of course.
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionneeds-triageNew issues needed to be validated
Activity
calmh commentedon Jan 19, 2024
What we do is a no-op since many years since the default is to use all CPU cores. It should just be removed since it does nothing.
I honestly don't think we should be doing anything clever here. If the (obviously quite knowledgeable) user is deploying containers with CPU limits rust can also set GOMAXPROCS...
bt90 commentedon Jan 19, 2024
Adding
--cpus="2"isn't rocket science. And even a knowledgeable user might overlook that golang isn't cgroup aware. Case in point: I did(even Java is cgroup aware, wtf Google?)
calmh commentedon Jan 19, 2024
Is the damage we're trying to avoid a few milliseconds pause in GC? If so, I think it's a non-issue for Syncthing specifically. A web service responding to API requests for interactive user things is something else entirely, of course.
all: Use Linux container CPU quota (fixes syncthing#9357, fixes synct…
Merge tag 'v1.27.4' into ios_try_syncthing_v1.27.4
Merge branch 'main' into integrationtests
Merge branch 'main' into integrationtests