Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp638386pxb; Wed, 24 Feb 2021 10:50:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9+HcwZx8cUUijjb34X1OaNrzdgGdxoO1s7xyj7+Puqan0w6WyFscKpxjUlFThQDmTMnvm X-Received: by 2002:a05:6402:6c8:: with SMTP id n8mr25905272edy.27.1614192625569; Wed, 24 Feb 2021 10:50:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614192625; cv=none; d=google.com; s=arc-20160816; b=L1LYBEHyTyMIM1Raei08HSFtjPBGU+PDlbPHvSKqbc0RCiucMGZvnjphDG/fEnXoop rGggvCLHQBATJrJ0Nq2HmpFjzE2vQ/HPZYHxcDu69JW2cOM/9EZoC5jyXMYpeIuK848N cV9lwdiFaTxTjYE5yOlDJ2N4VHktOxQ3sGVbb1/W0BLOOhDEw5EeZBpl+gWtmmWk1Q61 8+Jl2iR9rGEugldOVgXEwLlA+nY1LqpfVPzP6p7/IGJoh2alQsvqNBW3K2QCttx3xEO4 qHiSQkxMJIcySuCxSMyRFRwZyGa3dj6ie/zEvuA5SNZZObUw9C5IN4//JLn+ayJVgUWQ NDSg== 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=/TP0c6BLpN7fSjTGxeBvLVm5nea5lCnhMzhN31NFhNM=; b=vMacnq8kc7a/OPvMr6+Cp0j1vnhmApeWdWtIEGWIaTHXEHgHi6K26/CBDIRKiWxlwu NN9IfT4ANwj7AFwi4zarvsOsMJrnnpqeASumWcxihaJa6CHEhMkg3yfZVG9UfBanVVer OJFhik6ee9f0KmxSRmhHuNq0q5TyTYX8463mMWYauRTT2jnPLOrvBK9gH7qebaKe7Htz 14F234dsLWA9lJCPSlIbvJU37OKXaLKsLNIx93z5YXj19j3YU3E9uuuDJQfq35bZ65GU Qtr4E5i8o+o/ootLBWDkXIs4CsKt53z3LrCmSohO5ALPWZtsynxuSlXVXDwMM8yThvST U7Fg== 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 x18si1826135ejo.233.2021.02.24.10.50.01; Wed, 24 Feb 2021 10:50:25 -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 S235091AbhBXSrv (ORCPT + 99 others); Wed, 24 Feb 2021 13:47:51 -0500 Received: from foss.arm.com ([217.140.110.172]:44212 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234634AbhBXSrN (ORCPT ); Wed, 24 Feb 2021 13:47:13 -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 14FE9D6E; Wed, 24 Feb 2021 10:46:28 -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 314433F73B; Wed, 24 Feb 2021 10:46:26 -0800 (PST) From: Valentin Schneider To: Vincent Guittot , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, linux-kernel@vger.kernel.org, joel@joelfernandes.org Cc: fweisbec@gmail.com, tglx@linutronix.de, qais.yousef@arm.com, Vincent Guittot Subject: Re: [PATCH 0/7 v4] move update blocked load outside newidle_balance In-Reply-To: <20210224133007.28644-1-vincent.guittot@linaro.org> References: <20210224133007.28644-1-vincent.guittot@linaro.org> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Wed, 24 Feb 2021 18:46:23 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/02/21 14:30, Vincent Guittot wrote: > Joel reported long preempt and irq off sequence in newidle_balance because > of a large number of CPU cgroups in use and having to be updated. This > patchset moves the update outside newidle_imblance. This enables to early > abort during the updates in case of pending irq as an example. > > Instead of kicking a normal ILB that will wakes up CPU which is already > idle, patch 6 triggers the update of statistics in the idle thread of > the CPU before selecting and entering an idle state. > > Changes on v4: > - Add a dedicated bit for updating blocked load when entering idle. > This simplifies the management of concurrency with kick_ilb. > I believe that solves the issues vs nohz balance. One last thing for patch 7: mayhaps we could do a tad better to avoid duplicate updates going through a heapful of leaf cfs rqs, see http://lore.kernel.org/r/jhj4kiht7oh.mognet@arm.com Otherwise, feel free to add to the lot: Reviewed-by: Valentin Schneider