▲ | matheusmoreira 12 hours ago | ||||||||||||||||||||||||||||||||||||||||
I use systemd-run very often to impose CPU usage limits on software. Awesome feature. | |||||||||||||||||||||||||||||||||||||||||
▲ | mpyne 5 hours ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||
It's also really useful for doing parallel builds of modules that may actually consume all available memory when you can't force the build system to use fewer cores than you have available. Both in terms of artificially reducing the number of CPUs you expose, but also in terms of enforcing a memory limit that will kill all processes in the build before the broader kernel OOM killer will act, in case you screw up the number of CPUs. | |||||||||||||||||||||||||||||||||||||||||
▲ | Imustaskforhelp 11 hours ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||
woah that's actually awesome. I feel like adding uh storage usage limits could also be easy as well. But the one thing that I always wonder is about (virtualization?) in the sense of something like docker just for containerizing or some sort of way of running them in some sort of sandbox without much performance issues or something, I am kinda interested in knowing what might be the best way of doing so (is podman the right way or some other way like bubblewrap?) Edit: just discovered in the comment below the (parents parents?)comment that there is systemd isolation too, that sounds very interesting and the first time I personally heard of it hmm | |||||||||||||||||||||||||||||||||||||||||
|