From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754834Ab3KLKgg (ORCPT ); Tue, 12 Nov 2013 05:36:36 -0500 Received: from mail-bk0-f49.google.com ([209.85.214.49]:62677 "EHLO mail-bk0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754549Ab3KLKgd (ORCPT ); Tue, 12 Nov 2013 05:36:33 -0500 MIME-Version: 1.0 In-Reply-To: <20131111163859.GE26898@twins.programming.kicks-ass.net> References: <1382097147-30088-1-git-send-email-vincent.guittot@linaro.org> <20131111163859.GE26898@twins.programming.kicks-ass.net> Date: Tue, 12 Nov 2013 11:36:31 +0100 Message-ID: Subject: Re: [RFC][PATCH v5 00/14] sched: packing tasks From: Vincent Guittot To: Peter Zijlstra Cc: Catalin Marinas , Linux Kernel Mailing List , Ingo Molnar , Paul Turner , Morten Rasmussen , Chris Metcalf , Tony Luck , "alex.shi@intel.com" , Preeti U Murthy , linaro-kernel , "len.brown@intel.com" , Lukasz Majewski , Jonathan Corbet , "Rafael J. Wysocki" , Paul McKenney , Arjan van de Ven , "linux-pm@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11 November 2013 17:38, Peter Zijlstra wrote: > On Mon, Nov 11, 2013 at 11:33:45AM +0000, Catalin Marinas wrote: >> My understanding from the recent discussions is that the scheduler >> should decide directly on the C-state (or rather the deepest C-state >> possible since we don't want to duplicate the backend logic for >> synchronising CPUs going up or down). This means that the scheduler >> needs to know about C-state target residency, wake-up latency (I think >> we can leave coupled C-states to the backend, there is some complex >> synchronisation which I wouldn't duplicate). >> >> Alternatively (my preferred approach), we get the scheduler to predict >> and pass the expected residency and latency requirements down to a >> power driver and read back the actual C-states for making task >> placement decisions. Some of the menu governor prediction logic could >> be turned into a library and used by the scheduler. Basically what >> this tries to achieve is better scheduler awareness of the current >> C-states decided by a cpuidle/power driver based on the scheduler >> constraints. > > Ah yes.. so I _think_ the scheduler wants to eventually know about idle > topology constraints. But we can get there in a gradual fashion I hope. > > Like the package C states on x86 -- for those to be effective the > scheduler needs to pack tasks and keep entire packages idle for as long > as possible. That's the purpose of patches 12, 13 and 14. To get the current wakeup latency of a core and use it when selecting a core > >