Re: [systemd-devel] MemoryMax not working with `systemd-run --user` using hybrid cgroups hierarchy

2018-11-08 Thread Piotr Dobrogost
On Thu, Nov 8, 2018 at 11:33 AM Lennart Poettering wrote: > > On Do, 08.11.18 11:24, Piotr Dobrogost (2...@p.dobrogost.net) wrote: > > > Additional question; is there a way to find out which type of hierarchy > > does systemd use? > > Try this: > > stat -fc %T /sys/fs/cgroup/ > > if that reports "

Re: [systemd-devel] MemoryMax not working with `systemd-run --user` using hybrid cgroups hierarchy

2018-11-08 Thread Lennart Poettering
On Do, 08.11.18 11:24, Piotr Dobrogost (2...@p.dobrogost.net) wrote: > Additional question; is there a way to find out which type of hierarchy > does systemd use? Try this: stat -fc %T /sys/fs/cgroup/ if that reports "cgroups2fs" then you are in full cgroupsv2 mode. If it returns "tmpfs" then y

Re: [systemd-devel] MemoryMax not working with `systemd-run --user` using hybrid cgroups hierarchy

2018-11-08 Thread Piotr Dobrogost
Additional question; is there a way to find out which type of hierarchy does systemd use? Piotr ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] MemoryMax not working with `systemd-run --user` using hybrid cgroups hierarchy

2018-11-08 Thread Piotr Dobrogost
On Thu, Nov 8, 2018 at 9:27 AM Lennart Poettering wrote: > > Would love to switch Fedora over yesterday. But Docker/Kubernetes and > the whole container mess doesn't like cgroupsv2 so far, and given how > important that is for Fedora I fear it'll not be happening anytime > soon. > > Yes, Google's/

Re: [systemd-devel] MemoryMax not working with `systemd-run --user` using hybrid cgroups hierarchy

2018-11-08 Thread Lennart Poettering
On Do, 08.11.18 08:42, Piotr Dobrogost (2...@p.dobrogost.net) wrote: > On Wed, Nov 7, 2018 at 5:39 PM Lennart Poettering > wrote: > > (…) > > 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

Re: [systemd-devel] MemoryMax not working with `systemd-run --user` using hybrid cgroups hierarchy

2018-11-07 Thread Piotr Dobrogost
On Wed, Nov 7, 2018 at 5:39 PM Lennart Poettering wrote: > (…) > 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. Thanks for clarifying. Any id

Re: [systemd-devel] MemoryMax not working with `systemd-run --user` using hybrid cgroups hierarchy

2018-11-07 Thread Lennart Poettering
On Mi, 07.11.18 15:28, Piotr Dobrogost (2...@p.dobrogost.net) 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=

[systemd-devel] MemoryMax not working with `systemd-run --user` using hybrid cgroups hierarchy

2018-11-07 Thread Piotr Dobrogost
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". % systemctl --version systemd 239 +PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTM