On Mi, 07.11.18 15:28, Piotr Dobrogost ([email protected]) wrote:

> Hi
> 
> I run `systemd-run --user -p MemoryMax=100M /usr/bin/krusader` to limit
> memory usage but it seems the limit is not enforced as `cat /proc/$(pidof
> krusader)/status | grep VmRSS` gives "VmRSS: 389992 kB".

MemoryMax= requires the memory cgroup controller to work. And that
controller is only safe to delegate on cgroupsv2, not on cgroupsv1,
hence we don't do it there. This means [email protected] can't get write
to access to it on cgroupsv1.

Note that on hybrid all contorllers are mounted as cgroupsv1, hence
hybrid is like legacy in this regard.

Or in other words, unless you go full unified you can't use MemoryMax
in user instances.

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to