Disable cpu_power from showing
Disables cpu_power in help menu and checking for cpu_power match functionality. Resolves: RHEL-107847 Signed-off-by: John B. Wyatt IV <jwyatt@redhat.com>
This commit is contained in:
parent
22f5777720
commit
ed1e3ac474
63
tuna-disable-cpu_power-functionality-for-RHEL9-curre.patch
Normal file
63
tuna-disable-cpu_power-functionality-for-RHEL9-curre.patch
Normal file
@ -0,0 +1,63 @@
|
||||
From 47f2e64a5ca558fabf25464ac4d2db8c949b3166 Mon Sep 17 00:00:00 2001
|
||||
From: "John B. Wyatt IV" <jwyatt@redhat.com>
|
||||
Date: Tue, 29 Jul 2025 10:29:21 -0400
|
||||
Subject: [PATCH 10/10] tuna: disable cpu_power functionality for RHEL9
|
||||
currently.
|
||||
|
||||
At the time libcpupower's bindings were not backported to RHEL9, but we
|
||||
want to backport this functionality and more. If you wish to use the
|
||||
bindings please use RHEL10 or make a request.
|
||||
|
||||
Signed-off-by: John B. Wyatt IV <jwyatt@redhat.com>
|
||||
---
|
||||
tuna-cmd.py | 20 ++++++++++----------
|
||||
1 file changed, 10 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/tuna-cmd.py b/tuna-cmd.py
|
||||
index d0a3e6b..c8e1cbd 100755
|
||||
--- a/tuna-cmd.py
|
||||
+++ b/tuna-cmd.py
|
||||
@@ -91,7 +91,7 @@ def gen_parser():
|
||||
|
||||
|
||||
POS = {
|
||||
- "cpu_list": dict(metavar='CPU-LIST', type=tuna.cpustring_to_list, help="CPU-LIST affected by commands"),
|
||||
+ # "cpu_list": dict(metavar='CPU-LIST', type=tuna.cpustring_to_list, help="CPU-LIST affected by commands"), # disable currently in RHEL9; please use RHEL10 or later
|
||||
"thread_list": dict(metavar='THREAD-LIST', type=threadstring_to_list, help="THREAD-LIST affected by commands"),
|
||||
"filename": dict(metavar='FILENAME', type=str, help="Save kthreads sched tunables to this file"),
|
||||
"profilename": dict(type=str, help="Apply changes described in this file"),
|
||||
@@ -133,9 +133,9 @@ def gen_parser():
|
||||
|
||||
subparser = parser.add_subparsers(dest='command')
|
||||
|
||||
- idle_set = subparser.add_parser('cpu_power',
|
||||
- description='Manage CPU idle state disabling (requires libcpupower and it\'s Python bindings)',
|
||||
- help='Set all idle states on a given CPU-LIST.')
|
||||
+ # idle_set = subparser.add_parser('cpu_power',
|
||||
+ # description='Manage CPU idle state disabling (requires libcpupower and it\'s Python bindings)',
|
||||
+ # help='Set all idle states on a given CPU-LIST.')
|
||||
isolate = subparser.add_parser('isolate', description="Move all allowed threads and IRQs away from CPU-LIST",
|
||||
help="Move all allowed threads and IRQs away from CPU-LIST")
|
||||
include = subparser.add_parser('include', description="Allow all threads to run on CPU-LIST",
|
||||
@@ -228,12 +228,12 @@ def gen_parser():
|
||||
show_irqs_group.add_argument('-S', '--sockets', **MODS['sockets'])
|
||||
show_irqs.add_argument('-q', '--irqs', **MODS['irqs'])
|
||||
|
||||
- idle_set_group = idle_set.add_mutually_exclusive_group(required=True)
|
||||
- idle_set_group.add_argument('-i', '--idle-info', **MODS['idle_info'])
|
||||
- idle_set_group.add_argument('-s', '--status', **MODS['idle_state_disabled_status'])
|
||||
- idle_set_group.add_argument('-d', '--disable', **MODS['disable_idle_state'])
|
||||
- idle_set_group.add_argument('-e', '--enable', **MODS['enable_idle_state'])
|
||||
- idle_set.add_argument('-c', '--cpus', **MODS['cpus'])
|
||||
+ # idle_set_group = idle_set.add_mutually_exclusive_group(required=True)
|
||||
+ # idle_set_group.add_argument('-i', '--idle-info', **MODS['idle_info'])
|
||||
+ # idle_set_group.add_argument('-s', '--status', **MODS['idle_state_disabled_status'])
|
||||
+ # idle_set_group.add_argument('-d', '--disable', **MODS['disable_idle_state'])
|
||||
+ # idle_set_group.add_argument('-e', '--enable', **MODS['enable_idle_state'])
|
||||
+ # idle_set.add_argument('-c', '--cpus', **MODS['cpus'])
|
||||
|
||||
what_is.add_argument('thread_list', **POS['thread_list'])
|
||||
|
||||
--
|
||||
2.50.1
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: tuna
|
||||
Version: 0.19
|
||||
Release: 8%{?dist}
|
||||
Release: 9%{?dist}
|
||||
License: GPL-2.0-only AND LGPL-2.1-only
|
||||
Summary: Application tuning GUI & command line utility
|
||||
URL: https://git.kernel.org/pub/scm/utils/tuna/tuna.git
|
||||
@ -26,6 +26,7 @@ Patch10: 0002-tuna-help.py.patch
|
||||
Patch11: tuna-Fix-show_threads-t-and-show_irqs-q.patch
|
||||
Patch12: tuna-Fix-run-command-failing-to-apply-BATCH-policy.patch
|
||||
Patch13: tuna-Add-U-and-K-to-the-move-command.patch
|
||||
Patch14: tuna-disable-cpu_power-functionality-for-RHEL9-curre.patch
|
||||
|
||||
%description
|
||||
Provides interface for changing scheduler and IRQ tunables, at whole CPU and at
|
||||
@ -79,6 +80,11 @@ done
|
||||
%{_datadir}/polkit-1/actions/org.tuna.policy
|
||||
|
||||
%changelog
|
||||
* Wed Aug 06 2025 John B. Wyatt IV <jwyatt@redhat.com> - 0.19-9
|
||||
- Disable cpu_power from showing in help menu and checking for cpu_power
|
||||
match functionality.
|
||||
Resolves: RHEL-107847
|
||||
|
||||
* Wed Aug 06 2025 John Kacur <jkacur@redhat.com> - 0.19-8
|
||||
- Fix show_threads -t and show_irqs -q to not match everything if no match
|
||||
- Fix run command failing to apply BATCH policy
|
||||
|
||||
Loading…
Reference in New Issue
Block a user