

- https://www.freedesktop.org/software/systemd/man/latest/systemd.resource-control.html
- https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html
- https://www.freedesktop.org/software/systemd/man/latest/systemd-run.html
- https://www.freedesktop.org/software/systemd/man/latest/systemd-inhibit.html
For example, this makes sure an emerge command doesn’t take more than 20% of a CPU’s CPU time when running. You can also control memory thresholds. systemd-inhibit will make sure that shutdown, sleep and idle are prevented from occurring.
systemd-run --property=Type=exec --property=CPUQuota=20% --unit=emerge-world-update systemd-inhibit <emerge command>
This is my PSA everynyan: read systemd manpages 






















If you’re ram constrained then that’s a good idea because by default portage will take the value of
nprocif nothing is set. The wiki gives the example of an 8 core system but with 4GB of memory which means the makeopts should be set to 2 jobs instead of 4.