1
0
Fork 0
Commit graph

1876 commits

Author SHA1 Message Date
Pavol Žáčik
4502d7abd7
Make DBusExporter reusable for other services
Do not hardcode Polkit namespace into DBusExporter,
provide it as a parameter in the constructor.
2024-02-06 16:54:54 +01:00
Jaroslav Škarvada
b15de12ec9
Merge pull request #587 from zacikpa/resume_latency
plugin_cpu: Support cstate settings of pm_qos_resume_latency_us
2024-01-22 17:15:36 +01:00
Jaroslav Škarvada
05d97dc632
Merge pull request #586 from champtar/rpm-ostree_kargs_skip
Skip calling rpm-ostree kargs in no-op case
2024-01-22 16:12:02 +01:00
Jaroslav Škarvada
1688d39d8f
Merge pull request #573 from zacikpa/acpi
Add a plugin for the ACPI driver
2024-01-22 12:37:30 +01:00
Pavol Žáčik
9b72d697df
Add an ACPI plugin
Resolves: RHEL-16966

At this point, the plugin supports setting a single sysfs attribute,
platform_profile.

The 3 basic ACPI platform profiles are low-power, balanced, and
performance. These are mapped to the generic powersave,
balanced, and *-performance TuneD profiles.
2024-01-22 11:29:39 +01:00
Jaroslav Škarvada
bcfbd5de11
Merge pull request #583 from zacikpa/log-expansion
Expand sysctl plugin options when reporting overrides
2024-01-18 16:00:05 +01:00
Jaroslav Škarvada
b9e20541ec
Merge pull request #581 from ryanabx/energy-performance-preference
profiles: add energy_performance_preference hints to profiles
2024-01-18 15:56:46 +01:00
Jaroslav Škarvada
8ef4f8e712
Merge pull request #541 from rabin-io/patch-1
Fix TextView to expand with window
2024-01-18 11:22:59 +01:00
Jaroslav Škarvada
e8bede2b67
Merge pull request #550 from yarda/sap-hana-kvm-guest-fix-ws
sap-hana-kvm-guest: fix whitespaces
2024-01-18 10:59:59 +01:00
Jaroslav Škarvada
f20a1355e9
Merge pull request #574 from yarda/isolated-cores-variables-comment-improve
profiles: Improve 'isolated_cores=' help text
2024-01-14 23:53:25 +01:00
Pavol Žáčik
1183333c52
plugin_cpu: Support cstate settings of pm_qos_resume_latency_us
The `force_latency` option already supports using C-state IDs/names.
This commit extends the support to the `pm_qos_resume_latency_us` option,
together with the ability to set fallback values (including the special
"n/a" value which disables all C-states).

Resolves: RHEL-21129
2024-01-11 11:15:39 +01:00
Etienne Champetier
dd5355804a Skip calling rpm-ostree kargs in no-op case
If delete and append kargs args are the same in the same order
there is no functional differences so we can safely skip
calling rpm-ostree kargs and avoid creating a new rpm-ostree
deployment.

Resolves: RHEL-20767

Signed-off-by: Etienne Champetier <e.champetier@ateme.com>
2024-01-04 22:35:27 +02:00
Pavol Žáčik
29580c59ae
Expand sysctl plugin options when reporting overrides
Resolves: RHEL-18972
2023-12-20 17:40:27 +01:00
Ryan Brue
845c24e692 profiles: add energy_performance_preference hints to profiles
This commit adds 'energy_performance_preference' tunings for some of the premade profiles in TuneD. For more information about energy_performance_preference, see https://www.kernel.org/doc/html/v4.19/admin-guide/pm/intel_pstate.html#energy-vs-performance-hints

Signed-off-by: Ryan Brue <ryanbrue@hotmail.com>
2023-12-11 12:29:17 -06:00
Jaroslav Škarvada
954bc4624d
Merge pull request #578 from yarda/RHEL-11342
hotplug: do not report ENOENT errors on device remove
2023-12-07 14:30:25 +01:00
Jaroslav Škarvada
2f911b7e02
hotplug: do not report ENOENT errors on device remove
It requires slight internal plugin API change, thus 3rd party plugins
needs updating.

Namely the 'command_set' methods for devices were extended by the
'remove' boolean parameter which is set to 'True' on the hotplug remove
event. Then the method should silent the ENOENT errors where
appropriate, because the device interface may be removed (by
kernel/udev) before the method finishes.

Resolves: RHEL-11342

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-12-07 13:00:34 +01:00
Luiz Capitulino
793e6c8319 profiles: Improve 'isolated_cores=' help text
Just explain what isolated_cores= is for and recommend to only have one
isolated_cores= line to avoid wrong system configuration.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2023-11-28 11:15:47 +01:00
Jaroslav Škarvada
2652d7c29d
Merge pull request #572 from zacikpa/amd-pstate
Be explicit about amd-pstate support
2023-11-23 00:52:54 +01:00
Pavol Žáčik
f03e1d0d24
Be explicit about amd-pstate support
Resolves: RHEL-16469

Since intel_pstate and amd-pstate use the same per-CPU interface
for setting EPP hints, the current cpu plugin supports amd-pstate
out of the box.

This commit modifies current P-state related logs and variable
names to be explicit about the support for amd-pstate.

Note that while intel_pstate supports global attributes such as
`max_perf_pct`, amd-pstate does not.
2023-11-21 08:36:01 +01:00
Jaroslav Škarvada
1460175f08
Merge pull request #570 from yarda/re-fix-escape
Fixed REs escape sequences not to trigger SyntaxWarning
2023-11-15 20:55:12 +01:00
Jaroslav Škarvada
5d3b469a9d
Merge pull request #569 from zacikpa/get-instances
Add API functions to retrieve active instances and their devices
2023-11-14 16:37:03 +01:00
Jaroslav Škarvada
e3ee28297a
Fixed REs escape sequences not to trigger SyntaxWarning
Python 3.12 is more strict about correct escaping and
outputs SyntaxWarning for invalid escape sequences that
were previously silently corrected.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-11-14 16:32:03 +01:00
Pavol Žáčik
db6b880bb6
Add API functions to retrieve active instances and their devices
Resolves: RHEL-15137

Appropriate commands are added to tuned-adm as well.

`get_instances`: Retrieves a list of active instances of a given
plugin or all active instances.

`instance_get_devices`: Retrieves a list of devices assigned
to a given instance.
2023-11-14 15:36:12 +01:00
Jaroslav Škarvada
101cbf03bb
Merge pull request #566 from zacikpa/tuned-adm-acquire-devices
Add a tuned-adm command for moving devices between plugin instances
2023-11-09 23:08:22 +01:00
Pavol Žáčik
f58c25d0bc
Add a tuned-adm command for moving devices between plugin instances
Resolves: RHEL-15141

Until now, this was only possible by manually sending a message to
TuneD via the DBus API.
2023-11-09 19:58:34 +01:00
Jaroslav Škarvada
96819b967c
Merge pull request #555 from MarSik/fix-sysctl-path
RHEL-3707: Add support for sysctl names with slash
2023-11-08 20:58:11 +01:00
Martin Sivak
6ca3f5a93c
Add support for sysctl names with slash
Resolves: RHEL-3707

The logic for converting sysctl names to paths did not work for
sysctls like "net.ipv4.conf.bond0/355.forwarding" because it
contains a slash. According to the sysctl.d manpage, the dots
and slashed must be interchanged if the first separator is a
dot, which we assume.
2023-11-08 11:16:52 +01:00
Pavol Žáčik
114daf0397
Make all functions in plugin_sysctl.py methods of SysctlPlugin
This is necessary for the functions to use the _cmd attribute of
the class.
2023-11-08 11:06:21 +01:00
Jaroslav Škarvada
370a80a065
Merge pull request #546 from yarda/spdx
Converted SPEC file license to SPDX
2023-11-06 15:28:59 +01:00
Jaroslav Škarvada
569c6f58e1
Merge pull request #557 from kenneth-dsouza/tuned_fix
RHEL-3689: Print all arguments of failing command in err_msg
2023-10-24 09:01:36 +02:00
Kenneth D'souza
f7f9c0dedb RHEL-3689: Print all arguments of failing command in err_msg
Improve error log by printing all arguments passed to command.
This helps in troubleshooting issues where just knowing the command is
not enough, we need more details on which settings, devices and options
has caused this error.

Signed-off-by: Kenneth D'souza <kennethdsouza94@gmail.com>
2023-10-24 09:45:04 +05:30
Jaroslav Škarvada
5224682d25
Merge pull request #558 from adriaan42/style/whitespace-in-plugin_cpu
style: fix inconsistent whitespace in plugin_cpu.py
2023-10-12 14:14:06 +02:00
Jaroslav Škarvada
e6914b50a4
Merge pull request #553 from liuzhilin12/master
fix error
2023-10-12 14:03:36 +02:00
Jaroslav Škarvada
9a27fc6879
Merge pull request #556 from jmencak/ksm-return-0
Return 0 when ksm services do not exist
2023-10-12 14:02:45 +02:00
Adriaan Schmidt
c9d50ecf34 style: fix inconsistent whitespace in plugin_cpu.py
Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
2023-09-28 12:26:48 +02:00
Jiri Mencak
158a3e83c9 Return 0 when ksm services do not exist
When ksm or ksmtuned services do not exist, return 0 so that we do not
generate ERRORs in TuneD logs.

Resolves: OCPBUGS-19656

Signed-off-by: Jiri Mencak <jmencak@users.noreply.github.com>
2023-09-24 20:54:34 +02:00
Jaroslav Škarvada
670541d273
new release (2.21.0)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-08-29 13:54:01 +02:00
liuzhilin
81fdebd313 fix error 2023-08-28 10:23:04 +08:00
Jaroslav Škarvada
1e33d23f16
Merge pull request #552 from yarda/api-stop-method-fix
api: fixed stop method not to require any parameter
2023-08-22 22:39:47 +02:00
Jaroslav Škarvada
c7a3544fa9
api: fixed stop method not to require any parameter
Fixes #551

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-08-22 17:08:22 +02:00
Jaroslav Škarvada
b7c8b19214
sap-hana-kvm-guest: fix whitespaces
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-08-21 01:24:45 +02:00
Jaroslav Škarvada
e01ff5db2a
new release (2.21.0-rc.1)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-08-20 23:27:36 +02:00
Jaroslav Škarvada
9a38e1bf2c
Merge pull request #549 from yarda/tuned-gui-fixes
gui: multiple fixes and warnings removal
2023-08-18 01:07:20 +02:00
Jaroslav Škarvada
b448eb6fd4 gui: multiple fixes and warnings removal
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-08-18 00:43:10 +02:00
Jaroslav Škarvada
3d4a5cd20e
Merge pull request #548 from yarda/tuned-gui
gui: fixed inconsistent tabs and spaces, introduced by #516
2023-08-17 23:55:28 +02:00
Jaroslav Škarvada
6a67b3273e
Merge pull request #547 from yarda/sighup-serialize
Serialize SIGHUP processing
2023-08-17 23:48:27 +02:00
Jaroslav Škarvada
e047f7ad5e
gui: fixed inconsistent tabs and spaces, introduced by #516
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-08-17 15:17:15 +02:00
Jaroslav Škarvada
60d54c3698
Serialize SIGHUP processing
Resolves: rhbz#2215298

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-08-17 14:55:50 +02:00
Jaroslav Škarvada
03375968cd
Merge pull request #542 from jmencak/rhbz2217015-no-errors-on-offline-cpus
No errors when physical_package_id file does not exist
2023-08-16 23:02:01 +02:00
Jiri Mencak
a0902c27b3 No errors when physical_package_id file does not exist
Show no errors when the physical_package_id file does not exist -- the
CPUs may be offline.

Resolves: rhbz#2217015

Signed-off-by: Jiri Mencak <jmencak@users.noreply.github.com>
2023-08-16 22:40:03 +02:00