sched_autogroup interactivity patch for the desktop

Matthew Garrett mjg59 at
Tue Nov 16 19:41:29 UTC 2010

On Tue, Nov 16, 2010 at 06:14:33PM +0100, Lennart Poettering wrote:

> The kernel doesn't really have a notion of what a "session" is (only the
> audit subsystem kinda has), but if this grouping behaviour is supposed
> to be bound to a session, then attaching it to a TTY is a pretty shitty
> replacement.
> Dhaval Giani pointed out to me that the same can be done from userspace
> simply by creating a cgroup for each session in the cpu hierarchy. Turns
> out systemd actually does pretty much that, except in the named systemd
> hierarchy. It is trivial modification to create a group in both hierarchies.

That's not inherently a problem though, is it? Even if we have this 
in-kernel, systemd can disable it at startup and implement its own 
policy. It just means that the default case is (arguably) saner than it 
currently is.

Matthew Garrett | mjg59 at

More information about the devel mailing list