Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp355651rdb; Tue, 5 Dec 2023 07:19:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IEH1ZJaESQej+2GOAkFM0n8TeT1fWYROeOT8f68xGD/QfHFlgWaUEReXQoOY7Q8Wz1ETHXt X-Received: by 2002:a17:90a:8a0b:b0:286:6cc1:3f00 with SMTP id w11-20020a17090a8a0b00b002866cc13f00mr1558075pjn.55.1701789555576; Tue, 05 Dec 2023 07:19:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701789555; cv=none; d=google.com; s=arc-20160816; b=wo4KNqzJqOC3pBJ8Cs+oWI9i+dJ3rAV/1XLUhh2ZM6XeIgwDxhHOHoSuuJIrH2/Q8n gvM8pl8nlUvo0i45FN6Ywf2V6V2z+U8voe+AkqaQKVEYpXraxgs8U2u/rdiW51LX4r05 ioDutoFvpwE5/b5kWSmyDz0XyaT4KY0GOqlMiy631gPMV60SWuBQHIYW1W4nDCbJIgYI sPmJKyjNZ3eWMEqiwRBt31ONAqK5p/WXoN42lcyC9Dgu0R3l3+2dQoLYmZsrZD4zGv5p pNVmtgU1KKiK0gIvez1GoIe/WdMCszO2IP1sLkkFNC4rXHpvTEDDcUvMmXPIt1hcMk4i ejXQ== 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=pnaNd/Zu88jIOTIaTBMcMKq00WjJAOHJgKpOc69Tfm8=; fh=mKQPqrtRK91ePeu5PwKnPOiALFSQ8ogzt1x2RIvo6IU=; b=hnUAM6rMp/GTQ44cUmgVKDrZADk7gOnREppfUcylF7uIQ2n+iOifg/RFxBLzDCQF73 +QMfZqdOg2cPDYP5hiQ77vD9P1Ip2w6yHAhakR5lJHpaAHyeP9A/RUbG7hr5zKGagySs QS1/EOEjLb+cnsEzqUOyEhfKP3v+XKUVub3FQav5yJ+YDoBCJ3D4oMVO+WYOVqhzm6Tm 5bgge1u8NpVfzttyjBryhtSZXZtHzKzoH9YeXARkg0TJIwb2PqGSnUsPtlgc8QCCWL9x 9eSWdiWGcfyg+QfIMygfcYkWc11Wgnc2fHVwanTrryk+d+9hiEPBDidbCsMhhhgmV7fF t+mA== 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:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id p2-20020a17090ab90200b002851727a227si5148188pjr.32.2023.12.05.07.19.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 07:19:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 67E10822D566; Tue, 5 Dec 2023 07:19:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346061AbjLEPS4 (ORCPT + 99 others); Tue, 5 Dec 2023 10:18:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346031AbjLEPSz (ORCPT ); Tue, 5 Dec 2023 10:18:55 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 62864A9 for ; Tue, 5 Dec 2023 07:19:02 -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 AED3E139F; Tue, 5 Dec 2023 07:19:48 -0800 (PST) Received: from [10.1.31.59] (e133649.arm.com [10.1.31.59]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 376D23F6C4; Tue, 5 Dec 2023 07:19:00 -0800 (PST) Message-ID: Date: Tue, 5 Dec 2023 15:18:58 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 0/6] sched: uclamp sum aggregation Content-Language: en-US To: Vincent Guittot Cc: Qais Yousef , Ingo Molnar , Peter Zijlstra , Dietmar Eggemann , Morten Rasmussen , Lukasz Luba , Christian Loehle , linux-kernel@vger.kernel.org References: <20231203002544.d4zx3oyvjugohh22@airbuntu> <7f1f7dd0-e3b5-4e16-a44e-c08fca567f97@arm.com> From: Hongyan Xia In-Reply-To: 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 howler.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 (howler.vger.email [0.0.0.0]); Tue, 05 Dec 2023 07:19:11 -0800 (PST) On 04/12/2023 16:12, Vincent Guittot wrote: > On Mon, 4 Dec 2023 at 02:48, Hongyan Xia wrote: >> >> [...] >> >> Other shortcomings are not that critical, but the fact that uclamp_min's >> effectiveness is divided by N under max aggregation I think is not >> acceptable. > > Change EAS task placement policy in this case to take into account > actual utilization and uclamp_min/max Thank you. I agree. I want to emphasize this specifically because this is exactly what I'm trying to do. The whole series can be rephrased in a different way: - The PELT signal is distorted when uclamp is active. - Let's consider the [PELT, uclamp_min, uclamp_max] tuple. - Always carrying all three variables is too much, but [PELT, clamped(PELT)] is an approximation that works really well. Of course, I'll explore if there's a way to make things less messy. I just realized why I didn't do things util_est way but instead directly clamping on PELT, it's because util_est boosts util_avg and can't work for uclamp_max. I'll keep exploring options. >> [...]