Received: by 10.223.148.5 with SMTP id 5csp7226853wrq; Thu, 18 Jan 2018 02:39:50 -0800 (PST) X-Google-Smtp-Source: ACJfBotiifczPWXJahBihsYKAmOrsqivj55d2QCSqI0YjXcvE0exhhnIroC465YeypLWfQSznN9z X-Received: by 10.99.128.66 with SMTP id j63mr26120488pgd.254.1516271990776; Thu, 18 Jan 2018 02:39:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516271990; cv=none; d=google.com; s=arc-20160816; b=q5lZXzuD8AD3dcK9qY68WpIxkSYmAv+kukkghM5I2fpPXBFqV8Fc/7AQRrYXHGlN37 DFCVf5OcxX/4RelMQY01WSGEQ8ZZCJhI/q9oRC366N140r0HpVZs4HVXJJVGiqDSTzl6 k6hfMnqUzNxAtwKyWCKDBHVIiCPwAl4MkgyVDzkL4il113CDAVmBJRhSBpUx4H2NYkvH KMLRezle5yoKxnKGv1/GRYdq9YpZbvn+X2dJRbqIX1wJoUGXO+taNxRikfR+qluRu8FE ujwhG643crezr1NfO5CZ98IJ9uLcUxvqrmPrpNYWjF5JRSHsIpyGpJ6gOlz5zwR242aW BQFA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=AbRn0DSlQZX9nYUi/CFQeT+W8JxutKV8ENv1GTpuNWU=; b=JGhsq86BffaaNFK0NYJCw5VcMxb2HxDRnJw4Scqr5PFaiDqaKqWv3K16RKGDNrHEws eeGVLa+4fF6XJixYNn+X1S+EuxPNhjltwZ1ANnRlHk7YIXQtUXrH7E3yuJnPNDPdd+IP KHmuxiCyQBJmAwEZ8p14KzLf8J3Cm7TvOYkmUXDOc1OLvHBl8WiV1TWlBWvdWt8cInpt K6cWj1PJUZoAo48yWJT6Zl+op9xFGzb2gKDEloBY+0asMAB877p2hjfEJvPqWdj9dLAF xUHP3W3MoBMfBb5fKblcG/vF7wOEJV36r6spIVo4bs1QSrwrKuD5VXLsJa+/Ly/AFcBK rMIw== 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 94si6274922ple.726.2018.01.18.02.39.36; Thu, 18 Jan 2018 02:39:50 -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 S1755599AbeARKiM (ORCPT + 99 others); Thu, 18 Jan 2018 05:38:12 -0500 Received: from foss.arm.com ([217.140.101.70]:53002 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755271AbeARKiL (ORCPT ); Thu, 18 Jan 2018 05:38:11 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 522B21529; Thu, 18 Jan 2018 02:38:11 -0800 (PST) Received: from e105550-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F03DF3F557; Thu, 18 Jan 2018 02:38:09 -0800 (PST) Date: Thu, 18 Jan 2018 10:38:07 +0000 From: Morten Rasmussen To: Vincent Guittot Cc: Peter Zijlstra , Ingo Molnar , linux-kernel , Brendan Jackman , Dietmar Eggemann , Morten Rasmussen Subject: Re: [RFC PATCH 2/5] sched: Add NOHZ_STATS_KICK Message-ID: <20180118103807.GD28799@e105550-lin.cambridge.arm.com> References: <20171222075934.f6yenvcb2zkf2ysd@hirez.programming.kicks-ass.net> <20171222082915.4lcb7xyyooqyjpia@hirez.programming.kicks-ass.net> <20171222091221.ow5vn3ydx3hj4nht@hirez.programming.kicks-ass.net> <20171222185629.lysjebfifgdwvvhu@hirez.programming.kicks-ass.net> <20171222204247.kyc6ugyyu3ei7zhs@hirez.programming.kicks-ass.net> <20180115082609.GA6320@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180115082609.GA6320@linaro.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 15, 2018 at 09:26:09AM +0100, Vincent Guittot wrote: > Le Wednesday 03 Jan 2018 ? 10:16:00 (+0100), Vincent Guittot a ?crit : > > Hi Peter, > > > > On 22 December 2017 at 21:42, Peter Zijlstra wrote: > > > On Fri, Dec 22, 2017 at 07:56:29PM +0100, Peter Zijlstra wrote: > > >> Right; but I figured we'd try and do it 'right' and see how horrible it > > >> is before we try and do funny things. > > > > > > So now it should have a 32ms tick for up to .5s when the system goes > > > completely idle. > > > > > > No idea how bad that is.. > > > > I have tested your branch but the timer doesn't seem to fire correctly > > because i can still see blocked load in the use case i have run. > > I haven't found the reason yet > > Hi Peter, > > With the patch below on top of your branch, the blocked loads are updated and > decayed regularly. The main differences are: > - It doesn't use a timer to trig ilb but the tick and when a cpu becomes idle. > The main drawback of this solution is that the load is blocked when the > system is fully idle with the advantage of not waking up a fully idle > system. We have to wait for the next tick or newly idle event for updating > blocked load when the system leaves idle stat which can be up to a tick long. > If this is too long, we can check for kicking ilb when task wakes up so the > blocked load will be updated as soon as the system leaves idle state. > The main advantage is that we don't wake up a fully idle system every 32ms to > update blocked load that will be not used. > - I'm working on one more improvement to use nohz_idle_balance in the newly > idle case when the system is not overloaded and > (this_rq->avg_idle > sysctl_sched_migration_cost). In this case, we can try to > use nohz_idle_balance with NOHZ_STATS_KICK and abort as soon as it exceed > this_rq->avg_idle. This will remove some calls to kick_ilb and some wake up > of an idle cpus. This sound like what I meant in my other reply :-) It seems pointless to have a timer to update PELT if the system is completely idle, and when it isn't we can piggy back other events to make the updates happen.