Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4624444ybp; Mon, 14 Oct 2019 07:34:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqz74uAySsbHdas1E7msxIH+frno4OoayHiDb4XyAW+MRziOyNpuoJqC1Tx3tdr6M9+6X8c7 X-Received: by 2002:a17:906:b817:: with SMTP id dv23mr28940660ejb.22.1571063660367; Mon, 14 Oct 2019 07:34:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571063660; cv=none; d=google.com; s=arc-20160816; b=HRgXSPt2rh3ct5UheInZas3DkhoBY2lyDUusvtJYtcilUsIzR6yYFt+Yhwd+FM1Gh7 zy5kNNJn0cyU3NZXSJP0o4BBtBIyZELbzwC+WOWEQw7+YWEX/6MyiXUt2HF+yZcaiUbv aq6FmZqOduCXhihLC6BE7faoXx7a9z/wDLXq21nU/zXQ+FHwZHFi3KgtJ/i32X/ovZH/ nPF3ZPYdrJ7B4cpJir/YVR1XDZfndogC8umQHmF8XgbmSQXSyuU6rHcJBB6IoadeIadB 7fydzLscmuQMKDQoKDI2BNXwGSTa351eX4Ykw7Orw6Tjp/frsBT4zM+hiBPLw67UOMz0 GJsg== 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=oaPf6dnXppFrtIrvcvxSOzHPxnxg+Q1/gfUdnd2qqww=; b=m2SM+9G7O/NFwtM3zOoxWa+CaK5PSYi6UtgbS06KmgVSiJyZaWixRgJB5gdeSkfDDP DM+1Jpo8LfVJYDtqsu2Z5j8IrGv8qSs66hU9f0aGiruHAsiasAfcaA6P1euPNVJQrMEN ypaOfEVz/9LTPS4SeMjW1WDHPhkYMCpq4k6dkr98C+mAtqwPo2R20LFBLNogESNTPh/z 198rRdX7l2xIUx/QJ07wF7X1NA0PTi2Iva4g1yRioK51LLynXBaFpuVw9gvC4PYsNb8S pve6iCHYUgGWCse/iLcz28i78PTRqbRXTdiUmV5XGMdFPCmzfuC89eV1bYCUi8J7pe0s ma4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=H2xn3tNq; 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 ch6si11092382ejb.275.2019.10.14.07.33.57; Mon, 14 Oct 2019 07:34:20 -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=H2xn3tNq; 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 S1732832AbfJNOda (ORCPT + 99 others); Mon, 14 Oct 2019 10:33:30 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:56848 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731121AbfJNOda (ORCPT ); Mon, 14 Oct 2019 10:33:30 -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=oaPf6dnXppFrtIrvcvxSOzHPxnxg+Q1/gfUdnd2qqww=; b=H2xn3tNqupv4mtya7/ZVR254m sPEnCJnS3vkdQCoRyqO+jUcLVqIWn0yArybngv9Y/QprkEXIMMBTohbB/tX80eIhJ0mTAG+ldgtOE zXlQMqEFMaV+YT/MLRsA5k0Mv3229YPFlNOAsQiU7LGiqhxPsDQfp4WYM3rasClUBeLG8oOKZ3ejj XAkGg4jk7WvI58ZL6YeqQuTWV1quQM4vg0/88/i0Z0xlcqAaR2dg0DPLdeXsoVekNRqouuANEYa78 y9O6mvcqdoGQTFWXpN/Hp7MNEFmkHtZhc4mKCBBWVVAnguwRu0Wacw7KOehU1zDjWAyxvc3cet1JN +LaKorZrg==; 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 1iK1PX-0001uU-97; Mon, 14 Oct 2019 14:33:23 +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 2604C305E42; Mon, 14 Oct 2019 16:32:27 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 31E482026F768; Mon, 14 Oct 2019 16:33:21 +0200 (CEST) Date: Mon, 14 Oct 2019 16:33:21 +0200 From: Peter Zijlstra To: Douglas RAILLARD Cc: 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 4/6] sched/cpufreq: Introduce sugov_cpu_ramp_boost Message-ID: <20191014143321.GH2328@hirez.programming.kicks-ass.net> References: <20191011134500.235736-1-douglas.raillard@arm.com> <20191011134500.235736-5-douglas.raillard@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191011134500.235736-5-douglas.raillard@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 11, 2019 at 02:44:58PM +0100, Douglas RAILLARD wrote: > Use the utilization signals dynamic to detect when the utilization of a > set of tasks starts increasing because of a change in tasks' behavior. > This allows detecting when spending extra power for faster frequency > ramp up response would be beneficial to the reactivity of the system. > > This ramp boost is computed as the difference > util_avg-util_est_enqueued. This number somehow represents a lower bound That reads funny, maybe 'as the difference between util_avg and util_est_enqueued' ? > of how much extra utilization this tasks is actually using, compared to > our best current stable knowledge of it (which is util_est_enqueued). > > When the set of runnable tasks changes, the boost is disabled as the > impact of blocked utilization on util_avg will make the delta with > util_est_enqueued not very informative. > @@ -561,6 +604,7 @@ static unsigned int sugov_next_freq_shared(struct sugov_cpu *sg_cpu, u64 time) > } > } > > + > return get_next_freq(sg_policy, util, max); > } Surely we can do without this extra whitespace? :-)