Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp394296pxj; Thu, 27 May 2021 02:48:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeoZOOwTjCC8GIIUBkksvOjkizBbEdF3f1evdlbvjq/WBZ7qSBM3H51scvOoSNyf2S75+K X-Received: by 2002:a05:6638:260e:: with SMTP id m14mr2614346jat.83.1622108899371; Thu, 27 May 2021 02:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622108899; cv=none; d=google.com; s=arc-20160816; b=lx2JoiF7TapcPYi2RY4KwwJQYW7HuxHhIfSJclLuYg+ipaYHWGJx9GViThqVxtJh37 4UKdwddizJHV3/3KvOy+oipw9qapO34hqzo5s6bsYRY6neiW89TYJhilHOoPaKx5ZDok 29HieaJcfosbBgeRvtO1ROrwD/bHdH1Osp7OJIVKlWCaLzpSR4AZFtX3UO3v8zQavbWD HEJ3OKOREFaVjoAZ4uyzpG2/9ibZW9r7qoQKNlHP4AR5mmxdQxhFTefTWPNVEMHCycwv zaDFSuWqxffRtK/1HNLaaDmw7Py7sPneDOeaiWJHJDNAvXDpAFOMjGd5K1UBPA21+u0Y O4pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CGSqh763sJ9tRWKESBK9C6KkYC01mkebqHWMvcOi984=; b=vu3HULNClMuuZqGXYHBJz4ynlXjgLzPrQH+RFET9Xim0G4i6vAoptXPKELm8rnIg/W V/b6tfZTjAV753pv2KaTeMCj+9LbKZiLBS2a0HM8MvriybA1sNHil4JRz/hv6qdciVuU yKKxOzhRviKLsmztVqKv5+u/5CoYpsatGkm/LXbBsJeIvCt/2z1d4JRcgpFkP3lO2l75 Hm50C3ZrXYEMp1hE0diZF4/RJ2IeELlEwkkw7XXoG3LnqJotmydu+2oVMv/VF/vzpHeP rinGJSYq5cWTPOU6BD51o337WBORsebn+dikA8Ii8GASP1sBuu6R6we6t+vHw2xPBFl0 bwYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@uged.al header.s=google header.b=PZqwC6Cn; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si1832764ilo.28.2021.05.27.02.48.05; Thu, 27 May 2021 02:48:19 -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=@uged.al header.s=google header.b=PZqwC6Cn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235846AbhE0JsN (ORCPT + 99 others); Thu, 27 May 2021 05:48:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235798AbhE0JsM (ORCPT ); Thu, 27 May 2021 05:48:12 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BBD7C061760 for ; Thu, 27 May 2021 02:46:39 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id v8so13977qkv.1 for ; Thu, 27 May 2021 02:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uged.al; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CGSqh763sJ9tRWKESBK9C6KkYC01mkebqHWMvcOi984=; b=PZqwC6CnqXIdNEBEYc5be4bb5TccuGjFHDTVOl6jEnmBTLckP6WY85jbCuEoM7Hn89 uyKnQniI/yGgivD73pop7f7tmhTCzq2sEclTRfSApZZihg+b4jBZvtgGXXjFkwFVx7TA 0eNicuik9UNu5kptl4bnyD2lz1SXH4eV01tQxhn0cKNXT0IAxDGbChUbVPipuhb3SnkK JQG6FCCHir0bSm0RBZCX1wYCBd2gH02QUaYNrSC1Iu3YPJzcPwD9B/qIknRrdSoiVL61 ag3Pa47muV/fq2zJ2RLaG1Vg2FYVkWdvcTnEXfvdKIc62AwNLBG39/9uoRDG0RgiUGyl JZaA== 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:cc; bh=CGSqh763sJ9tRWKESBK9C6KkYC01mkebqHWMvcOi984=; b=s7h0WKuUi38BvkKpazwyKTOOqMeXN/DhV1RytfZbSAf6LeevkhmRImbcQodAYxsjQh m9qBz6X9uMxbo9OuG3SOIYi5JFDJPdiouJHylUthj0ej0SzcCo1Q9EROMVqXc4sEarLv xHAZ9tz435t+8d14JtWvdxAgjOQVlYieKIWsTmRvoaViWXtUHtHT2n43DtcV/183LSbr ingAKM1NmlEbm8cK8c6+sOZz35YSPh+M989yRAfZwDYUOYQIzuqx7oh/owUO14/YCF0p ZZwYlSxsCy4xBCb6AwWyVEuIifhptKBrozb9cbCktKWdM2mY+uQ/DrNFDxARBITEqDRg WeIQ== X-Gm-Message-State: AOAM530hcGLr+iHPmw242f60Y7g9JlWdLFlymdwqbK8zL0wzlvcxcPjW eTpnsXK4WdRpiR5oBLKVZrHZa4oZ1w4i5VzriNgokg== X-Received: by 2002:a37:9b84:: with SMTP id d126mr2417755qke.209.1622108797671; Thu, 27 May 2021 02:46:37 -0700 (PDT) MIME-Version: 1.0 References: <20210518125202.78658-1-odin@uged.al> <20210518125202.78658-2-odin@uged.al> In-Reply-To: From: Odin Ugedal Date: Thu, 27 May 2021 11:45:58 +0200 Message-ID: Subject: Re: [PATCH 1/3] sched/fair: Add tg_load_contrib cfs_rq decay checking To: Vincent Guittot Cc: Odin Ugedal , Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , "open list:CONTROL GROUP (CGROUP)" , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > I finally got it this morning with your script and I confirm that the > problem of load_sum == 0 but load_avg != 0 comes from > update_tg_cfs_load(). Then, it seems that we don't call > update_tg_load_avg for this cfs_rq in __update_blocked_fair() because > of a recent update while propagating child's load changes. At the end > we remove the cfs_rq from the list without updating its contribution. > > I'm going to prepare a patch to fix this Yeah, that is another way to look at it. Have not verified, but wouldn't update_tg_load_avg() in this case just remove the diff (load_avg - tg_load_avg_contrib)? Wouldn't we still see some tg_load_avg_contrib after the cfs_rq is removed from the list then? Eg. in my example above, the cfs_rq will be removed from the list while tg_load_avg_contrib=2, or am I missing something? That was my thought when I looked at it last week at least.. Thanks Odin