Re: [systemd-devel] Limiting resources

2011-02-22 Thread Daniel Poelzleithner
On 02/22/2011 11:33 AM, Cristian Patrascu wrote: > 2. If there is such an option, is there a way to read the specified cpu > limit from the control group hierarchy? If you put a cpu.share value in the cpu cgroup, all processes in that group have a weight of that value. read the cgroup docs how th

Re: [systemd-devel] dbus interface for disabling default cgroups

2011-02-14 Thread Daniel Poelzleithner
On 02/14/2011 06:20 PM, Lennart Poettering wrote: > Well, my famous shell fragment already kinda did that. As well as the > autogrouping patch that got merged. The autogrouping is broken in my opinion. The session id is not distributed well enough for good grouping. When I click on a browser ico

Re: [systemd-devel] dbus interface for disabling default cgroups

2011-02-14 Thread Daniel Poelzleithner
On 02/14/2011 05:04 PM, Lennart Poettering wrote: > I am not sure I actually buy that. I kinda like the fact that sending a > signal to the gnome-shell process group delivers a signal to all > processes it spawned. But every program that execs another process may call setgrp on it's child. Most s

Re: [systemd-devel] dbus interface for disabling default cgroups

2011-02-14 Thread Daniel Poelzleithner
On 02/14/2011 11:54 AM, Lennart Poettering wrote: > I am not sure what you mean by "do not set the setpgid"? Do you want > gnome-session to become its own session or the desktop services > themselves? gnome-panel for example should do a setpgid on the programs it starts as they are logical new pr

Re: [systemd-devel] dbus interface for disabling default cgroups

2011-02-14 Thread Daniel Poelzleithner
On 02/14/2011 10:42 AM, Lennart Poettering wrote: >> I stumbled on this one too, but got it fixed by giving the most cgroups >> a rt_sched_slice of 1. this way they can be set to rt and then, move the >> process to a group with more rt slice if there is a rule to move it >> there. > > I am not s

Re: [systemd-devel] dbus interface for disabling default cgroups

2011-02-13 Thread Daniel Poelzleithner
On 02/13/2011 10:36 PM, Lennart Poettering wrote: > Note that pam_systemd in git now explicitly resets the "cpu" cgroup of > all sessions to the root group since otherwise RT scheduling will not be > available for any user daemons. This is a general limitation of the > "cpu" scheduler right now,

[systemd-devel] dbus interface for disabling default cgroups

2011-02-10 Thread Daniel Poelzleithner
Hi, I just released ulatencyd[1] 0.4.5 which now works nicely under systemd under two conditions: * DefaultControllers should be unset * pam_systemd should also get an empty controllers=. systemd seems currently not to have a dbus interface which allows to change the DefaultControllers, so I sug

[systemd-devel] Designing a scheduler interface

2011-01-13 Thread Daniel Poelzleithner
e can design it together as a standard. I hope xdg mailinglist is the best place for this discussion, as we are defining a standard. [1] https://github.com/poelzi/ulatencyd kind regards Daniel Poelzleithner signature.asc Description: OpenPGP di