Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936102AbdGTNqB (ORCPT ); Thu, 20 Jul 2017 09:46:01 -0400 Received: from mga06.intel.com ([134.134.136.31]:46324 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934130AbdGTNqA (ORCPT ); Thu, 20 Jul 2017 09:46:00 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,384,1496127600"; d="scan'208";a="289290870" Subject: Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods To: paulmck@linux.vnet.ibm.com, "Li, Aubrey" References: <20170714162619.GJ3441@tassilo.jf.intel.com> <20170717192309.ubn5muvc3u7htuaw@hirez.programming.kicks-ass.net> <34371ef8-b8bc-d2bf-93de-3fccd6beb032@linux.intel.com> <20170718044521.GO3441@tassilo.jf.intel.com> <20170718152014.GB3981@linux.vnet.ibm.com> <20170719144827.GB3730@linux.vnet.ibm.com> <20170720125054.GN3730@linux.vnet.ibm.com> Cc: Thomas Gleixner , Andi Kleen , Peter Zijlstra , Frederic Weisbecker , Christoph Lameter , Aubrey Li , len.brown@intel.com, rjw@rjwysocki.net, tim.c.chen@linux.intel.com, yang.zhang.wz@gmail.com, x86@kernel.org, linux-kernel@vger.kernel.org, daniel.lezcano@linaro.org From: Arjan van de Ven Message-ID: <729c3cfc-6f0a-fb1a-f8c7-0b7860a3d22e@linux.intel.com> Date: Thu, 20 Jul 2017 06:45:58 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170720125054.GN3730@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 725 Lines: 19 On 7/20/2017 5:50 AM, Paul E. McKenney wrote: > To make this work reasonably, you would also need some way to check for > the case where the prediction idle time is short but the real idle time > is very long. so the case where you predict very short but is actually "indefinite", the real solution likely is that we set a timer some time in the future (say 100msec, or some other value that is long but not indefinite) where we wake up the system and make a new prediction, since clearly we were insanely wrong in the prediction and should try again. that or we turn the prediction from a single value into a range of (expected, upper bound) where upper bound is likely the next timer or other going-to-happen events.