Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp273522pxj; Fri, 7 May 2021 08:20:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXt3SIDLKi+ylPkz7TTbq55dRwlcnxdVOB6uxFck+P4r/NXsJjrMQVz3merTXzFLO+KEwf X-Received: by 2002:a63:4d24:: with SMTP id a36mr10622233pgb.64.1620400803328; Fri, 07 May 2021 08:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620400803; cv=none; d=google.com; s=arc-20160816; b=Sv4NwYgDsHoezZHtcZrnEmX1h6BKp4BMnAmCePSIeT+Q26z6VuvGEcJ/08Nnvxy4xc GQYkQ6trfEEXOL4Xjtl0vuOh4az2jXHxaQAi9WE01uhbAW4damUkkvZH8LU9CmoAk/UW v5G4sFkfpse17DHKN+eR+Ax8bwtMRGl35nho1JuxCLAREN3e5pzgKeJEIUA4A2BtSXPF 9PwM/wrAW3X2VwALFvvbafLBkfaAPzQO7ijtqlnYZGQ8Dk5cxmVOnjpBOcubs3CcyTay /FptMxASsdqkdF1msg49TP4lWM/n8yukZydjdxBv3H7EgXIULZdTcJ5qeJCXBz8TmRdN bSkw== 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=SsqjtUHNibQ89S6ZtyKVUCcEq5CPnNHP1x8J/AjhU/Y=; b=gdI8hUyvUnhwd4zcOAJ0yyHw7MdDqqwy3vMq1zCNcgAMwYU6CxcTyIq89uGGGTh1r6 OOd4JWenxpvjMPgjTpVLhX01U2OpahHYfRPayiGJFIGHlO+aLbpIJKLNobkRthG4S+bF g/y2FpNw0w1l6UcbNY/IFw46f1F0C+UO7+M2rUkZ3O3CYfOxdWaLNx/3lteq56NwyT9k Vmxr2QcNxau9vb6tHCkgq2xX2a5yOhxrl/qJilux55mwgIqmepdFzmS2Aj6xbKodblH/ 9BC0VydNYVuIIRmiEOwW631V+uK9q1/ZSHeAj+sCfre7nqv7d6Mwwpzo3GoC276K9ZSz mKCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jHkUDIpd; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay12si7415898plb.357.2021.05.07.08.19.50; Fri, 07 May 2021 08:20:03 -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=@gmail.com header.s=20161025 header.b=jHkUDIpd; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236527AbhEGK3D (ORCPT + 99 others); Fri, 7 May 2021 06:29:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234400AbhEGK3C (ORCPT ); Fri, 7 May 2021 06:29:02 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C445AC061574 for ; Fri, 7 May 2021 03:28:01 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id w4so10902662ljw.9 for ; Fri, 07 May 2021 03:28:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SsqjtUHNibQ89S6ZtyKVUCcEq5CPnNHP1x8J/AjhU/Y=; b=jHkUDIpd0jprJjyRyI+D35YAcMHRdGtsBlk/F/Iy2l8OIbW2BC4iUU4QUDR6lVYN6P 1NN5aZRhbzGBYO9XOGbYne3SWGbvJB63vuz/8B9t7YrxH8E722Wek41l5MRvTAuEvPb4 uVXdrZ6O3l6cmVSMtlpeQgMsqtLPspoy+3KqzY97DxJDkWcPaeRrSr4B8qiLn7t7hZAO awezS2tQV0ZF/nj/cW6GhXhVm52CZ+v9SBjYsBBMT/4PGhhRZTKZ5FLxwQwter52/xON C/xNKLjbtThuwn5vJAahi75JYSDsxcpZO4t+4czQe9FCw/i9q4reycBszkhkr7sTHTaO WN6A== 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=SsqjtUHNibQ89S6ZtyKVUCcEq5CPnNHP1x8J/AjhU/Y=; b=NztVaDZ38UF3QCWjNU17VxDA33E1NCgasPPRe8i5Z7ZyGGNVwVWliNT4xqCv1hSbFZ bs8xoPX7tIzGu+boPtWnaN+sMFRLEKQ+mSaGueR8IFZcagWCVkjtpnPrquD/0nYIdD2q Z8bq6eXR68MyVZ0K+RcsdnKbITaHaIBpZmlgZeTBHt+5q80d3bycwg3/3uxHEqFRM/TY 42qL1HKrMqT04NrfFllgecA/TZMIgtp+cyzBGKH+/EWvgindL712VUvJI60uQGFm+1tS PdzLH+q2pyxgIirmVqZBjTFkBM2vgNPcM5/LeNA2UE+mLl5/5eFRfnc/Ae/T3XLYL5sd 94Kw== X-Gm-Message-State: AOAM5310cd9/NH0CtJrqp4v3XA3Uyzpu98FY8PcAGfeI9FMnjGGezqht 2nQUgmk7OB6scz0wUmL+FruqgwF+7nzzuTocILM= X-Received: by 2002:a2e:9f55:: with SMTP id v21mr2809497ljk.420.1620383280159; Fri, 07 May 2021 03:28:00 -0700 (PDT) MIME-Version: 1.0 References: <20210506110936.8797-1-xuewen.yan94@gmail.com> <20210506122823.GA8671@ubiquitous> <20210506162600.GA11916@ubiquitous> In-Reply-To: From: Xuewen Yan Date: Fri, 7 May 2021 18:26:24 +0800 Message-ID: Subject: Re: [PATCH] sched/pelt: Add UTIL_AVG_UNCHANGED flag for last_enqueued_diff To: Vincent Guittot Cc: Vincent Donnefort , Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Benjamin Segall , Mel Gorman , Daniel Bristot de Oliveira , linux-kernel , Chunyan Zhang , Ryan Y Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 7, 2021 at 2:53 PM Vincent Guittot wrote: > > On Fri, 7 May 2021 at 03:36, Xuewen Yan wrote: > > > > On Fri, May 7, 2021 at 12:26 AM Vincent Donnefort > > wrote: > > > > > > On Thu, May 06, 2021 at 08:46:08PM +0800, Xuewen Yan wrote: > > > > Hi > > > > On Thu, May 6, 2021 at 8:28 PM Vincent Donnefort > > > > wrote: > > > > > > > > > > On Thu, May 06, 2021 at 07:09:36PM +0800, Xuewen Yan wrote: > > > > > > From: Xuewen Yan > > > > > > > > > > > > The UTIL_AVG_UNCHANGED flag had been cleared when the task util changed. > > > > > > And the enqueued is equal to task_util with the flag, so it is better > > > > > > to add the UTIL_AVG_UNCHANGED flag for last_enqueued_diff. > > > > > > Could we change the description here a bit? I don't think this is accurately > > > explaning the issue. Would probably be interesting to mention that by not > > > setting the flag, which is the LSB, we add +1 to the diff. This is therefore > > > reducing slightly UTIL_EST_MARGIN. > > > > ok, If you agree with this patch, I'll change it in V2. > > Although the impact is not significant , it's worth having an accurate > computation. So the patch makes sense to me. Please submit a v2 Okay, I'll submit a v2 later.