Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp670190pxb; Tue, 9 Feb 2021 09:29:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOsPkoaNU0Q1WA/ut7/xZ8ymMulZJMU0XfyI+be9KAAvnN6TzFU2CypFFZXowQGOox+Oc4 X-Received: by 2002:a50:e80d:: with SMTP id e13mr23682020edn.251.1612891791864; Tue, 09 Feb 2021 09:29:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612891791; cv=none; d=google.com; s=arc-20160816; b=izTzbho5370FesCPaGQDH34LZhAykC24yzEkvfkRGlLLXfbeD6pJfF63dds5Gu/GFB RjqdkwYRCjz2JMLM+l5JAGncJ261+xqIsCanP3vvxya17fCgVkZgoY4GtDF9WfkDcxcd qAGl9Ne75a8gd3k577cNJBZFTkLN3rqj4zdTcnBNzKZsl3MTjwp4SwmhM290qEVzxQ61 AmslVZU/zMXXaB/9xNMf28pKzhYrEYZPxLgp1bX/dOvUyzY4CIdxss2tEGWSH14V8+aN pBLWLBsJ115A7+62TuYRlqkGUDoHNMFKxLGov9WhyXg1g2EWS9Pjqhh5lBlNfUc7uUsL svoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from; bh=dCnppzOgF4LkdZ+YRTB5pfI9w4BOCSXH7vHFuNY8FKY=; b=oQ8VA/GYv06+T81DNNsC7vXuymuiCOBuzJLb3vUhCy8fpjpXa1AJxUvrdUMYduFXlm YxcRTD0JolZYCA6rpjUl/y4evaMIPlTzbNwb0lhWzBwiZhdfiZlQbBlwnswewhBGkli9 RPq1IevP9QpKXEzbb9ZZ9WnY62u6K0V3EPpmv402W2Y6wEMAMzh8bZxolctP+cDLVmDv XDjuTMpEcc9gy4BWmvY0rmzEZm8XB053tfZZf3CtFhC2+M0XYKouZjOHXZKpYOauFR4c kI/Ue/5qD0wXe8Xtvy0AARvyuxthOwywpjiL1oGDF1+DazKILPK/yuh8GI2mkQCna/mq HAnw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f24si14159628eds.251.2021.02.09.09.29.27; Tue, 09 Feb 2021 09:29:51 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233183AbhBIR1B (ORCPT + 99 others); Tue, 9 Feb 2021 12:27:01 -0500 Received: from foss.arm.com ([217.140.110.172]:54452 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232986AbhBIR0e (ORCPT ); Tue, 9 Feb 2021 12:26:34 -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 F28F0ED1; Tue, 9 Feb 2021 09:25:46 -0800 (PST) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0B6B23F73B; Tue, 9 Feb 2021 09:25:44 -0800 (PST) From: Valentin Schneider To: Vincent Guittot Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Frederic Weisbecker , Thomas Gleixner , Daniel Bristot de Oliveira , linux-kernel , Joel Fernandes , Qais Yousef Subject: Re: [RFC PATCH 5/6] sched/fair: trigger the update of blocked load on newly idle cpu In-Reply-To: References: <20210205114830.781-1-vincent.guittot@linaro.org> <20210205114830.781-6-vincent.guittot@linaro.org> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Tue, 09 Feb 2021 17:25:39 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/02/21 14:57, Vincent Guittot wrote: > On Tue, 9 Feb 2021 at 14:09, Valentin Schneider > wrote: >> On 05/02/21 12:48, Vincent Guittot wrote: >> > @@ -261,6 +261,12 @@ static void cpuidle_idle_call(void) >> > static void do_idle(void) >> > { >> > int cpu = smp_processor_id(); >> > + >> > + /* >> > + * Check if we need to update some blocked load >> > + */ >> > + nohz_run_idle_balance(cpu); >> > + >> >> What do we gain from doing this here vs having a stats update in >> newidle_balance()? > > As mentioned by Joel, newidle_balance is called in the schedule > context with preempt and irq off which prevent any local activity > like irq/timer. Whereas in this new place, we have the same condition > as during ILB with only preemptoff and _nohz_idle_balance() regularly > checks if it has to abort because something has been scheduled on the > cpu. > Gotcha, that's already hinted at in the cover letter. Could you point this out in the changelog? Other than that, I don't see anything wrong with this approach.