Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp27547pxu; Thu, 22 Oct 2020 14:23:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxUIAG+Uc200OtVYi1brxmmLsA9lYDjB6c/UknFr6k6yPuyBnvhEA8jZoWtPXulo5eDlNf X-Received: by 2002:a17:906:9504:: with SMTP id u4mr4295185ejx.19.1603401805830; Thu, 22 Oct 2020 14:23:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603401805; cv=none; d=google.com; s=arc-20160816; b=oCfsy3Dz7YquK2BnJ8Mgy4tLRCLqABrUGgudFp1ISss5B6ak0UOw5PG+6Z6+BYG2A9 QFbJl33tQYfw+c8Zu+ea4LkHaTBbs99vWCEE27Q6qCPUEgUW8tdAi4xjfrkDEEHD9DY2 cGoi9B8S0yn3oj+vt/2rvNiQ3LKZpX27isJk2DomCKYA6sZSR0RL9M+yKRj/BstJ9au1 1M59zAVuM9ATm6nXt/YWiCqrLHsY36C+js0xJMAknB4Aoba9GiFfTyCOsrTZs7kwKt5b qH9tE8WapQkNBkm9RazkexAYOGpJrlqU5eXoIxvDJ+lstqeHajRShThxx8xfojg+0jV0 Fe8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=J8PRy4pK/qqWFncu4p7JKSsYK2/9aXRvXnWygf7Ms6A=; b=foodFKNY94npZbQrFeeChEoIYShffbxqBDUTld0tGQDkh05YHPeO/J4QaXf7p641uU L79zg8U6eLYzpGZK0QSmE+gwoW2H72mrdo8Xp0bO/tOdYVk65PdOKIiLwca8oL2RN4ic NWdKR36GWSZ/KNUsEWE8M+K6I3xFygl5PPuDw6WuY/v0UOUZtkvgvXLiLjSctK6IT7dg Yw9jI00bjK5G36y2tgVUCgdgfQYvpglPy9pTpN0lz3njVNz5vBqekBQ4C2gSyKuUolb1 MN5yqq6217y5v/3/aY0bJ0kYgTH4vFUIcdQUd0amov9Noy5ZGVNewwxcTd95EWKl7hdX v1lA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bh4si1998561ejb.421.2020.10.22.14.23.04; Thu, 22 Oct 2020 14:23:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2898040AbgJVMTd (ORCPT + 99 others); Thu, 22 Oct 2020 08:19:33 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:49940 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2898032AbgJVMTc (ORCPT ); Thu, 22 Oct 2020 08:19:32 -0400 Received: from 89-64-87-167.dynamic.chello.pl (89.64.87.167) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.491) id 61321c92bea3245f; Thu, 22 Oct 2020 14:19:30 +0200 From: "Rafael J. Wysocki" To: Peter Zijlstra Cc: Viresh Kumar , Julia Lawall , Mel Gorman , Ingo Molnar , kernel-janitors@vger.kernel.org, Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Daniel Bristot de Oliveira , linux-kernel@vger.kernel.org, Valentin Schneider , Gilles Muller , srinivas.pandruvada@linux.intel.com, Linux PM , Len Brown Subject: Re: default cpufreq gov, was: [PATCH] sched/fair: check for idle core Date: Thu, 22 Oct 2020 14:19:29 +0200 Message-ID: <1790766.jaFeG3T87Z@kreacher> In-Reply-To: <20201022120213.GG2611@hirez.programming.kicks-ass.net> References: <1603211879-1064-1-git-send-email-Julia.Lawall@inria.fr> <34115486.YmRjPRKJaA@kreacher> <20201022120213.GG2611@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [CC linux-pm and Len] On Thursday, October 22, 2020 2:02:13 PM CEST Peter Zijlstra wrote: > On Thu, Oct 22, 2020 at 01:45:25PM +0200, Rafael J. Wysocki wrote: > > On Thursday, October 22, 2020 12:47:03 PM CEST Viresh Kumar wrote: > > > On 22-10-20, 09:11, Peter Zijlstra wrote: > > > > Well, but we need to do something to force people onto schedutil, > > > > otherwise we'll get more crap like this thread. > > > > > > > > Can we take the choice away? Only let Kconfig select which governors are > > > > available and then set the default ourselves? I mean, the end goal being > > > > to not have selectable governors at all, this seems like a good step > > > > anyway. > > > > > > Just to clarify and complete the point a bit here, the users can still > > > pass the default governor from cmdline using > > > cpufreq.default_governor=, which will take precedence over the one the > > > below code is playing with. And later once the kernel is up, they can > > > still choose a different governor from userspace. > > > > Right. > > > > Also some people simply set "performance" as the default governor and then > > don't touch cpufreq otherwise (the idea is to get everything to the max > > freq right away and stay in that mode forever). This still needs to be > > possible IMO. > > Performance/powersave make sense to keep. > > However I do want to retire ondemand, conservative and also very much > intel_pstate/active mode. I agree in general, but IMO it would not be prudent to do that without making schedutil provide the same level of performance in all of the relevant use cases. > I also have very little sympathy for userspace. That I completely agree with. > We should start by making it hard to use them and eventually just delete > them outright. Right, but see above: IMO step 0 should be to ensure that schedutil is a viable replacement for all users.