diff options
author | Thomas <9749173+uhthomas@users.noreply.github.com> | 2024-02-26 12:23:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 12:23:14 +0000 |
commit | aa559bf49615e375b749c735afd97cb6a7fb6698 (patch) | |
tree | 43a4ea9fc6319a8c90567ead077dcf40a3cdd4c3 /cmd/stdisco/main.go | |
parent | 2d968d46b78b4a37e88ab17bdda5870d84e86aa4 (diff) |
all: Use Linux container CPU quota (fixes #9357, fixes #9435) (#9436)
Go is not cgroup aware and by default will set GOMAXPROCS to the number
of available threads, regardless of whether it is within the allocated
quota. This behaviour causes high amount of CPU throttling and degraded
application performance.
Diffstat (limited to 'cmd/stdisco/main.go')
-rw-r--r-- | cmd/stdisco/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/stdisco/main.go b/cmd/stdisco/main.go index 7b820fcc4..d0e52d031 100644 --- a/cmd/stdisco/main.go +++ b/cmd/stdisco/main.go @@ -18,6 +18,7 @@ import ( "github.com/syncthing/syncthing/lib/beacon" "github.com/syncthing/syncthing/lib/discover" "github.com/syncthing/syncthing/lib/protocol" + _ "go.uber.org/automaxprocs" ) var ( |