Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2807276imm; Wed, 3 Oct 2018 09:26:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV61LFarx7z7PWP/aXIbx6ALuZ60mhjRfCi6C+cagt9S21+Jayx3aJBd0Z4XtrWKgwmWcXyrE X-Received: by 2002:a17:902:6a2:: with SMTP id 31-v6mr2327098plh.1.1538583961034; Wed, 03 Oct 2018 09:26:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538583960; cv=none; d=google.com; s=arc-20160816; b=mrEAabOomrmAfH0yJhLix2w5vFT/O3r/5SNMK1GU/0+rkvVs3pz3Z2f21forwNdmvV X2TWM0ky7MDJ61T+JusSPXC09wTfDMYQyOH2QOI3txYGlyPGLy09uCpjO/v66KPmBC87 V2pkFzZncROrm8tdw85I4iXtKBqngFuKvgbn9nQU1F81bR4nessk2pQ3AurBTkWloWAc kw2dZFB6qtjXDzHep0l6J5y/M6n+loqzCgeLioItdp/IPeMh+n2GnAKYHuP4med2jrcP e1N+7ZgivpiBy6AUFj1nH72dc2vIU35xZdAOoxBNwUGoaCxPaBaH0XeT9ji2hgjBh0k3 gXFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=R5iG0gNhzz8EExh16pZXFI1PpEoMAci7ycbYW0Y5aKo=; b=AhLY4W5ljMuCNESBAJ9ZqMC4BK71IrdE9uw5knhmD5Oejwf8RuFrzVRSYxSFZTLzbn tcFS4HcaTDn5XO6TZEefuunQCasNIVk4wYr+3ChOEnXOrd95iWq3+kcHk1JAe+swsEzK 6MaHp2hfDTvDjHJiG8liAyHy2Z1oQUaQv9J2EDAbTN3mct7QOSREdhAEy39xYtWHeF3h c2Z/vC21lFFZ+xRuv+GBbgQRtyfgTbkmLFF9jGOhERjS4QPt7ohhVxkjJIIMwVMFsLyc 1fEt3s3dGDSWLfmiqtvl3JIfRO0I8dSGZgc7xw8MZOyL2iyPssar5JU8pXBzNZdJ2QbC a7UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JFLmURi+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g16-v6si1831812pgd.354.2018.10.03.09.25.34; Wed, 03 Oct 2018 09:26:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JFLmURi+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726966AbeJCXOb (ORCPT + 99 others); Wed, 3 Oct 2018 19:14:31 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:45056 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726811AbeJCXOb (ORCPT ); Wed, 3 Oct 2018 19:14:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=R5iG0gNhzz8EExh16pZXFI1PpEoMAci7ycbYW0Y5aKo=; b=JFLmURi+wDWRXTu+o6iczYGWB lQ83ETjrKgXnyZGGDryVLOirOKZhh7qoqSsDmc+l7cNi8BIlwAOAFWZRsJBlset1w+6Agt/Wz+CCX 0Rhw9qblSkj98wbQCM8GIxeJtDh50V/9hRwUVUUFOhul7aqcQg0RHMDCtOptNLGOVBk/Bebqf6Xgp bE4m1bY2OUAaxXnj9vyKaHfPGNXDWJladz2j8tIDdbwuGmQZvAkJq2zThwg19uZfDLCrThr3Gn6+k evyaZ5sjacyqADkzLkDN0/MR7MME546rSCeMZpJ8FOtjTFKIMWN+W2cFx1rCsOx4LtspCLHpvUVV3 Fb/+lH4QQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g7jxc-0004RZ-Qi; Wed, 03 Oct 2018 16:25:19 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 5E532202C416E; Wed, 3 Oct 2018 18:24:35 +0200 (CEST) Date: Wed, 3 Oct 2018 18:24:35 +0200 From: Peter Zijlstra To: Quentin Perret Cc: rjw@rjwysocki.net, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, gregkh@linuxfoundation.org, mingo@redhat.com, dietmar.eggemann@arm.com, morten.rasmussen@arm.com, chris.redpath@arm.com, patrick.bellasi@arm.com, valentin.schneider@arm.com, vincent.guittot@linaro.org, thara.gopinath@linaro.org, viresh.kumar@linaro.org, tkjos@google.com, joel@joelfernandes.org, smuckle@google.com, adharmap@codeaurora.org, skannan@codeaurora.org, pkondeti@codeaurora.org, juri.lelli@redhat.com, edubezval@gmail.com, srinivas.pandruvada@linux.intel.com, currojerez@riseup.net, javi.merino@kernel.org Subject: Re: [PATCH v7 05/14] sched: Introduce a sched_feat for Energy Aware Scheduling Message-ID: <20181003162435.GA19252@hirez.programming.kicks-ass.net> References: <20180912091309.7551-1-quentin.perret@arm.com> <20180912091309.7551-6-quentin.perret@arm.com> <20181002123416.GA3439@hirez.programming.kicks-ass.net> <20181002130818.fciw7cmlwggymxrz@queper01-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181002130818.fciw7cmlwggymxrz@queper01-lin> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 02, 2018 at 02:08:21PM +0100, Quentin Perret wrote: > On Tuesday 02 Oct 2018 at 14:34:16 (+0200), Peter Zijlstra wrote: > > So these are debug knobs.. I would expect there to be a regular > > static_key that is controlled by the presence of EM data. > > Right, the issue I'm trying to solve with this is basically that _some_ > users will want to have an EM for the thermal stuff, but they will want > EAS disabled. Some people (not very many that's true, but still) use > big.little and don't care much about energy ... > > So, there is a need for an EAS knob on the scheduler side. I don't mind > it being something else than a sched_feat, but I couldn't see a better > option. Another Kconfig (CONFIG_SCHED_ENERGY) ? A sysctl ? Yeah, sysctl, see for example: sysctl.kernel.numa_balancing and the sched_numa_balancing static_key that goes with it. I would default enable EAS if the EM is there and valid, but allow people to disable it.