Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933333AbaD2J0J (ORCPT ); Tue, 29 Apr 2014 05:26:09 -0400 Received: from fw-tnat.austin.arm.com ([217.140.110.23]:38768 "EHLO collaborate-mta1.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932843AbaD2J0G (ORCPT ); Tue, 29 Apr 2014 05:26:06 -0400 Date: Tue, 29 Apr 2014 10:26:24 +0100 From: Morten Rasmussen To: Daniel Lezcano Cc: Peter Zijlstra , "Rafael J. Wysocki" , Amit Kucheria , Ingo Molnar , Lists linaro-kernel , Linux PM list , Linux Kernel Mailing List Subject: Re: [PATCH 2/3] sched: idle: Add sched balance option Message-ID: <20140429092624.GE2639@e103034-lin> References: <1398342291-16322-1-git-send-email-daniel.lezcano@linaro.org> <535911DC.9050109@linaro.org> <2713863.BLQTYQm2Oa@vostro.rjw.lan> <20140425132055.GC11096@twins.programming.kicks-ass.net> <535A94E3.5080004@linaro.org> <20140425184327.GH26782@laptop.programming.kicks-ass.net> <535E28D0.7050502@linaro.org> <20140428102819.GG27561@twins.programming.kicks-ass.net> <535E3673.8020606@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <535E3673.8020606@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 28, 2014 at 12:07:31PM +0100, Daniel Lezcano wrote: > I'm really wondering if the cgroup couldn't be a good solution: > > Amit pointed the conflict about the power vs performance with some > applications. We want to have for example a game to run fast performance > and some other application to save power. > > The cgroup will allow to: > > * eg. create a couple of cgroup one for performance and the other one > for power and assign the different applications to one of these group If you mean using the cgroups similar to how Android has foreground and background groups, I think cgroups is a good way to distinguish between tasks with different performance priorities. We can't optimize for both energy and performance at the same time, but it would allow us to only deliver high performance when a high performance task is runnable. It would give us more fine-grained control than either energy or performance for all tasks. If necessary, it would also be possible to have more than two cgroups. -- 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/