From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964848AbcHaOjd (ORCPT ); Wed, 31 Aug 2016 10:39:33 -0400 Received: from merlin.infradead.org ([205.233.59.134]:45798 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933835AbcHaOja (ORCPT ); Wed, 31 Aug 2016 10:39:30 -0400 Date: Wed, 31 Aug 2016 16:39:07 +0200 From: Peter Zijlstra To: Steve Muckle Cc: Ingo Molnar , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Vincent Guittot , Morten Rasmussen , Dietmar Eggemann , Juri Lelli , Patrick Bellasi , Steve Muckle Subject: Re: [PATCH 2/2] sched: cpufreq: use rt_avg as estimate of required RT CPU capacity Message-ID: <20160831143907.GX10121@twins.programming.kicks-ass.net> References: <1472236848-17038-1-git-send-email-smuckle@linaro.org> <1472236848-17038-3-git-send-email-smuckle@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1472236848-17038-3-git-send-email-smuckle@linaro.org> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 26, 2016 at 11:40:48AM -0700, Steve Muckle wrote: > A policy of going to fmax on any RT activity will be detrimental > for power on many platforms. Often RT accounts for only a small amount > of CPU activity so sending the CPU frequency to fmax is overkill. Worse > still, some platforms may not be able to even complete the CPU frequency > change before the RT activity has already completed. > > Cpufreq governors have not treated RT activity this way in the past so > it is not part of the expected semantics of the RT scheduling class. The > DL class offers guarantees about task completion and could be used for > this purpose. Not entirely true. People have simply disabled cpufreq because of this. Yes, RR/FIFO are a pain, but they should still be deterministic, and variable cpufreq destroys that. I realize that the fmax thing is annoying, but I'm not seeing how rt_avg is much better.