Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5838934rdb; Thu, 14 Dec 2023 00:30:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGAI61/fYh37ixCmMYg8AJVUEiBFghMi6azgGDMDiZWl3F3VQZTFzsvQj84Pi2Pn2or142k X-Received: by 2002:a05:6808:2dcc:b0:3ba:f21:d4a6 with SMTP id gn12-20020a0568082dcc00b003ba0f21d4a6mr8527937oib.65.1702542630107; Thu, 14 Dec 2023 00:30:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702542630; cv=none; d=google.com; s=arc-20160816; b=Kho3oPPGDaXjwqA7Ga7xLOIfW6jDn7w157z/A/KPxtDVIl5/ZSzXS4iK94c/pgWI5F QpNQqF7qdJ6V+/y6+41zw5b12IoZqdlmCMKD0kaeJC9+S4NmPlM04USunGkm1mY7i29D ncc4BKwvRry1zIOM6RFTQ7aDASuN16WlmXgnisILYh6yiTw3NgD+RG+NQpsvIrLCAz/Q +M6tI6cmJ8q1w0QMrDe2u+yNFWyjgX8NwB1PZLU60iHtnU01Ca1w9FUCzuSvsBUIAd6H PSa1yFP0lZAPcgBXQDhnz26VnFjfjaohJTwN593EVAaekAmh4JZelODWj3mXgasAijrK e+zw== 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=8j+DyWsWq3rPzqEOsQC4R8gsbQQDhgjXMsOZjWoW7Zg=; fh=fFNNmjSRhLYMsrSFDN3Qw3CUCZcZVCbsNzfTw0LXseI=; b=yLXKzOuDDeEVkOY2U0kJUAX+fB2XSqgB0YE/sohNTF81jwVTV5+3LR+UM9rrV11ZSD 2FJdmLJO+TVSAYVa/Lzfm9jN+wU6wESiZSVE9avt1wmP+xC3qCuse6H/XpUWCBpv9mwT H2n2NrW3pA9UjSQFc4K0VfJ8WvTZPT+TWG3TtNJvWk3ID57JD89IkkVFO9bxt5DBKIiw NvA1FDERqW+2LmNKqlyRFImNvJEQbAuHdZOhwZKu/RCoi/fENKWBA1moJqaB9Dy1pGWD /BZlwKFKTc5rfSTEdKsVbyu+tLaMCEmld6orF3QsjKKYfF+CWZTsEH/3PzCwxShJnKxV mtww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sHc06SwI; 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 ko10-20020a056a00460a00b006d09878f4f0si5685320pfb.76.2023.12.14.00.30.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 00:30:30 -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=sHc06SwI; 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 DDEB482EC564; Thu, 14 Dec 2023 00:30:03 -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 S229731AbjLNI3p (ORCPT + 99 others); Thu, 14 Dec 2023 03:29:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjLNI3n (ORCPT ); Thu, 14 Dec 2023 03:29:43 -0500 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0F35BD for ; Thu, 14 Dec 2023 00:29:48 -0800 (PST) Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-3ba04b9b103so3616940b6e.0 for ; Thu, 14 Dec 2023 00:29:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702542588; x=1703147388; 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=8j+DyWsWq3rPzqEOsQC4R8gsbQQDhgjXMsOZjWoW7Zg=; b=sHc06SwI9GIJFPS0x5UUyUSgZN1rZv1U8PxLNpFZ/UOOPnUapHBPOC8SCWwhTjkGYD r0kip++XNWdCWFZqMcjo1abJXscTdyd/hVEfraqAo9Vv7jQtU1a/oUPkkw36/3Ueeu3+ BZtwm0DVqD4PJtFUrpS3B5OC2kCI5mtoqMkrlISpMpzH1END9vdxdX4Q3Xaw0EoOFqz6 lbUvrJQ4uCOSwFBWeruH+JLdtAe3VzDcURvQjDITqcOrX06Xg4vv6reBJyVnJLtWtNnG nXboT0cxI37Ash9amY8r1C2fGRqVssFXn7JhV9wYiGADIfEIPii7ahr8iFLkCrxhnkLt PrxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702542588; x=1703147388; 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=8j+DyWsWq3rPzqEOsQC4R8gsbQQDhgjXMsOZjWoW7Zg=; b=kW0+EKeU5niqUJSR76J92Mw34XNr01ua3+M3ozlLozEM0/A5jdIG0RQeo+PV1CLS1V LrCmvMBEKEekWNjMptyO9BO6F/Jq4wz/F2nEpEKWeV1hlyauDpdfVmObWPyaJwbwIhxY xWn6U5uCJUK0h/r9qtNY4yHvHDgxqx3iJn1XjKqzQnjv4/w7MXYRmZ2l6SjS7hkbpnSq rlwbR8AQ5aHmA2jsvsGbFSKWpsRfy1gWOKD/nBj8XEvrQz73p3LxbM2NchHMO3YvV0DS KxFbR6+tYkB5gHCVHP4yropEQPwHfwzmCvU3zC1MJ1Bz393y/ipkHYwvPYIrzZqo85td pe2w== X-Gm-Message-State: AOJu0YwqCDzKAZdWP9cr97XawAy1KKWelL1BKPdJQ2eNPcyShLK1RLGf Wgc6Y1E9glbn0Alu0KRMivtMczQKhuNZr22T9DdEzxvzLGXh6XPMBCU= X-Received: by 2002:a05:6808:2019:b0:3b9:d4cd:3498 with SMTP id q25-20020a056808201900b003b9d4cd3498mr12216403oiw.28.1702542588167; Thu, 14 Dec 2023 00:29:48 -0800 (PST) MIME-Version: 1.0 References: <20231212142730.998913-1-vincent.guittot@linaro.org> <47b4cbcb-d33d-4699-a148-0108cf734e23@arm.com> In-Reply-To: <47b4cbcb-d33d-4699-a148-0108cf734e23@arm.com> From: Vincent Guittot Date: Thu, 14 Dec 2023 09:29:37 +0100 Message-ID: Subject: Re: [PATCH 0/5] Rework system pressure interface to the scheduler To: Lukasz Luba Cc: catalin.marinas@arm.com, will@kernel.org, linux-trace-kernel@vger.kernel.org, amit.kachhap@gmail.com, daniel.lezcano@linaro.org, mhiramat@kernel.org, vschneid@redhat.com, bristot@redhat.com, mgorman@suse.de, bsegall@google.com, juri.lelli@redhat.com, peterz@infradead.org, mingo@redhat.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, konrad.dybcio@linaro.org, andersson@kernel.org, agross@kernel.org, rui.zhang@intel.com, viresh.kumar@linaro.org, rafael@kernel.org, sudeep.holla@arm.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@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]); Thu, 14 Dec 2023 00:30:04 -0800 (PST) On Thu, 14 Dec 2023 at 09:21, Lukasz Luba wrote: > > Hi Vincent, > > I've been waiting for this feature, thanks! > > > On 12/12/23 14:27, Vincent Guittot wrote: > > Following the consolidation and cleanup of CPU capacity in [1], this serie > > reworks how the scheduler gets the pressures on CPUs. We need to take into > > account all pressures applied by cpufreq on the compute capacity of a CPU > > for dozens of ms or more and not only cpufreq cooling device or HW > > mitigiations. we split the pressure applied on CPU's capacity in 2 parts: > > - one from cpufreq and freq_qos > > - one from HW high freq mitigiation. > > > > The next step will be to add a dedicated interface for long standing > > capping of the CPU capacity (i.e. for seconds or more) like the > > scaling_max_freq of cpufreq sysfs. The latter is already taken into > > account by this serie but as a temporary pressure which is not always the > > best choice when we know that it will happen for seconds or more. > > > > [1] https://lore.kernel.org/lkml/20231211104855.558096-1-vincent.guittot@linaro.org/ > > > > Vincent Guittot (4): > > cpufreq: Add a cpufreq pressure feedback for the scheduler > > sched: Take cpufreq feedback into account > > thermal/cpufreq: Remove arch_update_thermal_pressure() > > sched: Rename arch_update_thermal_pressure into > > arch_update_hw_pressure > > > > arch/arm/include/asm/topology.h | 6 +-- > > arch/arm64/include/asm/topology.h | 6 +-- > > drivers/base/arch_topology.c | 26 ++++----- > > drivers/cpufreq/cpufreq.c | 48 +++++++++++++++++ > > drivers/cpufreq/qcom-cpufreq-hw.c | 4 +- > > drivers/thermal/cpufreq_cooling.c | 3 -- > > include/linux/arch_topology.h | 8 +-- > > include/linux/cpufreq.h | 10 ++++ > > include/linux/sched/topology.h | 8 +-- > > .../{thermal_pressure.h => hw_pressure.h} | 14 ++--- > > include/trace/events/sched.h | 2 +- > > init/Kconfig | 12 ++--- > > kernel/sched/core.c | 8 +-- > > kernel/sched/fair.c | 53 ++++++++++--------- > > kernel/sched/pelt.c | 18 +++---- > > kernel/sched/pelt.h | 16 +++--- > > kernel/sched/sched.h | 4 +- > > 17 files changed, 152 insertions(+), 94 deletions(-) > > rename include/trace/events/{thermal_pressure.h => hw_pressure.h} (55%) > > > > I would like to test it, but something worries me. Why there is 0/5 in > this subject and only 4 patches? I removed a patch from the series but copied/pasted the cover letter subject without noticing the /5 instead of /4 > > Could you tell me your base branch that I can apply this, please? It applies on top of tip/sched/core + [1] and you can find it here: https://git.linaro.org/people/vincent.guittot/kernel.git/log/?h=sched/system-pressure > > Regards, > Lukasz