Closed kapouer closed 2 years ago
While rebuilding a lot of packages, one container exhausted all memory available and was killed. Nobody wants that on a server, so here are some additional systemd-nspawn options to consider:
"--property=MemoryAccounting=yes", "--property=MemoryHigh=30%", "--property=MemoryMax=40%", "--property=CPUAccounting=yes", "--property=CPUWeight=50"
I like how one can set a percentage of physical memory. There are more similar options here, but i don't see the point: https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html
While rebuilding a lot of packages, one container exhausted all memory available and was killed. Nobody wants that on a server, so here are some additional systemd-nspawn options to consider:
I like how one can set a percentage of physical memory. There are more similar options here, but i don't see the point: https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html