Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1714862ybg; Sat, 19 Oct 2019 00:56:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqya499oDX2oKBXUbnJD+ka+5J6grqHpMT4BZ+vqKP4vFf2zzSjU5DZpo8r//fq1mjiqQ7x7 X-Received: by 2002:a50:eb42:: with SMTP id z2mr13840680edp.291.1571471808967; Sat, 19 Oct 2019 00:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571471808; cv=none; d=google.com; s=arc-20160816; b=Y7VmRogZ8Hun5zrKiz7rc+l/qe72PFO7muhyGq0W1k1JQgXpCNV66fdTiRRbfgAeR3 1jDGz0s23Jb55F7c2skXwzj6/LZo/VqWxW7UcrqRdnWbKFD6Q+usdgkGfnOtKdYO4v5Z ppEzwX/xEbXT7I93wf8/gmpHabwXq+Cg+S3ElUZAg2WFiXi+/T28hrTIz0kTzq09KpPC rbRVSBV/xPIQ/COoxA5d4lhm0Z687Cmbfvqngw00V/F1SlP3JY0pq1Vn4KS5pIRHnHYJ IJD6zPNumhsQ6Hm20x1cO90q5676sqmmMJoZlKCwPH3rKuRSUU2i9OxFIwAx2LcPLbVn ugbA== 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=EqbNkq3NXDaozgxKuEkuj/09gigpd848uWFkythDoCg=; b=PMRVXcS2rPeOxr37LNCg8GqRITIZLydPLMGK4ysXthfl1XwKpV79a94HeFbLuLlJjs zvrC633SrIZnqdM/zprnH4JwJ9v9ejwOD91c4euWt6uSY/a/YWWygokqVBsofk4HVSuW WydKikpNvFluh3U2MUwZTmdQLVdyEBhLdvNe94/oGJbn84HqdvdTNY0cA47T6HNWooDC J8o3O6pmmhqiU5V2NBAQk+KN91EChmYsCDf0CL6bvidnDh5ApjHC2MHiNQ2IfK0Yq9CM nJriXQR6+zALybau3Rw6K7Ui4mQLy427xor8VQTjfeIRCu2iKIX/v/pC734PLcmnFYiC m+CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eKYQpl5s; 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 c21si4877614ejs.390.2019.10.19.00.56.26; Sat, 19 Oct 2019 00:56:48 -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=eKYQpl5s; 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 S2395548AbfJRIAJ (ORCPT + 99 others); Fri, 18 Oct 2019 04:00:09 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:45250 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726820AbfJRIAI (ORCPT ); Fri, 18 Oct 2019 04:00:08 -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=EqbNkq3NXDaozgxKuEkuj/09gigpd848uWFkythDoCg=; b=eKYQpl5sgbs4oQyPeMStDnMME t268Z95rGPqAG8NmJqz/jgnaUypVZj9fi6V04iisf+qJuAwVV3u+51icrNL7GTonTRQx/Nrpcr0yH wrFM2gzLxnWSWAbIJ44lIRm98Jmbpl3ymUPxqMDajXrzxnf6Ha6tVEEcFoxw44SJcnWZgnGEPXHQx DqEDERI1De4WDAGXki1yeZuedc6M2dEmU3nkhn8GNfIaUhWm4d5PHwpfufMVdhSi03SVCqzwA9Pwj ndiT3+c9b1XJO34Q+shYim+Cgs381C024zF74IyXIVuU7BSKISApSyeTDUZ4kqmcv16wSVJr3iEXy 3aj8m/O3w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLNB1-0003kF-VX; Fri, 18 Oct 2019 08:00:00 +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 4AD25301245; Fri, 18 Oct 2019 09:59:02 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id CAEE7200DE9FA; Fri, 18 Oct 2019 09:59:57 +0200 (CEST) Date: Fri, 18 Oct 2019 09:59:57 +0200 From: Peter Zijlstra To: Dietmar Eggemann Cc: Quentin Perret , 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, 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: <20191018075957.GD2328@hirez.programming.kicks-ass.net> References: <20191011134500.235736-1-douglas.raillard@arm.com> <20191014145315.GZ2311@hirez.programming.kicks-ass.net> <20191017095015.GI2311@hirez.programming.kicks-ass.net> <20191017111116.GA27006@google.com> <20191017141107.GJ2311@hirez.programming.kicks-ass.net> <2cbde0fe-c10c-0ebb-32ef-2d522986bc89@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2cbde0fe-c10c-0ebb-32ef-2d522986bc89@arm.com> 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 Fri, Oct 18, 2019 at 09:44:44AM +0200, Dietmar Eggemann wrote: > On 17/10/2019 16:11, Peter Zijlstra wrote: > > On Thu, Oct 17, 2019 at 12:11:16PM +0100, Quentin Perret wrote: > > [...] > > > It only boosts when 'rq->cfs.avg.util' increases while > > 'rq->cfs.avg.util_est.enqueued' remains unchanged (and util > util_est > > obv). > > > > This condition can be true for select_task_rq_fair(), because that is > > ran before we do enqueue_task_fair() (for obvious raisins). > > > >>> 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 ... > > > > cost_i = capacity_i / power_i ; for the i-th OPP > > I get confused by this definition. efficiency=capacity/power but the > cs->cost value used in em_pd_get_higher_freq() is defined as > > cs_cost = cs->power * cpu_max_freq / cs->freq [energy_model.h] Well, chalk that up to confusion inspired by the Changelog of patch 1. Let me redo it with that formula then.