Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5868266pxu; Thu, 22 Oct 2020 13:09:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweN4QYwQMIKqDMfE654ArDeyTS3XkIeqghpMqc5Cm1ADU0PUfp25PGtTz1ps8in1XPZoXs X-Received: by 2002:a50:e79d:: with SMTP id b29mr3870681edn.57.1603397395996; Thu, 22 Oct 2020 13:09:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603397395; cv=none; d=google.com; s=arc-20160816; b=1Hn9XZFktR5jyUELKQgxMRDxl87BOsyl4ihWyFE+qECEqVyltChVFMvTIk5WgACmk+ VmxD8sXrnESO+CthQjK4KV3iw8ob7eMYmt/rCUAv9aRHclpHktEl2MmEJ5iPdX61weCv XPzxZl7bMUhCRl2Sg+mxwmrw9o5MIWSOtGlyO0OqyALEREA0/qBLkDz0Tt12YJj0RoD/ YyTSboxFMs6XUFUE/er0HUbcgzwgLUJ/EIuleFJasf7UQNOTtTQTsYzlIEeXR/JsikIR qLISGRVr6++xGlu6bflhZUIOlsmiDVTOYDQzAdFkuC3GAeUL1TvyZin7144uxd8PQbVJ n+bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gTvwyP4W6lMb1iDzrz192ROjJ8CmrjSNmaU03xagOrU=; b=FItdrPXhuJ6il9jlbt8VN2ATPuYC0M/MaQ2RZgMAYsGOz/RgsJPdMR5iwfxHR8i/bd X3LUmHOIA/13iaRca/bBCCgVETEn0R8I9gwrGSFE0SIlCkTng2LEf3ySJEPHGSAdGZ0b WhOa37FoSNKwm2wMeaGK1X0DLCqzO6PUXj6bjYtqV6HDTiIxH7ILpGiwSeHz+hjE8F7T 7VkArZRxHg7oOApid8Z6ePG5Zp5daJC2MX9B9R7X0Z0HMknm8NhTOHHeyBTFk+8L8gn+ l8Q3q/wUL7hSDl4KHFp7hA2T/5G5db4Nk6lCws0rKDydLpAtlaKKl3H/SKWOaPtpGMfB dSnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=vglESL+r; 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 de24si1218635edb.386.2020.10.22.13.09.33; Thu, 22 Oct 2020 13:09:55 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=vglESL+r; 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 S2897768AbgJVMC3 (ORCPT + 99 others); Thu, 22 Oct 2020 08:02:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503613AbgJVMC2 (ORCPT ); Thu, 22 Oct 2020 08:02:28 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D38DFC0613CE; Thu, 22 Oct 2020 05:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=gTvwyP4W6lMb1iDzrz192ROjJ8CmrjSNmaU03xagOrU=; b=vglESL+rFHLeeSzkcYF+jhH4T+ JKZjPxQZO+Bbc9ELF+X2ImWPdgF5pnprHBVaQFmgK1WXteBPWt0iPnravt93FIRZiPeoi/Tm+NhDD Royjc9fay9qrD5B5jiqpVgi9HijdZMTlhX7IXvq8KPqupJXroRQ5ObD9lvZJGyh6GEVUTuP26xwb8 RvpWGz2JX4shWecvEpiQv9IrlGT4PgGIwTlG3uO3wblAH2WtFgHh28FVvGocBX58yXbLf+P5C0Wbh kPMgyoO2AtY3QJ4ghUcpChKq5knPIC7L94QPH5a8+UWL8NSGYflMr3QTJUBsWRqByDNcl1uoovLVs tlaIGjzw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kVZIM-00085y-0A; Thu, 22 Oct 2020 12:02:14 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 46E06305CC3; Thu, 22 Oct 2020 14:02:13 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 36CD0203CC4B2; Thu, 22 Oct 2020 14:02:13 +0200 (CEST) Date: Thu, 22 Oct 2020 14:02:13 +0200 From: Peter Zijlstra To: "Rafael J. Wysocki" 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 Subject: default cpufreq gov, was: [PATCH] sched/fair: check for idle core Message-ID: <20201022120213.GG2611@hirez.programming.kicks-ass.net> References: <1603211879-1064-1-git-send-email-Julia.Lawall@inria.fr> <20201022071145.GM2628@hirez.programming.kicks-ass.net> <20201022104703.nw45dwor6wfn4ity@vireshk-i7> <34115486.YmRjPRKJaA@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <34115486.YmRjPRKJaA@kreacher> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 also have very little sympathy for userspace. We should start by making it hard to use them and eventually just delete them outright.