From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 944C5158649 for ; Wed, 10 May 2023 16:18:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D62DFE0948; Wed, 10 May 2023 16:18:55 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6A6BBE0948 for ; Wed, 10 May 2023 16:18:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9EB40340C58 for ; Wed, 10 May 2023 16:18:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3AB8F8E4 for ; Wed, 10 May 2023 16:18:53 +0000 (UTC) From: "Mike Pagano" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Pagano" Message-ID: <1683735091.0e55467b3ca9ea55712b0ccee496a00d8a5c007f.mpagano@gentoo> Subject: [gentoo-commits] proj/linux-patches:6.1 commit in: / X-VCS-Repository: proj/linux-patches X-VCS-Files: 0000_README 5022_BMQ-and-PDS-remove-psi-support.patch X-VCS-Directories: / X-VCS-Committer: mpagano X-VCS-Committer-Name: Mike Pagano X-VCS-Revision: 0e55467b3ca9ea55712b0ccee496a00d8a5c007f X-VCS-Branch: 6.1 Date: Wed, 10 May 2023 16:18:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8f970f34-ac3f-49cf-be77-162dc7e8552b X-Archives-Hash: 13a14fc10dc38aca7837816fd5c14d42 commit: 0e55467b3ca9ea55712b0ccee496a00d8a5c007f Author: Mike Pagano gentoo org> AuthorDate: Wed May 10 16:11:31 2023 +0000 Commit: Mike Pagano gentoo org> CommitDate: Wed May 10 16:11:31 2023 +0000 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0e55467b sched/alt: Remove psi support Bug: https://bugs.gentoo.org/904514 Signed-off-by: Mike Pagano gentoo.org> 0000_README | 4 ++ 5022_BMQ-and-PDS-remove-psi-support.patch | 94 +++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) diff --git a/0000_README b/0000_README index 92e8a587..5e14a47f 100644 --- a/0000_README +++ b/0000_README @@ -206,3 +206,7 @@ Desc: BMQ(BitMap Queue) Scheduler. A new CPU scheduler developed from PDS(incl Patch: 5021_BMQ-and-PDS-gentoo-defaults.patch From: https://gitweb.gentoo.org/proj/linux-patches.git/ Desc: Set defaults for BMQ. Add archs as people test, default to N + +Patch: 5022_BMQ-and-PDS-remove-psi-support.patch +From: https://gitweb.gentoo.org/proj/linux-patches.git/ +Desc: Sched/alt: Remove psi support diff --git a/5022_BMQ-and-PDS-remove-psi-support.patch b/5022_BMQ-and-PDS-remove-psi-support.patch new file mode 100644 index 00000000..4390e2d5 --- /dev/null +++ b/5022_BMQ-and-PDS-remove-psi-support.patch @@ -0,0 +1,94 @@ +From 542887ccaeadc65843ec171bccc87f8aa8bbca95 Mon Sep 17 00:00:00 2001 +From: Alfred Chen +Date: Wed, 26 Apr 2023 16:38:14 +0000 +Subject: [PATCH] sched/alt: Remove psi support + +There are issues(#70, #72, #79) with psi support. Removing the +support of psi as it doesn't bring much gain. +--- + init/Kconfig | 1 + + kernel/sched/alt_core.c | 8 -------- + kernel/sched/alt_sched.h | 1 - + 3 files changed, 1 insertion(+), 9 deletions(-) + +diff --git a/init/Kconfig b/init/Kconfig +index 454f792df9dd..dff86592555a 100644 +--- a/init/Kconfig ++++ b/init/Kconfig +@@ -629,6 +629,7 @@ config TASK_IO_ACCOUNTING + + config PSI + bool "Pressure stall information tracking" ++ depends on !SCHED_ALT + help + Collect metrics that indicate how overcommitted the CPU, memory, + and IO capacity are in the system. +diff --git a/kernel/sched/alt_core.c b/kernel/sched/alt_core.c +index af4d840d4bb7..37dfdc41d2a7 100644 +--- a/kernel/sched/alt_core.c ++++ b/kernel/sched/alt_core.c +@@ -588,7 +588,6 @@ static void update_rq_clock_task(struct rq *rq, s64 delta) + + rq->prev_irq_time += irq_delta; + delta -= irq_delta; +- psi_account_irqtime(rq->curr, irq_delta); + #endif + #ifdef CONFIG_PARAVIRT_TIME_ACCOUNTING + if (static_key_false((¶virt_steal_rq_enabled))) { +@@ -769,7 +768,6 @@ unsigned long get_wchan(struct task_struct *p) + */ + #define __SCHED_DEQUEUE_TASK(p, rq, flags, func) \ + sched_info_dequeue(rq, p); \ +- psi_dequeue(p, flags & DEQUEUE_SLEEP); \ + \ + list_del(&p->sq_node); \ + if (list_empty(&rq->queue.heads[p->sq_idx])) { \ +@@ -779,7 +777,6 @@ unsigned long get_wchan(struct task_struct *p) + + #define __SCHED_ENQUEUE_TASK(p, rq, flags) \ + sched_info_enqueue(rq, p); \ +- psi_enqueue(p, flags & ENQUEUE_WAKEUP); \ + \ + p->sq_idx = task_sched_prio_idx(p, rq); \ + list_add_tail(&p->sq_node, &rq->queue.heads[p->sq_idx]); \ +@@ -2954,7 +2951,6 @@ static int try_to_wake_up(struct task_struct *p, unsigned int state, + } + + wake_flags |= WF_MIGRATED; +- psi_ttwu_dequeue(p); + set_task_cpu(p, cpu); + } + #else +@@ -4828,8 +4824,6 @@ static void __sched notrace __schedule(unsigned int sched_mode) + */ + ++*switch_count; + +- psi_sched_switch(prev, next, !task_on_rq_queued(prev)); +- + trace_sched_switch(sched_mode & SM_MASK_PREEMPT, prev, next, prev_state); + + /* Also unlocks the rq: */ +@@ -7689,8 +7683,6 @@ void __init sched_init(void) + sched_init_topology_cpumask_early(); + #endif /* SMP */ + +- psi_init(); +- + preempt_dynamic_init(); + } + +diff --git a/kernel/sched/alt_sched.h b/kernel/sched/alt_sched.h +index 9fe45bf0cedf..55a15b806e87 100644 +--- a/kernel/sched/alt_sched.h ++++ b/kernel/sched/alt_sched.h +@@ -3,7 +3,6 @@ + + #include + #include +-#include + #include + #include + #include +-- +GitLab +