Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5762432pxj; Wed, 23 Jun 2021 08:26:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw86mh/2I3IGATdtTG6GMEF83jgNNQIoDa3oZvlpBQjv90duNP67rScxOoFDvEi9NQM7HDL X-Received: by 2002:a92:dc46:: with SMTP id x6mr8435ilq.66.1624462004560; Wed, 23 Jun 2021 08:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624462004; cv=none; d=google.com; s=arc-20160816; b=P0UeuWZrXwCo7pYoIEhLmZrZgIr0bGncEkrYBwxVqyJXUNJwGAtgyyaVSzqHCmSngj oFJCCe/pRstyu2pxFzK/G6ply/XnQxYJsN21IK1ZM2HfLAW0avH1AmY+UR34N8i8opjw vIsRZ9JmVOB5MulY/FjfyehHP6ibf6Wz4JymLueuUg6CvG7qc4DwvTBpsZ3cxoy1gcOc Co8XXSF9nL5KM7D98VoZpSgglhOUXn5q1ZWd2RwZgLAxcYp2v9GmtBangu2SCug15Wcg viwxpYgJeBbQvfw9xcW2DsN+GBV+dVQwxO26JNJI73jBpE3IgYNEU+EBT7beS04WCaEW 6NTg== 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=tWN1jNVFh7vMLUtEdkRQtm2LdDMMDH1982Vnm5Q9SIM=; b=BEWV8LW1oz6Jx2KRWoLQG1T44XKvhTaGNVDVg7vjvH9V5JsHAUr9d2w45e2GlL2dWL dj9R2MAVuIE+Xy/6uj6FWnNXy7cyq/nhP0NYpz4X9yX70UKuL+giLk0RTUf/1IynBfhV zMF9R+5282oUSdB4oPfpuZ2wHGRT11YSAglhvytpwWmskKqIKJ2RGEj80/vOEJrOTJ06 lMnZ2nGFGXICnUcRsdBYRgguuUP5wJg3/HtKgx8Eartp9aUQCyVnxPieQybKGSXz7vUW waVt6Nr8qDXifB4NrpG2XdevqXJesJMkh3BGM3OZjhOfaNdUDPjca5s+zzDFmDInJLqi FaVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m1ekFego; 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 k14si289241jad.8.2021.06.23.08.26.31; Wed, 23 Jun 2021 08:26:44 -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=m1ekFego; 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 S231350AbhFWP1k (ORCPT + 99 others); Wed, 23 Jun 2021 11:27:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230061AbhFWP1j (ORCPT ); Wed, 23 Jun 2021 11:27:39 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68B34C061756 for ; Wed, 23 Jun 2021 08:25:21 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id h15so4691409lfv.12 for ; Wed, 23 Jun 2021 08:25: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 :cc; bh=tWN1jNVFh7vMLUtEdkRQtm2LdDMMDH1982Vnm5Q9SIM=; b=m1ekFegoNdrGbxt+7TUKRZ/VO3BsPXgL10cMuDLlUJZXZlwxqvY9tta1wja6faHjpO G+CQsu7pYz8vJsBsNcAkJfHrPuyQjGpNU2TBzSIk1HJI+7gj/Fieh4F/DHdx4grkDHY2 kfB3jdFvWKJ5Qa8LlaVuIlB/pdKuslTtXhbRKqzqMdwGEbH/BcvapozB9bUnnoKNbkmN xZr+zY74/6TgBt3N/OUIF54UOm2aEg/kHc2SJSAdCYjf0tFL/lx/osWCfCizbWW73zpt sOgiwdiQwRLvQug8IYZDX5r53HI8H3DlUQD7b3NOx5njM+K+Ap1PgyfYJ1GFvoUpbq0Y jcQw== 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=tWN1jNVFh7vMLUtEdkRQtm2LdDMMDH1982Vnm5Q9SIM=; b=LTZkqFvtEBC4140ZxVAX0ErAf+03vbqM1G7ge7hjJx/8KJoXn8GZ1x+0kP+cDC6394 saAASCmHaO+mcH4qPVPYWwfnxiR9A2RKAlcCtvr0szsEDRWH22CyS7T2rtQwXu3beKwY NITCUpLRauqK7XZXMxp2suiIfg/+1z8CEHpO2M3QyL3kkglIw7Bpsv3QcHQOK0UIdCA4 3nPEp8ZiRK2oZUw06H8QY62o0KU/cnQVy+6w/zJDb/+6sKb5BU7ihdWNaYG1j9nz4K+G vOMv3aptr94edQ5qSgjGB/uy/cn06mzra6cSakMq5qcDU/A14w//pgrzYW/lyrevMPI0 fekw== X-Gm-Message-State: AOAM532cbkpG591eBpylem+io112Ti2O8Y+JJPWq5HX0LBRBlZFQnNTO ol7MRoOGNsEQzl5/LYVyAXsQ92md0tRKkukmD9RTGQ== X-Received: by 2002:a05:6512:3694:: with SMTP id d20mr116319lfs.470.1624461919639; Wed, 23 Jun 2021 08:25:19 -0700 (PDT) MIME-Version: 1.0 References: <2ED1BDF5-BC0C-47CD-8F33-9A46C738F8CF@linux.vnet.ibm.com> <20210622143154.GA804@vingu-book> <53968DDE-9E93-4CB4-B5E4-526230B6E154@linux.vnet.ibm.com> <20210623071935.GA29143@vingu-book> <6C676AB3-5D06-471A-8715-60AABEBBE392@linux.vnet.ibm.com> <20210623120835.GB29143@vingu-book> In-Reply-To: From: Vincent Guittot Date: Wed, 23 Jun 2021 17:25:08 +0200 Message-ID: Subject: Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot To: Odin Ugedal Cc: Sachin Sant , Linux Next Mailing List , linuxppc-dev@lists.ozlabs.org, open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 23 Jun 2021 at 17:13, Odin Ugedal wrote: > > ons. 23. jun. 2021 kl. 15:56 skrev Vincent Guittot : > > > > > > The pelt value of sched_entity is synced with cfs and its contrib > > before being removed. > > > Hmm. Not sure what you mean by sched_entity here, since this is only > taking the "removed" load_avg > and removing it from cfs_rq, together with (removed.load_avg * > divider) from load_sum. (Although. ".removed" comes from > a sched entity) The sched_entity's load_avg that is put in removed.load, is sync with the cfs_rq PELT signal, which includes contrib, before being added to removed.load. > > > Then, we start to remove this load in update_cfs_rq_load_avg() before > > calling __update_load_avg_cfs_rq so contrib should not have change and > > we should be safe > > For what it is worth, I am now able to reproduce it (maybe > CONFIG_HZ=300/250 is the thing) as reported by Sachin, > and my patch makes it disappear. Without my patch I see situations > where _sum is zero while _avg is eg. 1 or 2 or 14 (in that range). hmm, so there is something wrong in the propagation > This happens for both load, runnable and util. > > Lets see what Sachin reports back. > > Thanks > Odin