Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751694AbdGQNlQ (ORCPT ); Mon, 17 Jul 2017 09:41:16 -0400 Received: from mga06.intel.com ([134.134.136.31]:27789 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751646AbdGQNlN (ORCPT ); Mon, 17 Jul 2017 09:41:13 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,374,1496127600"; d="scan'208";a="126033488" Subject: Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods To: Peter Zijlstra , Andi Kleen Cc: Arjan van de Ven , Frederic Weisbecker , Christoph Lameter , Aubrey Li , tglx@linutronix.de, len.brown@intel.com, rjw@rjwysocki.net, tim.c.chen@linux.intel.com, paulmck@linux.vnet.ibm.com, yang.zhang.wz@gmail.com, x86@kernel.org, linux-kernel@vger.kernel.org References: <20170713083649.febfflfl5hafkko5@hirez.programming.kicks-ass.net> <16e12e23-6b28-f174-7c4b-4d719225cd3b@linux.intel.com> <20170713145311.z4zxlyd2dospeoqg@hirez.programming.kicks-ass.net> <4a577bd6-20b1-abb6-2153-f9870f0a721e@linux.intel.com> <20170713182820.sn3fjitnd3mca27p@hirez.programming.kicks-ass.net> <31170ac6-9db1-f0b8-4841-f1661c8ed6e1@linux.intel.com> <20170714153818.pjauqxebxyhs6ljp@hirez.programming.kicks-ass.net> <3d2d06e2-a2ee-bcf7-7727-07f72de5d32d@linux.intel.com> <20170714155853.xvoyyzjg6l2ytqx7@hirez.programming.kicks-ass.net> <20170714160314.GI3441@tassilo.jf.intel.com> <20170717092111.j3tisx6gwifckuhv@hirez.programming.kicks-ass.net> From: "Li, Aubrey" Message-ID: <9cb876ef-a62d-8df9-5fd0-c1b62036edde@linux.intel.com> Date: Mon, 17 Jul 2017 21:41:10 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170717092111.j3tisx6gwifckuhv@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 941 Lines: 25 On 2017/7/17 17:21, Peter Zijlstra wrote: > On Fri, Jul 14, 2017 at 09:03:14AM -0700, Andi Kleen wrote: >> fast idle doesn't have an upper bound. >> >> If the prediction exceeds the fast idle threshold any C state can be used. >> >> It's just another state (fast C1), but right now it has an own threshold >> which may be different from standard C1. > > Given it uses the same estimate we end up with: > > > Now, unless you're mister Turnbull, C2 will never get selected when > fast_threshold > C2_threshold. > > Which is wrong. If you want to effectively scale the selection of C1, > why not also change the C2 and further criteria. > That's not our intention, I think. As long as the predicted coming idle period > threshold, we'll enter normal idle path, you can select any supported c-states, tick can also be turned off for power saving. Any deferrable stuff can be invoke as well because we'll sleep long enough. Thanks, -Aubrey