operator icon indicating copy to clipboard operation
operator copied to clipboard

chore: use Linux container CPU quota

Open uhthomas opened this issue 4 months ago • 1 comments

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.

Fixes: #875

uhthomas avatar Feb 26 '24 01:02 uhthomas

WDYT about using https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/lib/cgroup/cpu.go ?

f41gh7 avatar Feb 29 '24 09:02 f41gh7