Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp680070pxb; Tue, 9 Feb 2021 09:43:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXz+8yZRg7zQ7khPzuQmL2QG1Jl+/KTkTOktsZYwK7UnNSZr5pMITXdVghhab2qr9STK2h X-Received: by 2002:a17:906:3499:: with SMTP id g25mr16718050ejb.367.1612892580660; Tue, 09 Feb 2021 09:43:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612892580; cv=none; d=google.com; s=arc-20160816; b=brU6FkN9up9zmUCLWl8siAEBlcHSfCcacdKnmNSC9sTSfSfzqqPJrbg09dfxkqR5jF 1TPaey3OSOih4mqiB14Vnbbx6U6UL3CzPJzUAZNOxLp6Xnarabu1fXeKA2dwtS3hhxt+ mi/pAFffDHfDfVQsRk3pl8PtnYlPWXq6SJ8MyrJrk3fOBEysWclSTuc8004dLbB6wH0C jSxbNSmy9rKp919nnfY/rdF9oDaJdvT+p/prqS6Pm8cZCh5z3/l3t6CcoRnQQAh3rSdK m6UW62rsUWQUqQWhJsp0rJIvrGcxXUgrzqwMidpCXHUC1Jii8pAlnIVfSBO+Y5Hzvpgp nAjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3orZpWdug0f9quA4oMsfVU6EwcvGm7MwS2NLp2fo9gQ=; b=zh0KSgNLdMQoRcMXpNCpRhQ4qOTq+u4G8qeX7GPnsK2GJNitka5YkKvfheF+rjgFBw fb2KxWSZ+5wCLfLkUSiUqKeaaCTILj0GWshsf0ZR8JkiIJb0KAWPhhY8wfYp5fkBfGId pdOZi1oamn4tLhyQiVQ1041UnvARUnTof7u5+CModxxUNKTzgJBR0SRo9RWvbvWNHwbp UHp+uSZfN99IPne+1BtEMsyegOTJTUapVt5R0/UgPKDel320DNNdYaX+0Urhl16MHnVy PAKGqQTKeCDZuUlOzHnB5V2HBPEIIGtE6sSO3cI3LrZpI+ePT7uJrBRf+UApoXMr4DPj JhIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eUkaXfqR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k11si14120276ejr.403.2021.02.09.09.42.28; Tue, 09 Feb 2021 09:43:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eUkaXfqR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232788AbhBIRkh (ORCPT + 99 others); Tue, 9 Feb 2021 12:40:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233352AbhBIRjT (ORCPT ); Tue, 9 Feb 2021 12:39:19 -0500 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78F17C0617A7 for ; Tue, 9 Feb 2021 09:38:39 -0800 (PST) Received: by mail-lj1-x229.google.com with SMTP id a25so23541846ljn.0 for ; Tue, 09 Feb 2021 09:38:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3orZpWdug0f9quA4oMsfVU6EwcvGm7MwS2NLp2fo9gQ=; b=eUkaXfqRN7us0ZhZcYCEEhfhenfdn1VGxrKN73JckOW2poO3D65/tjZqxiOfiHtg2C +SuCQnyERHUqGbTjFiu9JyCESrpaaDVwtjiqnMU1XRAzbh58annVQLss/FCk8yz6YcBI 7iOVdSVPNSgiBxfsGIMG8bS+5vk5pRgOUs+9MpazyZBrraSMhlStxvqfUJ4z9i1a8e8e 6jqsh0c97crQJtJe10dxVoJVTOlbgtGFfgP1UoHsT9j8V4m+67SuCnggoZvomhV3CQ8F SXvhqKfq7f7WZz5sSr7dgmUWPoxZ+r6tAkndnZBYVDeQv8ecCjJTe7Fc2NIwG64J3Amj 8YCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3orZpWdug0f9quA4oMsfVU6EwcvGm7MwS2NLp2fo9gQ=; b=SXKfHBL2p8yh5qAfocgmLnA2ttX0sbBN50ueLK2F+gCy4lriBx40x0O/lOjD3tnUHN LNYk18sEY3zBsqx1rOvn990LjFalMK1P/qYvEZKlzTN9eb4j6oazKLjpIcn3piUYk5Pv 97fu0d3uht5hcMLkpeoaDgLTU6XZhTkChsYS8l6R3/YJhlfYQ6cJ20lnwdj7JT+7YlkT R3lL2cZWfN820mjgyeipFrhIuzxJuWLOggHuhfaADhxzaDoipAP5t+IzlgPZh39/508j QCFI9OCi9wJjMKTufWTO3ZKs8XtH/3vJDIfBZjxvUmAP0JaTLYoLgO/kJoOj8HG2IDy6 W24g== X-Gm-Message-State: AOAM532RUQSGA2kUIRaElQmTHQBE6fYBzqSrSS3f7roagnnTXtBv0cMo 4x2JoIAd0jMgZFiNk9+fqkhX8T3KJdZbfsfhoAALYQ== X-Received: by 2002:a2e:7007:: with SMTP id l7mr7556509ljc.176.1612892317942; Tue, 09 Feb 2021 09:38:37 -0800 (PST) MIME-Version: 1.0 References: <20210205114830.781-1-vincent.guittot@linaro.org> <20210205114830.781-3-vincent.guittot@linaro.org> In-Reply-To: From: Vincent Guittot Date: Tue, 9 Feb 2021 18:38:26 +0100 Message-ID: Subject: Re: [PATCH 2/6] sched/fair: remove unused parameter of update_nohz_stats To: Dietmar Eggemann Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Steven Rostedt , Ben Segall , Mel Gorman , Frederic Weisbecker , Thomas Gleixner , Daniel Bristot de Oliveira , linux-kernel , Joel Fernandes , Qais Yousef Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 9 Feb 2021 at 14:45, Dietmar Eggemann wrote: > > On 05/02/2021 12:48, Vincent Guittot wrote: > > idle load balance is the only user of update_nohz_stats and doesn't use > > force parameter. Remove it > > Wasn't the 'force=true' from ilb eclipsing the jiffy resolution rate > limiting '!time_after(jiffies, rq->last_blocked_load_update_tick)' of > update_blocked_averages()? > > So IMHO this has the (maybe intended) side effect that (formerly forced > updates) are now rate limited on one jiffy resolution too. Calls to _nohz_idle_balance were already rate limited by load balance interval and nohz.next_blocked. This tick rate limit has been originally added for newidle_balance case but there were some corner cases for _nohz_idle_balance that could benefit of this too > > > > > Signed-off-by: Vincent Guittot > > --- > > kernel/sched/fair.c | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > index bfe1e235fe01..60b8c1c68ab9 100644 > > --- a/kernel/sched/fair.c > > +++ b/kernel/sched/fair.c > > @@ -8352,7 +8352,7 @@ group_type group_classify(unsigned int imbalance_pct, > > return group_has_spare; > > } > > > > -static bool update_nohz_stats(struct rq *rq, bool force) > > +static bool update_nohz_stats(struct rq *rq) > > { > > #ifdef CONFIG_NO_HZ_COMMON > > unsigned int cpu = rq->cpu; > > @@ -8363,7 +8363,7 @@ static bool update_nohz_stats(struct rq *rq, bool force) > > if (!cpumask_test_cpu(cpu, nohz.idle_cpus_mask)) > > return false; > > > > - if (!force && !time_after(jiffies, rq->last_blocked_load_update_tick)) > > + if (!time_after(jiffies, rq->last_blocked_load_update_tick)) > > return true; > > > > update_blocked_averages(cpu); > > @@ -10404,7 +10404,7 @@ static bool _nohz_idle_balance(struct rq *this_rq, unsigned int flags, > > > > rq = cpu_rq(balance_cpu); > > > > - has_blocked_load |= update_nohz_stats(rq, true); > > + has_blocked_load |= update_nohz_stats(rq); > > > > /* > > * If time for next balance is due, > > >