Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752244Ab0KSJCs (ORCPT ); Fri, 19 Nov 2010 04:02:48 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:54850 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751452Ab0KSJCo (ORCPT ); Fri, 19 Nov 2010 04:02:44 -0500 X-IronPort-AV: E=Sophos;i="4.59,221,1288566000"; d="scan'208";a="80300150" Date: Fri, 19 Nov 2010 10:02:42 +0100 From: Samuel Thibault To: Mike Galbraith Cc: Linus Torvalds , Hans-Peter Jansen , linux-kernel@vger.kernel.org, Lennart Poettering , david@lang.hm, Dhaval Giani , Peter Zijlstra , Vivek Goyal , Oleg Nesterov , Markus Trippelsdorf , Mathieu Desnoyers , Ingo Molnar , Balbir Singh Subject: Re: [RFC/RFT PATCH v3] sched: automated per tty task groups Message-ID: <20101119090242.GA6554@const.bordeaux.inria.fr> Mail-Followup-To: Samuel Thibault , Mike Galbraith , Linus Torvalds , Hans-Peter Jansen , linux-kernel@vger.kernel.org, Lennart Poettering , david@lang.hm, Dhaval Giani , Peter Zijlstra , Vivek Goyal , Oleg Nesterov , Markus Trippelsdorf , Mathieu Desnoyers , Ingo Molnar , Balbir Singh References: <20101118231218.GX6024@const.famille.thibault.fr> <1290123351.18039.49.camel@maggy.simson.net> <20101118234339.GA6024@const.famille.thibault.fr> <20101119000204.GE6024@const.famille.thibault.fr> <20101119005942.GL6024@const.famille.thibault.fr> <1290129157.18039.70.camel@maggy.simson.net> <20101119012348.GM6024@const.famille.thibault.fr> <1290133701.18039.105.camel@maggy.simson.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1290133701.18039.105.camel@maggy.simson.net> User-Agent: Mutt/1.5.12-2006-07-14 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1208 Lines: 25 Mike Galbraith, le Thu 18 Nov 2010 19:28:21 -0700, a ?crit : > 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. Ah, ok. I would have rather done this per fork call, as there may be a difference between starting an application and starting a panel widget. Samuel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/