Conversation

huh, systemd-run is really neat, you can do stuff like:
$ systemd-run --user -S -p MemoryHigh=1000M -p MemoryMax=1100M
and get a shell inside which you can't use more than around 1G of RAM (but can use more swap)?

3
3
4

@jann oh! so like Solaris projects, but.... jankier?

1
0
0

@freya I mean, normally you'd configure these controls for services, in service files.
This is just the command line helper for "I want a quick one-off ephemeral service on which I can set all the same controls as on a service file". The config flags I'm setting turn into cgroup stuff at the kernel level.

0
0
0

@jann MemorySwapMax should work too if you want swap limit no?

1
0
0

@ljs @vbabka presumably the "I hate you" due to the pointers being 32-bit

1
0
0

@jann @ljs well at least they fit in the 2G/2G split, could be worse given the imminent highmem removal

0
0
0
@jann it would be interesting to add landlock support here, if it’s not already being done ? @l0kod
1
0
0