Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp777359ybv; Thu, 20 Feb 2020 07:08:22 -0800 (PST) X-Google-Smtp-Source: APXvYqx6+N9MlXDyTIfk32KFJ1YkhJSecPzrxzTslf2ygL5/SAFn9uER1K9eaQRitfa18vB9+9SS X-Received: by 2002:a9d:7696:: with SMTP id j22mr25395830otl.188.1582211302202; Thu, 20 Feb 2020 07:08:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582211302; cv=none; d=google.com; s=arc-20160816; b=B4eNIYn0OGBHlPZYAoGV/S0ieMUKiQSqcB1A0jCav6hyiEV+16AubXblnfl5mMmhDJ 3BUxB1/v2YBLcjrYuWdMR+9ZL3BdUzZuXvcZmM0RzcZTHHkbUP6uAaxL45oPMOcRQG8P H8hCdl3bhaQ6FDc7FrQxCgVdIzsnKHSTgEBDdrCaBMsJzIJ0TeKm6P/9CkoXL41h4b0R EAivid6IqSexCIA8Wo6ZvR2rAv1xsQGGCFJLAqOH0fM2I+0AKpTQAhf+Eh9KRryrcOur 2iVF313R71TTjOg55/JDHyUdogs26TiWcClxq9QHKOiuhmQDKCDD2yOoebUiGnmWPqp5 BeDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=38vZePogDN36Hh668mT3uAXvjlmk61WRdsKSmRr8r7c=; b=usuTUne+nxN8rniRaNFL/h18OYY2dXHCDwiGPZvgOtUz98uKJzOnKU/RCHgVerplcW 0OsHoD3Sj4tRHLWuDN0SBxsI6/jCsaNFHO8Imn4vtyHBXQPs3NOloE1vrzPNXoiiwGNa dBzrHnnrYygHfml5b0V2XNAuoA523kj+nyaVCBb5HbgcnO1ZlpBpbjXUNEqUc2GkI/qD tDh2MmQo6aSXn8mAddyGLcBFiU1dQJlz0uAVALCTw4wDAyij3nFWZx0gTL8Kn7pJ64Y0 lV8ut0ZCP2C7yFqM/NUofP39e47PwLNwyX4Ri8G8pvtTN6vTTCpVRjeblz8HOKpShdtO NWJQ== ARC-Authentication-Results: i=1; mx.google.com; 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 p23si1957570otk.119.2020.02.20.07.08.04; Thu, 20 Feb 2020 07:08:22 -0800 (PST) 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; 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 S1728237AbgBTPFP (ORCPT + 99 others); Thu, 20 Feb 2020 10:05:15 -0500 Received: from foss.arm.com ([217.140.110.172]:44566 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727761AbgBTPFP (ORCPT ); Thu, 20 Feb 2020 10:05:15 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 122AF31B; Thu, 20 Feb 2020 07:05:15 -0800 (PST) Received: from [192.168.0.7] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8ED473F703; Thu, 20 Feb 2020 07:05:12 -0800 (PST) Subject: Re: [PATCH v3 4/5] sched/pelt: Add a new runnable average signal To: Vincent Guittot , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, linux-kernel@vger.kernel.org Cc: pauld@redhat.com, parth@linux.ibm.com, valentin.schneider@arm.com, hdanton@sina.com References: <20200214152729.6059-5-vincent.guittot@linaro.org> <20200219125513.8953-1-vincent.guittot@linaro.org> From: Dietmar Eggemann Message-ID: Date: Thu, 20 Feb 2020 16:04:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200219125513.8953-1-vincent.guittot@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/02/2020 13:55, Vincent Guittot wrote: > Now that runnable_load_avg has been removed, we can replace it by a new > signal that will highlight the runnable pressure on a cfs_rq. This signal > track the waiting time of tasks on rq and can help to better define the > state of rqs. > > At now, only util_avg is used to define the state of a rq: > A rq with more that around 80% of utilization and more than 1 tasks is > considered as overloaded. Don't we make the distinction of overutilized and overloaded? update_sg_lb_stats(), SG_OVERUTILIZED and SG_OVERLOAD [...] > @@ -310,13 +325,14 @@ int __update_load_avg_cfs_rq(u64 now, struct cfs_rq *cfs_rq) > * util_sum = cpu_scale * load_sum > * runnable_sum = util_sum > * > - * load_avg is not supported and meaningless. > + * load_avg and runnable_load_avg are not supported and meaningless. Nit pick: s/runnable_load_avg/runnable_avg [...] > + * load_avg and runnable_load_avg are not supported and meaningless. > * > */ > > int update_dl_rq_load_avg(u64 now, struct rq *rq, int running) [...] > - * load_avg is not supported and meaningless. > + * load_avg and runnable_load_avg are not supported and meaningless. > * > */ > > @@ -389,9 +406,11 @@ int update_irq_load_avg(struct rq *rq, u64 running) [...]