Re: [RFC/RFT PATCH v3] sched: automated per tty task groups

From: Mike Galbraith
Date: Thu Nov 18 2010 - 21:28:49 EST


On Fri, 2010-11-19 at 02:23 +0100, Samuel Thibault wrote:
> Mike Galbraith, le Thu 18 Nov 2010 18:12:37 -0700, a Ãcrit :
> > I think that could be done with a fork flag with the same semantics as
> > reset on fork. Once your task launcher (ala kdeinit) is tagged, it
> > launches task groups, the children lose that ability.
>
> Mmm, even if always creating groups can have a slight overhead, you
> should probably not prevent userspace from deciding to do so when it
> knows it's appropriate.

I think you may have misunderstood. The flag would be a hint that
userland can set to say "I want to fork off task groups", just as
SCHED_RESET_ON_FORK asks the kernel to reset a child's sched class and
nice level on fork.

-Mike

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/