Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp875424ybg; Fri, 18 Oct 2019 08:39:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxU9eKUee6xVmKkl8RKbjdB3cY1fDSp/4oJH98/fKTzyed9WR6xt2MzaoXP3wNgUjzIDHVT X-Received: by 2002:aa7:c2d7:: with SMTP id m23mr340522edp.206.1571413139906; Fri, 18 Oct 2019 08:38:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571413139; cv=none; d=google.com; s=arc-20160816; b=fRAs3u73TCq0eNfvACAwsRdz2FeTyTDzYtnLNpEXgdSnlvpawAxEB8oXwnuT/ARGLb sAYVYWZlwdfrjDd0CiSztnc2FQcZGZhj6bBapLme1b6hZadiU+lCDRBsl2KG+2JTqqUj L+sCohlHnb313eVLLv57u6GAKRldWFmQbnLutS+TIpbQhsKm5qn2kzeZGCJ0vEoT3zLg I/ijpEFmuW3TP4W7VkaUP0NnRr8ULDYrTK3NhpTeNaW8U3ZQbALLlF+HOqy7pvLgpd+O eJC1IxX2Y98vPjvCVhfK9ib5PXFbIR70SXCMpOcCm+4sd3cFwcBIHS6OKGwHQAKZXn9Q YGMw== 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=+zYZA+RgbruuoZvP4gkp7U+7iA9beMBCPXED1O6rxro=; b=yB8GCIRXch8cZFSfzTvLgahql0u8yWLEgKbXZTSsIbakGUxI4QpijxsoYxEvkBOHLe F01WcxpTj47ZlXaNTvjWIhzGJjVH4u49OuJvuIyJ9/XgNoK38sr4wAiR7Yx6R9fYMOco 7zJ5LEFWOa0VyrFvvdojXq9hoXLo9cRFWjSxrFKaugRNkxyCGhRxGiYn3YGjvE/WCrFV s9L185ljP1lJz20lvaDHTpN0m/hIOWvTofglO0aYk0x9O1XsGNjeIARUAchAWt2mEsvQ DEHDmAcdatjEkuB6QV38CJYxY9jMEhoiXzzjnT8EYyeqiPKLOIkENs9yanLkaMZmf4cZ cQIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Ojv0y5NO; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n19si3403064ejk.264.2019.10.18.08.38.36; Fri, 18 Oct 2019 08:38:59 -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=pass header.i=@google.com header.s=20161025 header.b=Ojv0y5NO; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502034AbfJQLLX (ORCPT + 99 others); Thu, 17 Oct 2019 07:11:23 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:32864 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392327AbfJQLLX (ORCPT ); Thu, 17 Oct 2019 07:11:23 -0400 Received: by mail-wr1-f68.google.com with SMTP id b9so1885744wrs.0 for ; Thu, 17 Oct 2019 04:11:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=+zYZA+RgbruuoZvP4gkp7U+7iA9beMBCPXED1O6rxro=; b=Ojv0y5NOzDLkEhMe+JvYEQ5b68BsGM46pvx0kl7Scs0gXDS6BmgeIZuqZb6REC5csc 0LcdLYiFote/zJL4TQLOI4dlimKEvU2jxYwSf94j9n3z5kai++Y8KXpmEonGdnTGL13B gbro3mPG58ZggyTYyTfR6lH9gJrtmZCgdfAS/xATycYBeY1i383OgUhjqRu9wOip/ukr pqhy4pFxZ3b8ekWCqV7UKacLskxCValbHEeCU9VDeD6Zps3jfQLxHL+VRFclSQJdEOAD BUz/q2ec1vg60IAstc9b7rz5USv1l+a5CkH3RrnuhzoJy5n9oLFghrylBWxxDtQD3mPp axTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+zYZA+RgbruuoZvP4gkp7U+7iA9beMBCPXED1O6rxro=; b=nK7uIoaa5TAtG+tQvLf4VZTfVDQYWFAnU8wqsofh+Ta4CAjOAtQ+YoEGqmf3pTIl1o 3UCbAgzzbbsCR2XT4u9mS4xkTIbjKR35+FMPJ9Wt0fLa+lOMjMfYktstY6Fbwg6r933q gfXbKCd1VPpXmH/kvAYhOB5y0fK+yk8CqXNudSguswTpYdHAe/ktqWubuIJCnocKBGAn j+ZWsKSbwnzagCGxufWvyFxDcn+T5bX+MLnFvFL8WyCjHFPzNXgnt4jDk9jHGf8Kh050 LDDyOgVQL2wSUEeBW9P4B8Am90/uV+9B2MXObkV7KvS3hJChieV+KceECaZqVCi4h0E+ jOJQ== X-Gm-Message-State: APjAAAUpfKaWc56b5XSBEEFWJUdohZszt/MLgs/Stb0sPAmt3VBk+geB hENY8mXKUm+UxEFB9Oq68wic734xcZU= X-Received: by 2002:adf:df05:: with SMTP id y5mr2740030wrl.84.1571310680779; Thu, 17 Oct 2019 04:11:20 -0700 (PDT) Received: from google.com ([2a00:79e0:d:210:7687:11a4:4657:121d]) by smtp.gmail.com with ESMTPSA id a204sm2447892wmh.21.2019.10.17.04.11.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 04:11:20 -0700 (PDT) Date: Thu, 17 Oct 2019 12:11:16 +0100 From: Quentin Perret To: Peter Zijlstra Cc: Douglas Raillard , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, mingo@redhat.com, rjw@rjwysocki.net, viresh.kumar@linaro.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, qperret@qperret.net, patrick.bellasi@matbug.net, dh.han@samsung.com Subject: Re: [RFC PATCH v3 0/6] sched/cpufreq: Make schedutil energy aware Message-ID: <20191017111116.GA27006@google.com> References: <20191011134500.235736-1-douglas.raillard@arm.com> <20191014145315.GZ2311@hirez.programming.kicks-ass.net> <20191017095015.GI2311@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191017095015.GI2311@hirez.programming.kicks-ass.net> 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 Thursday 17 Oct 2019 at 11:50:15 (+0200), Peter Zijlstra wrote: > Now, the thing is, we use map_util_freq() in more places, and should we > not reflect this increase in C for all of them? That is, why is this > patch changing get_next_freq() and not map_util_freq(). > > I don't think that question is answered in the Changelogs. > > Exactly because it does change the energy consumption (it must) should > that not also be reflected in the EAS logic? Right that shouldn't hurt and keep things consistent. That probably won't have a huge impact in practice (the boost should be != 0 only when the util signals haven't converged IIUC, which is a case where the EAS calculation is already 'wrong' anyway), but that still feels like the right thing to do. > I'm still thinking about the exact means you're using to raise C; that > is, the 'util - util_est' as cost_margin. It hurts my brain still. +1 ... Thanks, Quentin