Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp363621rdb; Thu, 30 Nov 2023 06:56:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IHMX0qXw/KE2cHI7co9KyxG1tIe5mqU1T18a43EVzdk1QO7wA60WzaR+08ADi4uyFuJ9hro X-Received: by 2002:a05:6a20:729c:b0:18b:826c:411b with SMTP id o28-20020a056a20729c00b0018b826c411bmr25368111pzk.17.1701356181482; Thu, 30 Nov 2023 06:56:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701356181; cv=none; d=google.com; s=arc-20160816; b=tjy5etSgSje6UnbBzSU3PLDiVFkh0PztHt0BmvIr6KsYSLp7bIZbuOWU9P9oN0hLue olIaXGJ5tyGHbfa1yYYPfVUiuZ5dxFzPk4UKN7qe8rk1lFDcFyD0iqmgtZL+jHSrhPyc uov0buV3unTH42JDfdgHkIOW9viDpHuGnm7vcN4yD258nDOmexllYa3yC3os4xjsEoxi 71xoXhIC6REdqwh8HRD384DV+YvcP7NkFjiGqr4lZJ/9FKc82//YAJ9ZW8ua9BWd132M GmRj4YkJG5J64z6KPd6LYs/REgBN3VVn50C1UnKipQDUcttQkLrJN7RL4lTZCWmLPq00 u/kA== 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=5jnslBvWjxL849QqKtDKP6TkAe33VNDOFl/nnQyVf2o=; fh=/gB05vqdJt973vgj/RGrvZZWoVsB22+W4CMJ2mzkzis=; b=YpJ4SiJbeDMzGWDDPKklWZW+87v7Db4+TI2SL0Ifrx0re3+lQBHjMuPFJIRGIQWbQx gdP1G8i4d0pVftnJdD+wQY9QDqjUMDKZMOcEpWg7cyAWoGsezegyNSbIAyQtiFjtji5m v+aJ0xZLqZzRZ1tE2rj87omNMMkt9kA+f8hkm2gOE5E8ro5MkAZbmswvq7slcdLuw3GT u/E1dWBtfoj+R5s7VoZRBAQbfr9yuPAQgyYD3zZWsydElHhIxDd2gGb2YYu9GaNgt5qk 2VWO9QaS5rzZrQBDxhJDJTS9B7U39lc+cJ2hv4UI/cqGmZLEtui/PxkqiP2OeILkycX4 tYWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RHlONaNT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id u20-20020a17090ae01400b002850de13989si3777918pjy.175.2023.11.30.06.56.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 06:56:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RHlONaNT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A7BBB80873A0; Thu, 30 Nov 2023 06:56:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235212AbjK3O4C (ORCPT + 99 others); Thu, 30 Nov 2023 09:56:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232239AbjK3O4B (ORCPT ); Thu, 30 Nov 2023 09:56:01 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFC15D46 for ; Thu, 30 Nov 2023 06:56:07 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-28613d87c4cso997530a91.3 for ; Thu, 30 Nov 2023 06:56:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701356167; x=1701960967; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5jnslBvWjxL849QqKtDKP6TkAe33VNDOFl/nnQyVf2o=; b=RHlONaNT93l6uuTFUj+hnOa466Y+v+6MdiiJ49JmfwpaHdFcJn7j1El4jnTOBzISzs rkBpYQh77RQz6rrSJWr6Sdq3iRDwiBA6NiLss9ENfo0iVcbtHpt9bEyyw9TnpRUrnk19 YMHPQYKQ4P/zLcGcOfgGMIr2wKCMJPY/OCs2Xc5QGgkLZPcmHR0B0znUU5tfm/RCHwOf aiCMzpZuzHvAN4N7dOUCNbydr+S2PVrtMJkPJVreyfwVp6jv4l86pl24jOylnsMKtPZz W8FKigPSfUoWkFpQUC4W/L35J3PTkf6z+2qd3MaLEhohbRiaM3n8Zx0Nvg047UjISwfT 10/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701356167; x=1701960967; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5jnslBvWjxL849QqKtDKP6TkAe33VNDOFl/nnQyVf2o=; b=Wmb6qny9q7jkWHl9VX19T4zU28qFhZ5XSG+Wh6n/tXh9ydYGR0J1tnFLOqh4VhnvMt lxTd3YBMWpwsckfR6jWctXC85AGpp1L29XQE1BlT55wkp13REbEttKNaOU77c+oteSoz fBvJSKIVbUocJwNEoJNVVsMS+2D+jwxeKeOvNuXd8lP2EvxjP87d7ty6ODocBqvFYrq4 Rpxi5LZPnMMGnmZfPKnsHtP1jsrux6mwfy2Z49h+rsp+Gv0RzqP9G4kakIXwMTJhC2RT W0qDjJa6Gjgyi7UV/YtBRlsi7trfqlz6qZN9Ks+478sBFAkZi4jB9O4BTQm72Cf0hlUx 467w== X-Gm-Message-State: AOJu0YxdVNM5dhr+6jyrd5NT3zDgSuen4/5KUsBw/a9Q1+8Iff9Ay1eN PUrCWwko4uSOYt2c/2Y6CeQs3tYT74OWL/IovdSQvg== X-Received: by 2002:a17:90b:1c8b:b0:27c:f309:f381 with SMTP id oo11-20020a17090b1c8b00b0027cf309f381mr22425588pjb.6.1701356167145; Thu, 30 Nov 2023 06:56:07 -0800 (PST) MIME-Version: 1.0 References: <20231127143238.1216582-1-vincent.guittot@linaro.org> In-Reply-To: From: Vincent Guittot Date: Thu, 30 Nov 2023 15:55:55 +0100 Message-ID: Subject: Re: [PATCH 0/2] Simplify Util_est To: Lukasz Luba Cc: hongyan.xia2@arm.com, mingo@redhat.com, alexs@kernel.org, linux-kernel@vger.kernel.org, vschneid@redhat.com, bristot@redhat.com, bsegall@google.com, rostedt@goodmis.org, dietmar.eggemann@arm.com, peterz@infradead.org, juri.lelli@redhat.com, mgorman@suse.de, corbet@lwn.net, siyanteng@loongson.cn, qyousef@layalina.io, linux-doc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 30 Nov 2023 06:56:18 -0800 (PST) On Thu, 30 Nov 2023 at 13:52, Lukasz Luba wrote: > > Hi Vincent, > > On 11/27/23 14:32, Vincent Guittot wrote: > > Following comment in [1], I prepared a patch to remove UTIL_EST_FASTUP. > > This enables us to simplify util_est behavior as proposed in patch 2. > > > > [1] https://lore.kernel.org/lkml/CAKfTPtCAZWp7tRgTpwJmyEAkyN65acmYrfu9naEUpBZVWNTcQA@mail.gmail.com/ > > > > Vincent Guittot (2): > > sched/fair: Remove SCHED_FEAT(UTIL_EST_FASTUP, true) > > sched/fair: Simplify util_est > > > > Documentation/scheduler/schedutil.rst | 7 +-- > > include/linux/sched.h | 35 ++---------- > > kernel/sched/debug.c | 7 +-- > > kernel/sched/fair.c | 81 ++++++++++----------------- > > kernel/sched/features.h | 1 - > > kernel/sched/pelt.h | 4 +- > > 6 files changed, 43 insertions(+), 92 deletions(-) > > > > I recovered my pixel6 and applied these changes. > No power regression in Jankbench. No performance regression in GB5. > Better score in Chrome running Speedometer +3..5%. Thanks for testing > > The code looks much more clean, without the 'struct util_est' > (we will have to adjust our trace events to that change but it's worth). Same for me > > Also, I was a bit surprised that the UTIL_EST_FASTUP wasn't helping > that much comparing to that new 'runnable' signal for the > underestimation corner case... > > Reviewed-and-tested-by: Lukasz Luba Thanks