Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp839823pxv; Thu, 1 Jul 2021 10:22:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoMzugDD9ubJ3g66hIMvzQwT64W0xXWl5Z1OyNY+hoNkeuxlRTPvKhbc+FWZr8aRQN2cCl X-Received: by 2002:a92:bd0f:: with SMTP id c15mr327848ile.229.1625160171439; Thu, 01 Jul 2021 10:22:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625160171; cv=none; d=google.com; s=arc-20160816; b=C1/opPwGxMJjU9HN/8tS3RAUDQbEc4XGtYkNj1LVDMZuaOO2X3RY/R+70iEJGeLMfm /TlerT1nBblsHr5IkriD7drRKedGJxtvfba3UAHMhCM7xJkA7Qh32AudF8l12RuPWEUH Patkmv0E0Vvez6fT4VZ0PmbQpD2nHJxEtunUJnCpjtsI+51eRCltQRpuHRe74hx809a9 r6o8UlzOI6l7gPFlYB/m//znwxBgJpD7MCLg8p81CJqqiaPo0MeP5eHTP2mXYDFTi9BO bON1JJCKFfjxE/NPw3Pk7NsX/I0JOy/0+odeEZ96NZP0I5l4yMiEnetp1ES1PI6POTdo C3UQ== 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=vrOIndfEpXpDR3CulNU6X+syK13a8d1317xXG38sabs=; b=o2O98QikD8EkapdCUJZGKKmPhyFUiTa0KcikGjL/JUdd83Dted9QgVM1PLrfwJ57vW XhCcC11Fwjnqdq4HQqGBN2Rjar9m+URZAoctXDFhM8EhcWHiAsLO2lWpEzm9ZS69C1JA IGEM8nA5pwwTkMwEhFGhvtmS1kOZWkkMGkOWRCi02/6BDtIBedJD0gkrIldGV8fFLjYx GrJH1RKuLh72zgchI0lKrlF2XpVadl2Zk8YiDU16sK0rmr17VLfDb0n0J7909gkw+dIi O6VIwZiXYWQ3i3lR+5/1XoCrs0jeP6EyRbkz1ObZYy2at0TNyR7S1+oWv2dw28xz389d ZpuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="HNUrTS/d"; 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 o12si405390ilu.12.2021.07.01.10.22.37; Thu, 01 Jul 2021 10:22:51 -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="HNUrTS/d"; 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 S230139AbhGARYD (ORCPT + 99 others); Thu, 1 Jul 2021 13:24:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229949AbhGARYC (ORCPT ); Thu, 1 Jul 2021 13:24:02 -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 18DECC061762 for ; Thu, 1 Jul 2021 10:21:32 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id a11so13095873lfg.11 for ; Thu, 01 Jul 2021 10:21:32 -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=vrOIndfEpXpDR3CulNU6X+syK13a8d1317xXG38sabs=; b=HNUrTS/dZWqH1ixKNyoQDUO9L+qqWbqqnPAlBx0DUx9rnz/OKZ0kzWWxZZ4TIsxq6q qLbiucXLKKN23yY8Xy8hbEYh/5ryRpX1gjuVfBmyiwlfMpvQa0t+sOtpiQLcobWzzX3u MOl7XLhioB5tLS5NaQ+6crCQVhswQGDhlCI2BnEtD6HvbacbW+Ubpsn2tV6dOLBcQkcR lAPM0Zn6wS4ozV/J3w8Tx7D8qVD+rLVbPtCDGgQyEHUykNY1IObma+/3UV13obAIHcWM OQLLhXEL9Qtyh+rmixWglh5M5vFLDtZNP/qbkbwpeTCxf8nmf+Z+7kCfHfF7jlkhhepk 8DWg== 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=vrOIndfEpXpDR3CulNU6X+syK13a8d1317xXG38sabs=; b=dyAinLTl60PzIDdP/HLHja0TxottpnsGMkCoeu14ACsGTDDVKtBq4r1OMDgIQ0pG5r t2NUszPXI9/fWCYM3PlTKwgGyh/ImetCOnqnNY0lhHn5hDH6XwqAprEoBiQg/tQvNJNA nJvUdZBdyTgyLEga29TUnzGa32rPQQojd1djUBOwZwKDizr9ksrhuwytmE5UptSNL1m4 RP6Cm2txyCQHONTbd0a7bs5qZQjs0dQ0OWo8o/UKbArbPvNfPMFaG/yxXyTCW9o1kOOq nb+BpwdgIG84hb9gPrGvqGCA/kxxG/CKsIfbmtPY3Ob+efIAPpIcvyKNv/tqzhg/hAyX vZ+Q== X-Gm-Message-State: AOAM5332kw4Es8AIR1sH7wU1/hQWc6Yd3/zSTIvPgVtXb8gYIWc1V5wR PD/z/NFmWcrAnTrfKmhD10azZGn1pZxyWwcPk76Fdw== X-Received: by 2002:ac2:4949:: with SMTP id o9mr542805lfi.254.1625160090454; Thu, 01 Jul 2021 10:21:30 -0700 (PDT) MIME-Version: 1.0 References: <20210624111815.57937-1-odin@uged.al> <20210701103448.GL3840@techsingularity.net> In-Reply-To: From: Vincent Guittot Date: Thu, 1 Jul 2021 19:21:18 +0200 Message-ID: Subject: Re: [PATCH] sched/fair: Ensure _sum and _avg values stay consistent To: Sachin Sant Cc: Odin Ugedal , Mel Gorman , Peter Zijlstra , Naresh Kamboju , Ingo Molnar , open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 1 Jul 2021 at 13:51, Sachin Sant wrote: > > > > > On 01-Jul-2021, at 4:39 PM, Odin Ugedal wrote: > > > > tor. 1. jul. 2021 kl. 12:34 skrev Mel Gorman : > >> > >> What was HEAD when you checked this? 1c35b07e6d39 was merged in the > >> 5.14-rc1 merge window so would not be in 5.13. > > > > From the kernel log it looks like he used commit dbe69e433722 > > (somewhere in Linus' tree), and that should include my patch. I don't > > think the patches from Vincent in the previous thread have been posted > > properly, and I think those can fix the edge case you are seeing. > > > Sorry about the confusion. Yes I am using this code level. > > commit dbe69e43372212527abf48609aba7fc39a6daa27 (HEAD -> master, origin/master, origin/HEAD) > Merge: a6eaf3850cb1 b6df00789e28 > Author: Linus Torvalds > Date: Wed Jun 30 15:51:09 2021 -0700 > > This does contain the patch from Odin. > > > This should mitigate some issues: > > https://lore.kernel.org/lkml/20210622143154.GA804@vingu-book/ > > > > while > > https://lore.kernel.org/lkml/20210623071935.GA29143@vingu-book/ > > might also help in some cases as well. > > > > Both of those are needed to make sure that *_avg is zero whenever *_sum is zero. > > Okay, so additional patches are required to fix this problem completely. > I can help test these. I just sent a clean version of the 1st patch : https://lore.kernel.org/lkml/20210701171837.32156-1-vincent.guittot@linaro.org/ > > Thanks > -Sachin >