Re: [systemd-devel] Controlling user processes with systemd+cgroups

2018-02-08 Thread Michal Koutný
Hello systemd-devel. Short summary from the old thread: On 06.09.15 16:14, Lennart Poettering [1]: > Ultimately our goal is that you build your tree of slices, and then > freely attach users, services, containers, VMs to these slices at the > places you want them. You can already do that nicely f

Re: [systemd-devel] Controlling user processes with systemd+cgroups

2015-09-06 Thread Lennart Poettering
On Sun, 06.09.15 17:44, Michał Zegan (webczat_...@poczta.onet.pl) wrote: > if you would override the slice in the unit file using override files it > would not work? No it won't. Currently systemd hardcodes the slice and does not allow it to be overriden. > Also not sure, I think I understand th

Re: [systemd-devel] Controlling user processes with systemd+cgroups

2015-09-06 Thread Michał Zegan
if you would override the slice in the unit file using override files it would not work? Also not sure, I think I understand the question as "how to create cgroup per user group" but well, I may understand it wrong. W dniu 06.09.2015 o 17:25, Lennart Poettering pisze: On Sun, 06.09.15 17:05, M

Re: [systemd-devel] Controlling user processes with systemd+cgroups

2015-09-06 Thread Lennart Poettering
On Sun, 06.09.15 17:05, Michał Zegan (webczat_...@poczta.onet.pl) wrote: > Well, actually I believe you could mess with unit configuration overrides, > couldn't you? > I was experimenting once by giving the user test 1% of cpu using cgroup > controls. Well, you can of course configure limits on i

Re: [systemd-devel] Controlling user processes with systemd+cgroups

2015-09-06 Thread Michał Zegan
Well, actually I believe you could mess with unit configuration overrides, couldn't you? I was experimenting once by giving the user test 1% of cpu using cgroup controls. W dniu 06.09.2015 o 16:14, Lennart Poettering pisze: On Thu, 03.09.15 14:57, Benjamin Rose (benr...@math.princeton.edu) wro

Re: [systemd-devel] Controlling user processes with systemd+cgroups

2015-09-06 Thread Lennart Poettering
On Thu, 03.09.15 14:57, Benjamin Rose (benr...@math.princeton.edu) wrote: > As far as I can tell, systemd-logind when included through PAM, only makes a > cgroup like "user-" under the user slice. But I am looking to make this > based not only on user ID, but also group ID. Is there any way to ach

[systemd-devel] Controlling user processes with systemd+cgroups

2015-09-03 Thread Benjamin Rose
Hello all, I am in an academic environment here, and lots of poor code gets written and then run. Memory leaks are a constant problem. So with RHEL6, I used cgconfig and cgred to create 3 cgroups partitions: /students: 80 CPU ticks, 80% of available memory total /staff: 10 CPU ticks /system: