Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1238198ybf; Thu, 27 Feb 2020 07:17:47 -0800 (PST) X-Google-Smtp-Source: APXvYqz7tVFHdzU5NW7wB/GOLTzoYYwhL6JtKo6OzyNXv4umdHaBYLZrL+baA4YslLBmhn8frPzG X-Received: by 2002:aca:ab52:: with SMTP id u79mr3537570oie.145.1582816667389; Thu, 27 Feb 2020 07:17:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582816667; cv=none; d=google.com; s=arc-20160816; b=PeLHa66OlL5kocEE6uOfBMUMksslAFeLMskZLZGvLa20G+AlNNyAK1D4Lgr06s7dim VqVOnIcAHSc0YFk7VvKT9VJm5ysalwUY+mJ1a41dbmBa7BqNo5qkSmKzVl3IfWM5b90Q ogSprfe0c7jPrMquCItownoEPSj6XFkfcVVyP9Vi5b/zI6eVsOc3nrfroQ/wfOfKmXyW gbZyUuGzGiEFKHbYOsLaXcBcKDin2v3YS2SaqNLO7qO84dXTq4NivSqJCq9hygiJ/2dh obyqNLfKtuLpgbKQ7mg28mz8Xk/9lh3BcPlb4Puy5hh7utweIss8JkwU/wAMO+61W646 3J3Q== 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=DhniQ4RqfKS9l+VyEU52ST6ZnIHRqtRCDTrqOvFBbGs=; b=UKSklLuOwW4QZ/TV1GqZNHWfZwCG8H5vvrBbw0VkIB3T3jYM9naxPgCikuppdbbCIu WZHPRF7RF0NwcACqxyNfu5CmDx9s6MUIEYVFBFs7fPaYVx1P2GCoGaiyTDWlJpYu23d0 A2gusIkU28Z8bFzY37vY/qY4NeS7IPrFQU9iM6bHaoBcHXR7SQt9xNK7qtwEOkA4odmp NQy6gNqkrO3YB6lkBg36KbvLMvdp2guNj8FZtyHdzOBWNN4e9Hh+3qKtA0AblwhUmx8+ RyWaFL+1D9adrP78c5vQLxZ9tspg6JCS0YX7NLjsV8oUp4+94imw7UZ/We3g3+IhMPDI Rnxw== 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 j36si487160ota.58.2020.02.27.07.17.33; Thu, 27 Feb 2020 07:17:47 -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 S1729832AbgB0PRY (ORCPT + 99 others); Thu, 27 Feb 2020 10:17:24 -0500 Received: from foss.arm.com ([217.140.110.172]:53530 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729279AbgB0PRX (ORCPT ); Thu, 27 Feb 2020 10:17:23 -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 1966B30E; Thu, 27 Feb 2020 07:17:23 -0800 (PST) Received: from [10.0.8.126] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3F7CB3F7B4; Thu, 27 Feb 2020 07:17:21 -0800 (PST) Subject: Re: [PATCH] sched/fair: fix runnable_avg for throttled cfs To: Vincent Guittot Cc: Ben Segall , Ingo Molnar , Peter Zijlstra , Juri Lelli , Steven Rostedt , Mel Gorman , linux-kernel , Phil Auld , Parth Shah , Valentin Schneider , Hillf Danton , zhout@vivaldi.net References: <20200226181640.21664-1-vincent.guittot@linaro.org> <8f72ea72-f36d-2611-e026-62ddff5c3422@arm.com> From: Dietmar Eggemann Message-ID: Date: Thu, 27 Feb 2020 15:17:20 +0000 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: 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 27.02.20 14:58, Vincent Guittot wrote: > On Thu, 27 Feb 2020 at 14:10, Vincent Guittot > wrote: >> >> On Thu, 27 Feb 2020 at 12:20, Dietmar Eggemann wrote: >>> >>> On 26.02.20 21:01, Vincent Guittot wrote: >>>> On Wed, 26 Feb 2020 at 20:04, wrote: >>>>> >>>>> Vincent Guittot writes: [...] >>> Shouldn't this be 'current' rather 'new' h_nr_running for >>> group_se->runnable_weight? IMHO, you want to cache the current value >>> before you add/subtract task_delta. >> >> hmm... it can't be current in both places. In my explanation, >> "current" means the current situation when we started to throttle cfs >> and "new" means the new situation after we finished to throttle the >> cfs. I should probably use old and new to prevent any >> misunderstanding. > > I'm about to send a new version to fix some minor changes: The if > statement should have some { } as there are some on the else part > > Would it be better for you if i use old and new instead of current and > new in the commit message ? Personally yes, but now I understand the other wording as well. Thanks. [...]