Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp403018rdb; Tue, 5 Dec 2023 08:27:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHxvVhzn3VbRNWws8Z6dJ9xpiABb60fMekiMowMj9jobGUJxMf2YPAvS5urZReh7UTbYUXA X-Received: by 2002:a17:90b:30d2:b0:286:bda7:3eb9 with SMTP id hi18-20020a17090b30d200b00286bda73eb9mr1173703pjb.98.1701793679642; Tue, 05 Dec 2023 08:27:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701793679; cv=none; d=google.com; s=arc-20160816; b=BLSuuXcgHIIZbOFSlnL18VFZRU/2nzOcSolNylkCufu1RMd8pMPjSNnB7JucHq9HIS mCPqOIu28APNpXMFwUdYkbO9ulIYYYK89Y5J08141UYKwPhPIW/Cwmebz497Jthjo+Pj h/CottDGLco6DN722/q5Euk/G9vUtJENjWzmQ0QMQkIMCzlGsu5+nvNDjoHrplibMjl1 zoFP/jWBLcC1xjIxbek5dGpfzePbdStQ4ZUZ8cZ+mMmn7p+uKkUKcJDYYYPpUoZCmRFU E1T7h6/jZn9mVacJt40Uwx5I5uW0c5M0BazdjmbzysxLnLXnCIm25W0Y28PE2ge5YQBZ DXwQ== 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=34kFxB5ltdfNOxlfUUv3hWcvgk2fNs0S+1+PnEKCpqE=; fh=4U/t02z8LNGY8iVWtAn3uQOgJ+V3PhOvFk+cSIBiB3Y=; b=stqlRrRUKfNkETzQZzX4+U99rSnN26u/7pjHpFWoMO+f5L9ovuQTkuIftVoIOazaZF bMh0Z+qMTCNdSBh4RfBbLv9vPTPuavb3z+Zyr+lGF6v+TL4cfS2DUwVMloyHZqrvBk9s 3GGxm4ql1QPFFLzJp2QUYtN8jkPVT5HN/QmbpPWwZN7kKPsN789ifSLxKbKEvD8APQvS 2OVMHtnjasSCo2hygCI4BmJ1vdiA78lRE9eGc4rVPtafNs+rpm2Pc0mP9B61JO9uxxp+ T7aV7xtsobLevR4cOsmtyaNQBqtzyf2Nn/Kx+pZoY2V5AL1OKfjBVKrnUNRnurx9+1Aq w3tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WPOJMDnv; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id lt13-20020a17090b354d00b002867a1cb538si812159pjb.10.2023.12.05.08.27.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 08:27:59 -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; dkim=pass header.i=@linaro.org header.s=google header.b=WPOJMDnv; 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=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 howler.vger.email (Postfix) with ESMTP id 9436880898D8; Tue, 5 Dec 2023 08:27:10 -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 S231869AbjLEQ0x (ORCPT + 99 others); Tue, 5 Dec 2023 11:26:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbjLEQ0v (ORCPT ); Tue, 5 Dec 2023 11:26:51 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0F3B129 for ; Tue, 5 Dec 2023 08:26:57 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-5c6734e0c22so1408075a12.0 for ; Tue, 05 Dec 2023 08:26:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701793617; x=1702398417; 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=34kFxB5ltdfNOxlfUUv3hWcvgk2fNs0S+1+PnEKCpqE=; b=WPOJMDnvdHgZZNVPSgFVQJ+bouag6NeLXUjAu9zTAf0xd6RJmVNdLW3Ro5xydKiwIH aDznR2HgjIUIPGsZ9h7r/oXb6B9O1OJX/ARLAcWkkzqY2wgPC7pzBo5oNo9SzuyBEK3H Lx7KhpVBVM/Jbdsj2jmgKIDrMPSdJkWrvO15rpp0+JIucRnxi9u3kG/o1QrA+zf5p+nM n92U2TKKbT07VBNkkGNxJRsCAK+/2De8yQIgyPfurNalVDz9XIOj/zEW3Jq+DZl3chOc ZtNYSoeC8BJSkiFKS6DTo8JlglEaZK+fO/2nIT/fDAbvr5S+e2QWk6yn+klx60QN0bkY WIAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701793617; x=1702398417; 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=34kFxB5ltdfNOxlfUUv3hWcvgk2fNs0S+1+PnEKCpqE=; b=KDeBSWsdfH59ahHNpuwXykqQb+JIX33+WvkNfuTGSB2as9DOMsbBZpN3LRnLVHwXnz ICFSl8PhQpW07JijowqepSsPiy12Gov+dkCG4ra4pL/Z7s7hEGLJPAzVgUaeoJxu0U7q JlIwTzBc5Gix2lIxXXqvOe1nUbavFZf1OcmI30zPHbKg+Q+Rs/h162DzC8D7GvyYN1kW XjDqBp0F5Gvfb3uJb4nZnZbGIIcz63xECxQlLHZf1UpOZH3pa9RDWYz10t8wxP4f4jya K6DDo+2WqwRzNLmx5r3VhdbC4NUqvJtAJhPdYA1VY8Qta+sJu3Jw9g+WewhxqlfccMEJ BGaA== X-Gm-Message-State: AOJu0Yx3pcW+uenFRWtkE+IMFkQaf3AswWylkEd4/3ygQMBzQSKrrWzx kFSd9oFD2thKcQJCkcoA3YNQTlJaYwIR31sx9NOFWg== X-Received: by 2002:a17:90a:d817:b0:286:58c4:6e49 with SMTP id a23-20020a17090ad81700b0028658c46e49mr1218497pjv.42.1701793617136; Tue, 05 Dec 2023 08:26:57 -0800 (PST) MIME-Version: 1.0 References: <20231203002544.d4zx3oyvjugohh22@airbuntu> <7f1f7dd0-e3b5-4e16-a44e-c08fca567f97@arm.com> In-Reply-To: From: Vincent Guittot Date: Tue, 5 Dec 2023 17:26:46 +0100 Message-ID: Subject: Re: [RFC PATCH 0/6] sched: uclamp sum aggregation To: Hongyan Xia Cc: Qais Yousef , Ingo Molnar , Peter Zijlstra , Dietmar Eggemann , Morten Rasmussen , Lukasz Luba , Christian Loehle , linux-kernel@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 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 08:27:10 -0800 (PST) On Tue, 5 Dec 2023 at 16:19, Hongyan Xia wrote: > > 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. Sorry but no it's not > - Let's consider the [PELT, uclamp_min, uclamp_max] tuple. That's what we are already doing with effective_cpu_util. We might want to improve how we use them in EAS but that's another story than your proposal > - Always carrying all three variables is too much, but [PELT, > clamped(PELT)] is an approximation that works really well. As said before. It's a no go for this mix > > 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. > > >> [...]