Y
Hacker News
new
|
ask
|
show
|
jobs
by
zekrioca
458 days ago
How does one do resource control with Landrun, e.g., CPU, memory, I/O..?
2 comments
turrini
458 days ago
Not directly, but I think you can run it with systemd:
systemd-run --user --scope -p MemoryMax=1G,IOReadIOPSMax=8000,CPUQuota=20%,<...> landrun ...
link
IshKebab
458 days ago
You can't. It's only for filesystem and TCP sandboxing.
link
gnoack
458 days ago
Exactly, for resource limits you can use setrlimit(2) or cgroups if needed.
link
systemd-run --user --scope -p MemoryMax=1G,IOReadIOPSMax=8000,CPUQuota=20%,<...> landrun ...