1
0
Fork 0
Commit graph

92 commits

Author SHA1 Message Date
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
Ondřej Lysoněk
fde8e806a0 Implement recommend.d functionality
Configuration files for the recommend functionality can now be
added to the /etc/tuned/recommend.d and /usr/lib/tuned/recommend.d
directories. The format is the same as in /etc/tuned/recommend.conf.
The file /etc/tuned/recommend.conf takes precedence over the files
in the recommend.d directories. The files in the /etc/tuned/recommend.d
directory are merged with those in /usr/lib/tuned/recommend.d
(in case of name conflict the file from /etc/tuned/recommend.d is used)
and are evaluated in alphabetical order. The first file containing
a matching entry is used.

The /etc/tuned/recommend.d directory is meant mainly for use by
administrators. Third-party packages should install recommend
configuration files in /usr/lib/tuned/recommend.d.

Also, the file /usr/lib/tuned/recommend.conf was moved to
/usr/lib/tuned/recommend.d/50-tuned-recommend.conf.

Resolves: rhbz#1459146

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2017-08-09 14:53:55 +02:00
Jaroslav Škarvada
9fae7ebecc
Makefile: switched to gz from bz2 due to google releases
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-05-29 11:33:20 +02:00
gustavo panizzo
c139e6e01e fix lintian warnings on desktop file 2017-05-12 14:17:02 +02:00
Evgeni Golov
cd17eaec8c try to get unitdir and tmpdir from pkg-config
pkg-config is the most reliable and cross-distro way to get
information about the systemd folders on a system.
only rely on RPM macros when pkg-config is not installed or
systemd.pc is not available.
2017-04-18 10:26:48 +02:00
Jaroslav Škarvada
00746dc674 Makefile: fixed nightly target to delete old files from the nightly repo
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-03-02 15:07:02 +01:00
Ondřej Lysoněk
233cf61a34 Print path to affected files on 'make lint'
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2017-02-16 14:41:04 +01:00
Ondřej Lysoněk
0f22a5e12c Simplify the 'lint' target in Makefile
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2017-02-16 09:17:19 +01:00
Ondřej Lysoněk
4488b3a0e4 Add 'lint' target to Makefile
The target executes pylint on all *.py files, except for those
in the ./tests and ./experiments subdirectories.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2017-02-14 16:49:27 +01:00
Jaroslav Škarvada
7e3a4fd791 Makefile: added fallback if RPM macros for systemd are missing
Resolves: https://bugs.gentoo.org/show_bug.cgi?id=563396

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2016-11-03 14:46:35 +01:00
Jaroslav Škarvada
db6947da2f profiles: added new profile cpu-partitioning
The profile is delivered in the new tuned-profiles-cpu-partitioning subpackage.
Also moved defirqaffinity.py to the base package to allow other profiles
to use it.

Resolves: rhbz#1359956

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2016-10-07 11:56:57 +02:00
Jaroslav Škarvada
bfc6214888 plugins: added systemd plugin
This plugin allows setting CPUAffinity in /etc/systemd/system.conf.

Related: rhbz#1359956

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2016-10-06 16:49:42 +02:00
Jaroslav Škarvada
6793c2abff plugins: added modules plugin
This plugin can set parameters to kernel modules. It generates
/etc/modprobe.d/tuned.conf file.

Usage:

[modules]
MODULE=OPTION1=VALUE1 OPTION2=VALUE2...

E.g:

[modules]
netrom=nr_ndevs=2

This sets module 'netrom' to have 'nr_ndevs' option set to '2'. The module
can be also forced to load/reload by using special '+r' prefix, e.g.:

[modules]
netrom=+r nr_ndevs=2

Will also cause Tuned to try to remove 'netrom' module (if loaded) and
try to (re)insert it with the specified parameters. The '+r' can be followed
by an optional comma (','), i.e.:
'+r,' for better readability.

By using '+r' the module will be loaded even if not needed.

Resolves: rhbz#1249618

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2016-07-04 19:03:51 +02:00
Jaroslav Škarvada
68bb447a0f Implemented polkit authorization
Dropped dbus at_console policy and implemented polkit authorization.
By the default policy the query actions are allowed for all users, actions
which do modification to the system settings or Tuned state are by default
allowed only for active users that have console, others need admin
authorization.

Resolves: rhbz#1095142

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2016-06-10 11:57:33 +02:00
Jaroslav Škarvada
e86e1be083 polkit: consolidated polkit action IDs to match DBus names
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2016-06-08 17:36:00 +02:00