4 ms·
This could be a nice systemd unit option.
by ape4 1y ago
This could be a nice systemd unit option.
- arianvanp 1y agoThere is already memory.high (MemoryHigh= in systemd) you can set on cgroups which does something similar at the kernel level. But its challenging to use correctly. As its easy to end up in a live lock situation where the process never frees memory but also never gets killed. See all the details that Kubernetes had with introducing this https://github.com/kubernetes/enhancements/issues/2570 https://github.com/kubernetes/enhancements/issues/2570