automatically adjust GOMAXPROCS when run in a cpu-constrained container

This commit is contained in:
Michael Eischer
2023-09-28 19:45:58 +02:00
parent 4087c3aff7
commit f5d5e8fd0a
4 changed files with 22 additions and 5 deletions

View File

@@ -0,0 +1,8 @@
Enhancement: Automatically adjust GOMAXPROCS in resource-constrained containers
When running restic in a Linux container with CPU-usage limits, restic now
automatically adjusts GOMAXPROCS. This helps to reduce the memory consumption
on hosts with many CPU cores.
https://github.com/restic/restic/issues/4128
https://github.com/restic/restic/pull/4485