4 ms·
As much as I complain about systemd being overly complex and the lock-in that follows: sudo systemctl edit --force user-1234.slice [Slice] MemoryM
by dijit 3y ago
As much as I complain about systemd being overly complex and the lock-in that follows:
sudo systemctl edit --force user-1234.slice
[Slice]
MemoryMax=1G
CPUQuota=10%
It's also something that's been available on the other UNIX-likes (FreeBSD/Solaris) since essentially forever.
- usrnm 3y agoAnd systemd does the exact same thing under the hood as running in a container would.