From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032107AbcHaQkU (ORCPT ); Wed, 31 Aug 2016 12:40:20 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:46099 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935535AbcHaQkR (ORCPT ); Wed, 31 Aug 2016 12:40:17 -0400 Date: Wed, 31 Aug 2016 18:40:09 +0200 From: Peter Zijlstra To: Thomas Gleixner Cc: Steve Muckle , 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 Subject: Re: [PATCH 2/2] sched: cpufreq: use rt_avg as estimate of required RT CPU capacity Message-ID: <20160831164009.GF10153@twins.programming.kicks-ass.net> References: <1472236848-17038-1-git-send-email-smuckle@linaro.org> <1472236848-17038-3-git-send-email-smuckle@linaro.org> <20160831143907.GX10121@twins.programming.kicks-ass.net> <20160831150846.GN5599@graphite.smuckle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Aug 31, 2016 at 06:28:10PM +0200, Thomas Gleixner wrote: > > That is the way it's been with cpufreq and many systems (including all > > mobile devices) rely on that to not destroy power. RT + variable cpufreq > > is not deterministic. > > > > Given we don't have good constraints on RT tasks I don't think we should > > try to strengthen the semantics there. Folks should either move to DL if > > they want determinism *and* not-sucky power, or continue disabling > > cpufreq if they are able to do so. > > RT deterministic behaviour is all about meeting the deadlines. If your > deadline is relaxed enough that you can meet it even with the lowest cpu > frequency then it's perfectly fine to enable cpufreq. The same logic applies > to C-States. > > There are a lot of RT systems out there which enable both. If cpufreq or > c-states cause a deadline violation because the constraints of the system are > tight, then people will disable it and we need a knob for both. > > Realtime is not as fast as possible. It's as fast as specified. Sure, problem is of course that RR/FIFO doesn't specify anything so the users are left to prod knobs. Another problem is that we have many semi related knobs; we have the global RT runtime limit knob, but that doesn't affect cpufreq (maybe it should) and cpufreq has knobs to set f_min and f_max, which again are unaware of RT anything. So before we go do anything, I'd like input on what is needed and how things should tie together to make most sense.