1
0
Fork 0
Commit graph

1966 commits

Author SHA1 Message Date
Pavol Žáčik
b3b0892d5b
Install script functions and recommend.d to /usr/lib/tuned/
In #615, they were accidentally moved to /usr/lib/tuned/profiles/
where all profiles were migrated.

This also changes the location of `functions` file within
the repository, separating it from the profiles themselves.

Resolves #642.
2024-06-19 15:41:37 +02:00
Pavol Žáčik
bb39823410
Rename TUNED_PROFILESDIR to TUNED_PROFILES_DIR 2024-06-19 15:24:10 +02:00
Jaroslav Škarvada
5d5dbfccf4
Merge pull request #640 from adriaan42/adriaan/log-warn
chore: remove use of deprecated Logger.warn()
2024-06-15 20:40:54 +02:00
Adriaan Schmidt
85e1e96ae6 chore: remove use of deprecated Logger.warn()
Always use warning(), as warn() has been removed from Python with v3.13.

Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
2024-06-15 09:00:39 +02:00
Jaroslav Škarvada
0b2461ee78
new release (2.23.0)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2024-06-06 13:20:27 +02:00
Jaroslav Škarvada
5385fa9972
Merge pull request #636 from zacikpa/lazy-hdparm-checks
Disk plugin: make hdparm device checks lazy
2024-05-30 14:40:32 +02:00
Jaroslav Škarvada
6de25e234b
Merge pull request #622 from zacikpa/reduce-ipi
Avoid unnecessary inter-processor interrupts by checking that writes are necessary
2024-05-30 14:31:18 +02:00
Pavol Žáčik
0536382158
Disk plugin: make hdparm device checks lazy
The disk plugin checks each device for hdparm
support during initialization. When using many disk
devices, this can lead to unwanted delays in profile
application.

This change makes the hdparm check lazy by postponing
it to the moment when hdparm is actually needed, i.e.,
during dynamic tuning or when setting spindown/apm.
Each device is checked at most once - the plugin now stores
the sets of hdparm-supported devices and hdparm-unsupported
devices).

Resolves: RHEL-6891
2024-05-30 08:11:32 +02:00
Pavol Žáčik
4e37d4a581
Revert "Video plugin: make hdparm device checks lazy"
This reverts commit 6d4e153e00,
accidentally pushed to master branch.
2024-05-29 13:49:28 +02:00
Pavol Žáčik
6d4e153e00
Video plugin: make hdparm device checks lazy
The video plugin checks each device for hdparm
support during initialization. When using many disk
devices, this can lead to unwanted delays in profile
application.

This change makes the hdparm check lazy by postponing
it to the moment when hdparm is actually needed, i.e.,
during dynamic tuning or when setting spindown/apm.
Each device is checked at most once - the plugin now stores
the sets of hdparm-supported devices and hdparm-unsupported
devices).

Resolves: RHEL-6891
2024-05-29 13:33:02 +02:00
Pavol Žáčik
167c6f50c2
Do not check for x86_energy_perf_policy if it won't be used
If the CPU supports hwp_epp, we should always be able to access
EPB via its sysfs knob, so we don't have to check if we have
x86_energy_perf_policy because we don't need it to manipulate EPB.
2024-05-28 12:59:35 +02:00
Pavol Žáčik
ec85884a04
Check that writes are necessary if they may cause redundant IPIs
Resolves: RHEL-25613
2024-05-28 12:40:16 +02:00
Pavol Žáčik
a7e4ce5e45
Add an option to skip write_to_file if the content would not change
In some situations it may be desirable to check if a file write is
necessary by comparing the new file content with the existing one
(e.g., when the write always causes an inter-processor interrupt).
This commit adds an option to perform such a check in `write_to_file`.
If it succeeds, the write is skipped.
2024-05-28 12:39:52 +02:00
Jaroslav Škarvada
5512f1df09
Merge pull request #633 from yarda/drop-unused-amd-variable
throughput-performance: dropped unused AMD related variable
2024-05-23 21:29:48 +02:00
Jaroslav Škarvada
c52381344c
Merge pull request #629 from zacikpa/ppd-bug-fixes
Bug fixes in tuned-ppd
2024-05-23 21:29:25 +02:00
Jaroslav Škarvada
de2cf6849c
Merge pull request #627 from zacikpa/tuned-adm-profile-check
Re-check dbus when (re)starting TuneD from tuned-adm profile
2024-05-23 21:26:11 +02:00
Jaroslav Škarvada
0fb790c6ee
Merge pull request #618 from superm1/superm1/battery+amdgpu
Update panel power savings for battery-balanced profile
2024-05-23 21:20:00 +02:00
Mario Limonciello
c95380a10c Turn on amdgpu panel power savings in balanced-battery
This will be enacted when tuned-ppd detects a change to battery
while in the balanced mode.
2024-05-23 11:20:21 -05:00
Jaroslav Škarvada
95738a5c54
Merge pull request #601 from superm1/superm1/amdgpu
Add a plugin for amdgpu tuning of the `panel_power_savings` attribute
2024-05-23 18:16:22 +02:00
Mario Limonciello
40d12e0c01 Modify the video plugin for tuning of the amdgpu panel_power_savings attribute
This attribute accepts a range from 0 through 4 where larger values
will also have larger panel power savings.

Using this has a trade off for color accuracy, and it is only applied
when the system is currently operating on battery.

Intentionally the plugin will check what values are already programmed
to the sysfs file to avoid unnecessary writes.  Writing the sysfs file
will cause a modeset which isn't necessary if writing the same value twice.

The default values are applied to the profiles that are used in
power-profiles-daemon compatbility.  They also match the values used in
that software.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
2024-05-23 10:16:18 -05:00
Mario Limonciello
0de40067da video: Don't show error when trying to read radeon files
When the plugin supports non-radeon files it shouldn't show errors
trying to read values.
2024-05-23 10:16:12 -05:00
Mario Limonciello
0cd246a6ce video: make missing radeon_powersave files quieter
When the plugin is overloaded to non-radeon files it shouldn't be
so noisy.
2024-05-23 10:16:12 -05:00
Mario Limonciello
b8784205fd video: Rename _radeon_powersave_files to _files
This will allow reusing for non-radeon stuff as well.
2024-05-23 10:16:12 -05:00
Jaroslav Škarvada
b37d8efd5c
Merge pull request #624 from yarda/functions-debug
functions: added 'log' which helps with debugging
2024-05-23 15:03:52 +02:00
Jaroslav Škarvada
7d8f11ace2
Merge pull request #621 from adriaan42/adriaan/info_on_missing_pm_qos
plugin_cpu: decrease the severity of _has_pm_qos==False
2024-05-23 14:02:28 +02:00
Jaroslav Škarvada
c14e156e63
Merge pull request #620 from yarda/sap-netweaver-vm-max-map-count-fix
sap-netweaver: increased vm.max_map_count
2024-05-23 13:57:07 +02:00
Jaroslav Škarvada
ed472f0175
Merge pull request #619 from yarda/sighup-buffer
daemon: buffer sighup signal
2024-05-23 13:54:07 +02:00
Jaroslav Škarvada
dcce8e3efa
Merge pull request #617 from yarda/propagate-unexpected-exceptions-in-wait-exception-handler
Propagate unexpected exceptions in the wait exception handler
2024-05-23 13:41:24 +02:00
Jaroslav Škarvada
d4399b82a0
Merge pull request #616 from superm1/superm1/battery-detection
tuned-ppd: Detect battery change events
2024-05-23 13:40:33 +02:00
Jaroslav Škarvada
40f1507138
Merge pull request #615 from zacikpa/default-profile-locations
Migrate profiles to /etc/tuned/profiles/ and /usr/lib/tuned/profiles/
2024-05-23 13:24:08 +02:00
Jaroslav Škarvada
f75d795a11
Merge pull request #596 from adriaan42/adriaan/dynamic-instance-creation
add dbus commands for dynamic creation of instances
2024-05-21 18:17:45 +02:00
Jaroslav Škarvada
98d7deaaec
Merge pull request #580 from adriaan42/adriaan/irq-tuning
Tuning of individual interrupts
2024-05-21 14:47:18 +02:00
Adriaan Schmidt
1aeb223b74 feat: add plugin_irq
This new plugin enables the tuning of individual interrupt affinities.

Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
2024-05-21 08:54:37 +02:00
Jaroslav Škarvada
362f098f51
Merge pull request #562 from gsauthof/modules-equal-value
Allow equal characters in kernel module parameter value
2024-05-16 15:15:08 +02:00
Jaroslav Škarvada
9d145a05aa
throughput-performance: dropped unused AMD related variable
Leftover from c6d6fdcc4c

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2024-05-13 10:32:36 +02:00
Pavol Žáčik
31b21edc8a
ppd: Adjust the detection of 'performance-degraded'
In rare cases, 'lap-mode' and 'no-turbo' files may be
empty. Do not attempt to convert their content into
integers. Instead check if it's directly equal to "1"
(after stripping whitespace).
2024-04-19 09:53:08 +02:00
Pavol Žáčik
b2ed1258c7
ppd: Fix hold releasing
Do not iterate directly through the dictionary of holds,
because it's being modified. Instead, iterate through
the list of the dictionary keys.
2024-04-19 09:51:31 +02:00
Pavol Žáčik
737d8c0af4
ppd: Add debug logs when changing base profile 2024-04-19 09:50:25 +02:00
Pavol Žáčik
8255b1f34e
Re-check dbus when (re)starting TuneD from tuned-adm profile
If TuneD was simply off before the restart, we can then
switch the profile using the dbus method. Otherwise we
fallback to a profile switch via setting the active_profile
file (where we do not check for success).
2024-04-17 12:07:21 +02:00
Jaroslav Škarvada
3a286103c3
functions: added 'log' which helps with debugging
E.g.:
[variables]
dummy=${f:log:${f:exec:uname}}

Logs the output of the 'uname' command to the TuneD log.

Also added more verbose debug output which can help with functions
debugging. Enable with 'tuned -D'.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2024-04-14 15:26:00 +02:00
Pavol Žáčik
ea9fce1e90
Simplify reading/writing from/to sysctl by using existing functions
We can use `read_file` and `write_to_file` to handle all manipulation
of sysctl parameters. This does not change the behavior of _read_sysctl
and _write_sysctl, but it alters some of their debug/error messages.
2024-04-11 10:10:24 +02:00
Pavol Žáčik
1f5f9fa59c
Fix logs in commands.read_file
Print the name of the file being read instead
of its descriptor.
2024-04-11 10:09:20 +02:00
Adriaan Schmidt
2a17fba827 plugin_cpu: decrease the severity of _has_pm_qos==False
The feature depends on kernel configuration (CONFIG_CPU_IDLE).
While this seems to be commonly enabled on x86, we've seen ARM
systems where it's disabled, and in this case it's perfectly valid
for /dev/cpu_dma_latency to be missing.
Since we cannot opt-out of the PM QoS feature in the cpu plugin, this
case should not be an error.

Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
2024-04-09 11:32:54 +02:00
Jaroslav Škarvada
04ead944fd
sap-netweaver: increased vm.max_map_count
Resolves: RHEL-31757

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2024-04-08 11:03:47 +02:00
Jaroslav Škarvada
ef7cfeb729
daemon: buffer sighup signal
Resolves: RHEL-31180

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2024-04-04 18:27:13 +02:00
Mario Limonciello
6ef5b58ea8 tuned-ppd: Detect battery change events
power-profiles-daemon has the ability to detect battery change events
using upower and to apply different tuned settings based upon whether
plugged into power or not.

In PPD this is used specifically to set the energy performance preference
differently in the 'balanced' profile, but there is no reason that this
concept can't actually apply to all profiles.

Add support for detecting battery change events and apply a profile
specified in ppd.conf for battery in the different PPD states.
2024-04-04 07:13:06 -05:00
Pavol Žáčik
6d3aa949b3
Migrate profiles to /etc/tuned/profiles/ and /usr/lib/tuned/profiles/ 2024-04-03 11:01:10 +02:00
Jaroslav Škarvada
1fb7c803b6
Merge pull request #609 from zacikpa/custom-profile-dir
Add the option to specify custom directories with user-defined profiles
2024-04-03 10:32:05 +02:00
Jaroslav Škarvada
1700a98d48
Propagate unexpected exceptions in the wait exception handler
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2024-04-02 19:55:09 +02:00
Pavol Žáčik
90ea23b8b3
Add an option to configure profile directories
Resolves: RHEL-26157
2024-03-28 10:56:49 +01:00