Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp280286rdb; Thu, 30 Nov 2023 04:52:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2dUauKPD24GQoGRPxtRzSWmYf2F51ekReJ+6vAPV+AsZOglh9bTlCzDQHx1/yrdq2qIUO X-Received: by 2002:a05:6e02:3399:b0:35c:8410:84ed with SMTP id bn25-20020a056e02339900b0035c841084edmr22688033ilb.13.1701348773378; Thu, 30 Nov 2023 04:52:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701348773; cv=none; d=google.com; s=arc-20160816; b=T5DARCjxBmMb68QkGl1UVkxxcmuA19HgbTl6IIJtMhESxyyv3hlLjFp0rP4qjGbGJB 84GiQSXHdBQAsxjvLWwZ3zTcfQq3L0zaRSjETj/fiOuu1qiz4U3jB4TPmhHpcY59oPbK v6iEprNn5V0gEhzPmGCKwmr8K/xoCb5KVEAS/zeXZhzn7JUfD9pQ2QijgLbXkmwIr51H BUepcHC+PbJM4J2n7M6Rpx5e2XDAfNEXi/qI+cWcaBsDIBwrfiI3TVwhI5QMY4yWuUFx IvkZTQUmtnSyEnF72UGxSiMI8us5d/aIzuXh9yRnydL09KoLb14GiKHeOvhRehfhC8IT E2VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=x1uRnBjMR0+7/JaQQR/M9pPt/iMraXytNyzk2D1Ed7E=; fh=TImK4x1IPKcc4c+g3fSKK2t1BlXh5fB6lnEy4S8QiUY=; b=WRJFeiV4UGDj/bed6X+MTcZkYf2V9fugBPdayHB7a92FFTKshZqDKjzCuWxuz3ESGL EbKmShAZgM4o//Gy2FneUZPkBmKe+tb/0uEqiFp7y9HPRf/f7OmfYVv01LIPKf6Z8Y/Y Csg2YDPPTgJlbeJP2V5AdYkSHmWckTHnpMOobT4IZVWDsuumrBOQV8hWUarfXa0jiIrw kI2yXhOUEJedHNjlIHFlyHkNlZFO8Yy89QCCPBLRwDQqLpf93eMRM3gruIUEXCnyPW9Q FPRDcmYWdZUzO1z2mzoMz3RofKw19BRnDTMmg/Ov5RVozvGJdi0JUfEC5Lajf1PVmD6u LbgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id z39-20020a056a001da700b006cb2db00287si1175112pfw.340.2023.11.30.04.52.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 04:52:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id D27588031AFA; Thu, 30 Nov 2023 04:52:50 -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 S1345394AbjK3Mwa (ORCPT + 99 others); Thu, 30 Nov 2023 07:52:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232029AbjK3Mw3 (ORCPT ); Thu, 30 Nov 2023 07:52:29 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EE4DBD7F; Thu, 30 Nov 2023 04:52:35 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4E1621042; Thu, 30 Nov 2023 04:53:22 -0800 (PST) Received: from [10.57.5.51] (unknown [10.57.5.51]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D65BF3F5A1; Thu, 30 Nov 2023 04:52:31 -0800 (PST) Message-ID: Date: Thu, 30 Nov 2023 12:53:30 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/2] Simplify Util_est Content-Language: en-US To: Vincent Guittot 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 References: <20231127143238.1216582-1-vincent.guittot@linaro.org> From: Lukasz Luba In-Reply-To: <20231127143238.1216582-1-vincent.guittot@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=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 04:52:51 -0800 (PST) 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%. 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). 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