Skip to content

Latest commit

 

History

History
12 lines (6 loc) · 555 Bytes

Systemd.md

File metadata and controls

12 lines (6 loc) · 555 Bytes

Extracting dep info

Containers

as of systemd 224, mem limits do not work from user acct, so you need to run that one as root

  • systemd-run --scope --uid username -p MemoryLimit=100M ./some-app - create cgroup then run app in it. MemoryLimit applies only to memory so for example setting it to 100MB will make app use 100MB of RAM and then swap the rest