Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp590517pxj; Thu, 27 May 2021 07:20:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSdeHlbiaOP5HFee6SLAADJ/CIn3ltEMIhz4MjzVNV7fyJ08JWauxN/dCNtOAnoW3C3XdX X-Received: by 2002:a05:6638:a2c:: with SMTP id 12mr3717876jao.99.1622125252644; Thu, 27 May 2021 07:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622125252; cv=none; d=google.com; s=arc-20160816; b=hIQYxgDI3PBmr+Y9ETfPXz5hWDDXNfVxDGtKe964MR6E0Q3Wqrgw3NVp2h/IglERDU 2XHUhBGn05JtjFbfkVa4Vd/90EK+ibjbZ99wCnd2leax8iNXV8Z75rPJ56Qe1aFjcGRD 45HWjwtR/2YXC53aXOYsuxrju11RiyeGIAEuLjI0C/hETsLk3Nt+jQMUnWucIQNV5/XG TzAnLPvoMIaQchzq70xzGnOEhtl7kO35rth2/wwQczwD17l09GOS5KN/biPHwNyZRRqL BFrKqiSlN9Vrdg433N1mnaKicH6mGBG8sURjcFXKjd8SwiugS/mNdoKuRFFKC5dHpE6h n5mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LatqtaP/aGx6woxQl/xZuLro5ci8AMLtHb6rQktXh24=; b=w003EaMZZM9nBAv6L4Vj1N11ake2JNHxn+eYDWvvEg2vmlow2U3xLGruDYIFk6swVp 0XD4/x2c6uqEIl/QNf2Q1DKaElFRZM7J8bcZkaKtu6JlrjQaWCZNC+zcbcImtqqWdx7C obA/3ElNo5ONkjb9p5mkvUWGqFDL4G1p3UAAJAtNpDAomyNHvJY2vXlp9P6AE0KQQrFC I1ydOPy4g3KFkIYD6CZSsD9B2Uqs8vgULe8j2v1cEpmWXUqlu/YOZgtO4xykxAv4hq8v mLWQIC77deJZ0/OCzltdlIuU5OjGzfACp0pQtMmudzSBALw5FSi4Wti2fvPVmACVqZ7J +ytA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M7YJUkv0; 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 z13si2435699ioi.0.2021.05.27.07.20.37; Thu, 27 May 2021 07:20:52 -0700 (PDT) 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=M7YJUkv0; 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 S236426AbhE0OU7 (ORCPT + 99 others); Thu, 27 May 2021 10:20:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236420AbhE0OU4 (ORCPT ); Thu, 27 May 2021 10:20:56 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78050C061574 for ; Thu, 27 May 2021 07:19:21 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id i9so287064lfe.13 for ; Thu, 27 May 2021 07:19:21 -0700 (PDT) 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; bh=LatqtaP/aGx6woxQl/xZuLro5ci8AMLtHb6rQktXh24=; b=M7YJUkv0b9ZqkYCDwgcBFIcG5MN4CKndmPnWQdY2RJQHhZFVfdRUJHVRnhKAumFP7L xB0gbKrxCsAVajM8z2yvoA1bc7kvVBybZX48Htc446q/1kNtqtm5hoaVse9MYQh660Wv E56HXbe9YBGsOWvDV03VnedvUY8Mat1bdqAGkqtC0LuSynuSgH8hjijzLj+Xy6bhjsK/ 5u/9h3epeiMaAH7QNiIm4MIhBuom/9p5Fw+VhVhcAg3mg0GxMNmAPhNCio3HOiAC+6U5 oM94F79Pvp3i6mfXvE8WGMbW0XSv7cApEYZHQ4BeedsDydhMkYNurUGs9FfJ6NnDhxvv QHOQ== 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; bh=LatqtaP/aGx6woxQl/xZuLro5ci8AMLtHb6rQktXh24=; b=X2yXOswTcYPIvBhXJNCycPDCLrptx7AMDZSsLjmm3qVwgns7clQpZg8CK1jWUDiy4c CWjaRz01Wn2cgChWkyQaeAeZz3rOF3VKmR7RYMOcWpoyxntOTNXhuuHIPU/eJ2JrToWS gLr+FXOdd7h2RIGdgrBku7DNB6HF/+qbU3DWWVWSIpTuwlUBMgyVRTiU0Dkzgi1dYrol 83AYrtpyAg6SqiqBM50n78QeikUQ+hZsF7teSnMItzsaCsInm06EBHXhCu2BL6CGinl3 tm37sNMdg2JfyNepnU9RX0KQzP1kuRiEvOCF5QZftjIQF+XQzDXrD87tgjvpy9TtBHf2 vKSw== X-Gm-Message-State: AOAM5306UeQbM980IcszOmcyDTVEc2WTdGiPb0pvkHTuxCoSP0oRfiFs Ft+F80lWRZSujHcCL4GCQ3XZTo2p7t6prYQaFcXkoQ== X-Received: by 2002:a19:e017:: with SMTP id x23mr2549190lfg.254.1622125159781; Thu, 27 May 2021 07:19:19 -0700 (PDT) MIME-Version: 1.0 References: <20210527122916.27683-1-vincent.guittot@linaro.org> In-Reply-To: <20210527122916.27683-1-vincent.guittot@linaro.org> From: Vincent Guittot Date: Thu, 27 May 2021 16:19:08 +0200 Message-ID: Subject: Re: [PATCH 0/2] schd/fair: fix stalled cfs_rq->tg_load_avg_contrib To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , linux-kernel , Odin Ugedal , "open list:CONTROL GROUP (CGROUP)" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Odin, On Thu, 27 May 2021 at 14:29, Vincent Guittot wrote: > > Odin reported some fairness problem between cgroup because of stalled > value in cfs_rq->tg_load_avg_contrib: > > https://lkml.org/lkml/2021/5/18/566 > > > 2 problems generated this situation: > -1st: After propagating load in the hierarchy, load_sum can be null > whereas load_avg isn't so the cfs_rq is removed whereas it still > contribute to th tg's load > -2nd: cfs_rq->tg_load_avg_contrib was not always updated after > significant changes like becoming null because cfs_rq had already > been updated when propagating a child load. > This series fixes the problem triggered by your 1st script on my test machine. But could you confirm that this patchset also fixes the problem on yours Regards, Vincent > > Vincent Guittot (2): > sched/fair: keep load_avg and load_sum synced > sched/fair: make sure to update tg contrib for blocked load > > kernel/sched/fair.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > -- > 2.17.1 >