1
0
Fork 0
Commit graph

106 commits

Author SHA1 Message Date
Manuel
410344b8db
Makefile: Add support for installation to custom $LIBEXECDIR 2025-02-01 20:50:33 +01:00
Jaroslav Škarvada
300444b236
docs: fixed docs generation on centos-7
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2025-01-18 22:48:44 +01:00
Jaroslav Škarvada
84f4d122e9
makefile: added support for installation to custom $BINDIR/$SBINDIR
This is required by Fedora 42 /usr/bin /usr/sbin merge.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2025-01-16 11:13:35 +01:00
Pavol Žáčik
456ec3c0f8
tuned-ppd: Support the new UPower PPD namespace
Since version 0.20, power-profiles-daemon exposes
its DBus interface under "org.freedesktop.UPower.PowerProfiles"
alongside the previous name. To be compatible with PPD, this commit
implements the same change into tuned-ppd.

Resolves: #683
2024-12-11 20:56:06 +01:00
Jaroslav Škarvada
297e240834
Merge pull request #693 from zacikpa/autodocs
Automatic generation of plugin docs from their docstrings
2024-12-11 20:39:03 +01:00
Pavol Žáčik
d5bd033422
tuned-ppd: Keep track of active and base profile
Instead of querying TuneD each time we want to determine the active
TuneD profile, remember its value. Also watch for signals from TuneD,
updating the value when the TuneD profile changes (resolves #689).

The daemon now also keeps track of the "base" PPD profile, which is
restored when all profile holds are released or when tuned-ppd is
restarted. For the latter purpose, this profile is also saved in a file.

Direct access via two dictionaries (one for AC, one for DC)
was clumsy, this commit replaces it with a new class - ProfileMap.
2024-12-03 15:40:05 +01:00
Jaroslav Škarvada
7a419499b1
spec: used macro for profiles path and other fixes
- improved conditionals for better readability
- fixed tuned-ppd not to run install twice
- used macro for profiles path
- consolidated names of related variables
- updated Makefile to update the current profile paths during
  installation
- fixed tests to use correct profile directory on RHEL/CentOS
- consolidated whitespaces and variable names in fixed tests

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2024-10-16 11:13:28 +02:00
Pavol Žáčik
71b41394e2
Add a script for generation of plugin docs from docstrings
The script simply joins an introduction text with the
docstrings of all plugin classes.
2024-10-11 12:45:20 +02:00
Pavol Žáčik
dc208965ee
Add functions to the files copied by the release-cp Makefile target
This change was forgotten during #644, therefore causing errors
when running `make rpm`.
2024-07-23 13:26:33 +02:00
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
Pavol Žáčik
6d3aa949b3
Migrate profiles to /etc/tuned/profiles/ and /usr/lib/tuned/profiles/ 2024-04-03 11:01:10 +02:00
Mario Limonciello
1883671d60 Add missing install command for tuned-ppd.py
Fixes: 3e03b8b Configure the PPD-to-TuneD daemon to work as a replacement of PPD
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Closes: https://github.com/redhat-performance/tuned/issues/597
2024-02-09 09:16:27 -06:00
Pavol Žáčik
3e03b8b6ca
Configure the PPD-to-TuneD daemon to work as a replacement of PPD
This includes the configuration of DBus, systemd, Polkit, and a new
TuneD Fedora/RHEL subpackage.
2024-02-07 22:10:21 +01:00
Anthony D'Atri
2dda2301f0 Recast README into MarkDown with various minor corrections and improvements
Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
2023-06-12 23:17:23 -04:00
Evgeni Golov
7238f72928 install dbus policy in /usr/share/dbus-1
/etc is for local overrides, not for package-shipped policies
2023-02-18 19:56:34 +01:00
Jaroslav Škarvada
2191d6fe9d
Merge pull request #490 from yarda/python312-fix
Makefile: added fix for python-3.12
2023-02-08 02:05:18 +01:00
Jaroslav Škarvada
344028dcb4
Merge pull request #478 from heirecka/allow-selecting-pkgconfig
Allow selecting a different pkg-config executable
2023-02-08 01:46:50 +01:00
Jaroslav Škarvada
fae8cb34b0
Makefile: added fix for python-3.12
Resolves: rhbz#2154801

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-01-12 14:38:10 +01:00
Christophe Fontaine
3bdc7ab381 Add new cpu-partitioning-powersave profile
The new profile sets the intel_acpi driver to passive mode to
be able to set the standard acpi governors (ondemand/userspace)
and provides more flexibility on the C-states, as it is exposed
as a new variable.

Signed-off-by: Christophe Fontaine <cfontain@redhat.com>
2022-11-22 17:50:30 +01:00
Heiko Becker
fac6fe3a32 Allow selecting a different pkg-config executable
Helpful if you have an arch-prefixed pkg-config, e.g. when cross
compiling.

Signed-off-by: Heiko Becker <heirecka@exherbo.org>
2022-11-11 20:13:47 +01:00
Jaroslav Škarvada
89e670c80a
Fixed building on RHEL-7/CentOS 7
Also fixed building with python-2.7.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-06-19 11:15:12 +02:00
Ondřej Lysoněk
4f5f35830a Add support for a post-loaded profile
This is a minimal viable implementation of a post-loaded profile
feature. It was implemented to satisfy the needs of the
kernel_settings Ansible role.
https://github.com/linux-system-roles/kernel_settings

This feature allows us to apply a profile in a way that is
somewhat separate from the way profiles from the active_profile file
are applied. Namely, the post-loaded profile is always applied after
all the profiles from the active_profile (or more precisely, the
post-loaded profile is always put to the tail of the profile chain
when merging). Also, the post-loaded profile setting is not affected
by running 'tuned-adm profile <some profile>' - the post-loaded
profile remains applied.

The name of the post-loaded profile is stored in
/etc/tuned/post_loaded_profile.

The lack of support for multiple post-loaded profiles was more or less
an arbitrary decision. There are no problems with it, as far as I can
see. However, there is currently no use case for multiple post-loaded
profiles, so I decided to make things easier for our future selves -
it's one less thing to worry about if we need to make changes to the
profile loading logic. We can add support for multiple post-loaded
profiles anytime.

A number of other design decisions went into the
implementation. They are listed here:
https://github.com/redhat-performance/tuned/pull/272

Resolves: rhbz#1798183

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2020-06-01 19:11:29 +02:00
Yixun Lan
8ed2f8fc61 drop bashism syntax, make it happy with dash
see bug report at
https://github.com/redhat-performance/tuned/issues/246
https://bugs.gentoo.org/706164

Signed-off-by: Yixun Lan <dlan@gentoo.org>
2020-02-16 12:27:03 +00:00
Ondřej Lysoněk
34eb61f8b8 Make python not write bytecode files when unit tests are run
Previously, when unit tests were run, python would leave behind files
with bytecompiled modules. It's not useful, it just clutters the
repository. And it could potentially lead to problems - it seems to
have lead to some problem for me earlier today when running git bisect to
find out when `make test` started failing.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-11-26 13:18:00 +01:00
Jaroslav Škarvada
cff78c537c tests: moved tests under directory 'tests'
Also renamed directories to be more consistent.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-11-18 16:34:11 +01:00
Ondřej Lysoněk
800945d091 Drop profile sap-hana-vmware
As discussed in rhbz#1672213, the sap-hana-vmware profile is not needed
anymore and it only confuses users. Let's drop it.

Resolves: rhbz#1715541

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-06-06 10:52:15 +02:00
Jaroslav Škarvada
033e35b4c4 doc: renamed doc/guide to doc/manual
After team discussion we decided to rename it to manual.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-13 14:39:55 +01:00
Jaroslav Škarvada
94d70899c9
doc: installed html instead of the adoc
Also added support to the Makefile and spec.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-12 19:57:15 +01:00
Jaroslav Škarvada
45be167807
Makefile: fixed support for pre-releases
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-11 19:04:11 +01:00
Ondřej Lysoněk
afa6611f39 Makefile: Run pylint on the tests too
The tests are now in a good shape, so we can now run pylint on them
without getting a huge list of errors. In fact, we should lint them
to decrease the likelihood they'll go stale again.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-02-19 16:26:27 +01:00
Ondřej Lysoněk
a5c39d83f3 Makefile: Drop a workaround for a pylint bug
The bug is no longer reproducible with
python3-pylint-2.1.1-2.fc29.noarch.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-02-19 16:26:27 +01:00
Tomas Korbar
adcb160b97 Remove obsolete polkit policy for tuned-gui
Tuned gui does not need root privileges for it to work now
For more information see #138

Signed-off-by: Tomas Korbar <tkorbar@redhat.com>
2019-02-04 11:04:52 +01:00
Jaroslav Škarvada
41b38ab6e7
Added workaround for zipl (s390x) not supporting multiple initrds
This workaround can be removed once implemented upstream, ticket:
https://github.com/ibm-s390-tools/s390-tools/issues/49

RHEL bugzilla:
rhbz#1576435

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-12-10 17:49:54 +01:00
Jaroslav Škarvada
8aa9fcfc5f
Added support for Boot loader specification (BLS)
Resolves: rhbz#1576435

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-12-09 20:16:50 +01:00
Ondřej Lysoněk
469a862501 Support chassis type matching in recommend.conf
Resolves: rhbz#1565598

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-24 10:58:25 +02:00
Jaroslav Škarvada
d9fc98357c
Makefile: added support for python interpreter with arbitrary path
Also used python macros in the spec file.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-07-09 14:48:56 +02:00
Jaroslav Škarvada
d25e8b807b
makefile: dropped KVM unit tests, now provided by standalone package
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-03-28 16:14:12 +02:00
Ondřej Lysoněk
479692432a Makefile: refactor
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-02-02 18:53:45 +01:00
Ondřej Lysoněk
1823a7de64 Makefile: install to python3 destination by default 2018-01-14 15:13:48 +01:00
Ondřej Lysoněk
b716ebfe55 Makefile: support python3 installation
You can now specify the python runtime using the PYTHON variable.
E.g. you can use
  make PYTHON=python3 install
to install tuned modules to the python3 directory and rewrite
shebangs on executable Python files to use Python3.
2018-01-14 15:13:45 +01:00
Jaroslav Škarvada
60bb8e293f
Makefile: added support for kvm-unit-tests downloading
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-12-20 15:36:39 +01:00
Jaroslav Škarvada
9587b5550f
Makefile: fixed user recommend.d location
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-10-29 21:22:54 +01:00
Jaroslav Škarvada
4c6a3088df
Makefile: added $SYSCONFDIR and $SYSCONFDIR/recommend.d
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-10-29 21:20:29 +01:00
Jaroslav Škarvada
513a6ca25f Merge pull request #71 from olysonek/auto_profile
Store profile selection mode in a separate file
2017-09-19 17:23:13 +02:00
Ondřej Lysoněk
f3d170f7bd Add profile_mode file to Makefile and spec
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2017-09-19 17:07:21 +02:00
Jaroslav Škarvada
182d3f4abd Merge pull request #70 from olysonek/replace_ethtool_in_scripts
Replace ethtool invocation in scripts by built-in functionality
2017-09-19 16:50:54 +02:00
Ondřej Lysoněk
b970238a3d profiles: Use net plugin to disable LRO in sap-hana-vmware
Use net plugin to disable large receive offload in sap-hana-vmware profile.
This also fixes rollback of the setting - previously, after unapplying
the profile, LRO would always be set to 'on', irrespectively of the
original setting.

The network interfaces which should have LRO disabled must be listed
in /etc/tuned/sap-hana-vmware-variables.conf, e.g. like this:
sap_hana_vmware_nic=eth0

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2017-09-19 16:38:15 +02:00
Ondřej Lysoněk
37ebbc322b Makefile: Make use of SCRATCH_BUILD_TARGET, change it to rhel-7.5-candidate
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2017-09-12 14:22:40 +02:00
Jaroslav Škarvada
79e519784b
recommend: rename our default recommend rule file to 50-tuned.conf
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-08-09 16:56:10 +02:00