From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3rCYXP2M8nzDqBn for ; Mon, 23 May 2016 06:43:01 +1000 (AEST) Received: from mail-pa0-x22e.google.com (mail-pa0-x22e.google.com [IPv6:2607:f8b0:400e:c03::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rCYXN4pfMz9t4Z for ; Mon, 23 May 2016 06:42:59 +1000 (AEST) Received: by mail-pa0-x22e.google.com with SMTP id qo8so55986323pab.1 for ; Sun, 22 May 2016 13:42:59 -0700 (PDT) From: Steve Muckle Date: Sun, 22 May 2016 13:42:52 -0700 To: Peter Zijlstra , Daniel Lezcano Cc: Shilpasri G Bhat , "Rafael J. Wysocki" , Viresh Kumar , "linux-pm@vger.kernel.org" , Linux Kernel Mailing List , "Gautham R. Shenoy" , shreyas@linux.vnet.ibm.com, akshay.adiga@linux.vnet.ibm.com, linuxppc-dev@ozlabs.org, Steve Muckle Subject: Re: [RFC PATCH] Increase in idle power with schedutil Message-ID: <20160522204252.GH15383@graphite.smuckle.net> References: <1463576020-18597-1-git-send-email-shilpa.bhat@linux.vnet.ibm.com> <20160519114029.GW3193@twins.programming.kicks-ass.net> <201605201223.u4KCNWn9028105@mx0a-001b2d01.pphosted.com> <20160522103912.GN3193@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <20160522103912.GN3193@twins.programming.kicks-ass.net> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, May 22, 2016 at 12:39:12PM +0200, Peter Zijlstra wrote: > On Fri, May 20, 2016 at 05:53:41PM +0530, Shilpasri G Bhat wrote: > > > > Below are the comparisons by disabling watchdog. > > Both schedutil and ondemand have a similar ramp-down trend. And in both the > > cases I can see that frequency of the cpu is not reduced in deterministic > > fashion. In a observation window of 30 seconds after running a workload I can > > see that the frequency is not ramped down on some cpus in the system and are > > idling at max frequency. > > So does it actually matter what the frequency is when you idle? Isn't > the whole thing clock gated anyway? > > Because this seems to generate contradictory requirements, on the one > hand we want to stay idle as long as possible while on the other hand > you seem to want to clock down while idle, which requires not being > idle. > > If it matters; should not your idle state muck explicitly set/restore > frequency? AFAIK this is very platform dependent. Some will waste more power than others when a CPU idles above fmin due to things like resource (bus bandwidth, shared cache freq etc) voting. It is also true that there is power spent going to fmin (and then perhaps restoring the frequency when idle ends) which will be in part a function of how slow the frequency change operation is on that platform. I think Daniel Lezcano (added) was exploring the idea of having cpuidle drivers take the expected idle duration and potentially communicate to cpufreq to reduce the frequency depending on a platform-specific cost/benefit analysis.