1
0
Fork 0
Commit graph

1307 commits

Author SHA1 Message Date
Jaroslav Škarvada
fd0ed00757
new release (2.12.0-rc.1)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-06-12 15:00:23 +02:00
Jaroslav Škarvada
9b1c045d30
realtime-virtual-host: add tsc-deadline=on to qemu cmdline
So that QEMU uses the in kernel irqchip.

Original patch provided by Luiz Capitulino <lcapitulino@redhat.com>.

Resolves: rhbz#1554458

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-06-10 19:11:53 +02:00
Jaroslav Škarvada
35a7b93284
Merge pull request #190 from olysonek/sap-fixes
Drop sap-hana-vmware profile, fix other SAP profiles
2019-06-10 17:51:29 +02:00
Jaroslav Škarvada
75728c041a
Merge pull request #187 from olysonek/master
Fix a bare 'except' statement
2019-06-10 17:40:05 +02:00
Jaroslav Škarvada
e363bc7fce
Merge pull request #185 from mrksu/remove-atomic-from-manual
Remove references to RHEL Atomic Host from the manual
2019-06-10 17:38:03 +02:00
Ondřej Lysoněk
664cf6dde9 sap-netweaver: Use RHEL-8 defaults for kernel.shmall and kernel.shmmax
The kernel.shmall and kernel.shmmax parameters were previously set using
a script that calculated their values based on the system's memory size.
However the script was broken for high values of memory size.

The default value of kernel.shmall and kernel.shmmax in RHEL-8 is
18446744073692774399, which is sufficiently high and it's recommended to
use it. So we could simply drop the tuning from the profile, however it
seems better to set the value explicitly so that the profile overrides
any changes that may have been applied to the parameters due to
misconfiguration.

Resolves: rhbz#1708418

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-06-06 10:52:32 +02:00
Ondřej Lysoněk
d673e006e2 sap-hana: Change value of kernel.sem to RHEL-8 default
The default value of kernel.sem in RHEL-8 is '32000 1024000000 500
32000', which is much higher than what we currently have in the profile.
It is unnecessary to lower the settings, the RHEL-8 defaults are safe to
use. So we could simply drop the tuning from the profile, however it
seems better to set the value explicitly so that the profile overrides
any changes that may have been applied to the parameter due to
misconfiguration.

Resolves: rhbz#1701394

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-06-06 10:52:27 +02:00
Ondřej Lysoněk
2dfa7c4a9b sap-netweaver: Change value of kernel.sem to RHEL-8 default
The default value of kernel.sem in RHEL-8 is '32000 1024000000 500
32000', which is much higher than what we currently have in the profile.
It is unnecessary to lower the settings, the RHEL-8 defaults are safe to
use. So we could simply drop the tuning from the profile, however it
seems better to set the value explicitly so that the profile overrides
any changes that may have been applied to the parameter due to
misconfiguration.

Resolves: rhbz#1701394

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-06-06 10:52:24 +02: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
dffa85b42c
Merge pull request #189 from olysonek/fix-sysctl
sysctl: Ignore non-existent settings from system sysctl configs
2019-05-31 11:33:42 +02:00
Ondřej Lysoněk
fb6d2cc90e sysctl: Ignore non-existent settings from system sysctl configs
Ignore non-existent sysctl settings from the system configuration files
(/etc/sysctl.conf, etc.). Logging errors about these settings hurts user
experience, if the non-existent settings are in fact real settings that
are just temporarily unavailable. For example, the following settings
(from /usr/lib/sysctl.d/00-system.conf on RHEL-7) are not available until
the br_netfilter module is loaded. However once that module is loaded,
it is often desirable to set these, so having them in a RHEL-provided
configuration file makes sense.

net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0

This change restores the old behaviour before the recent rewrite of the
sysctl plugin away from using the 'sysctl' program (running
'sysctl --system' ignores missing settings).

Resolves: rhbz#1714595

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-05-29 17:27:02 +02:00
Ondřej Lysoněk
ba4cb72a49 Fix a bare 'except' statement
A bare 'except' statement can catch (and hide) all sorts of errors,
including NameError. Fix it to catch only the errors we really expect.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-05-29 12:48:51 +02:00
Marek Suchánek
74d1b4a7e7 Removed references to RHEL Atomic Host; RHBZ#1680387 2019-05-20 18:17:07 +02:00
Jaroslav Škarvada
1961315844
Merge pull request #184 from kbotc/kbotc-patch-1
Fix verifying sysctl options with tabs
2019-05-17 11:28:50 +02:00
kbotc
b6eb3416ea
Fix verifying sysctl options with tabs
sysctl options such as net.ipv4.tcp_wmem and net.ipv4.tcp_rmem include tabs. When you use tuned-adm verify, the changes report back as broken as the whitespaces are different because one side has been sanitized but the other side has not. This pull request will fix that.
2019-05-14 16:45:22 -06:00
Jaroslav Škarvada
1430acff81
Merge pull request #183 from olysonek/master
functions: Return an ordered cpu list in cpulist_online
2019-05-09 10:31:12 +02:00
Ondřej Lysoněk
e0bf0252a4 functions: Return an ordered cpu list in cpulist_online
cpulist_unpack, which is used in the function, returns an ordered cpu
list, however by converting it to a set, the order is lost. Rewrite the
operation in a way that preserves the order.

Resolves: rhbz#1706171

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-05-09 10:23:07 +02:00
Jaroslav Škarvada
111f17cd29
Merge pull request #182 from mrksu/doc-realtime
[Docs] Clarify the information on real-time profiles on RHEL
2019-05-06 16:57:53 +02:00
Jaroslav Škarvada
37dc5dd0e0
Merge pull request #181 from openSUSE/correct_dbus_rights
Lower permissions for plugin info dbus interfaces
2019-05-06 16:55:59 +02:00
Jaroslav Škarvada
dea70604c5
Merge pull request #178 from mrksu/master
[Docs] Improved the description of the script plug-in
2019-05-06 16:54:46 +02:00
Marek Suchánek
348eb9843f Clarified real-time profiles on RHEL; RHBZ#1671105 2019-05-03 20:10:46 +02:00
Marek Suchánek
bde7cb1a86 Improved the description of the script plug-in; RHBZ#1671107 2019-05-03 19:51:16 +02:00
Jaroslav Škarvada
b1f120aa85
Merge pull request #173 from TomasKorbar/tuned-gui-manpage
Add Tuned-gui manpage
2019-05-03 14:32:47 +02:00
Thomas Renninger
cfbeb8e67e Lower permissions for plugin info dbus interfaces
As these interfaces allow loading and thus executing code from plugins
the default permission policy is lowered from:
yes:yes:yes
to
auth_admin:auth_admin:yes
So only users logged into the X server are allowed to use this interface
without extra root/admin authentication.

This was found by security review by Matthias Gerstner
<matthias.gerstner@suse.com>

Also see:
https://github.com/redhat-performance/tuned/issues/180
2019-05-03 13:13:38 +02:00
Jaroslav Škarvada
2f05df2675
Merge pull request #179 from mrksu/fix-terminology
[Docs] Tweak the terminology around Tuned and its components
2019-05-01 13:31:41 +02:00
Marek Suchánek
4e29b68669 Tweak the terminology around Tuned and its components; RHBZ#1680386 2019-04-30 19:56:34 +02:00
Jaroslav Škarvada
954ea7ea5d
Merge pull request #177 from olysonek/master
virtual-host: Fix setting force_latency
2019-04-25 11:20:40 +02:00
Ondřej Lysoněk
96363628f7 virtual-host: Fix setting force_latency
The force_latency parameter belongs to the cpu plugin, so that's the
section it needs to be in.

Fixes #132
Resolves: rhbz#1569375

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-04-25 10:47:18 +02:00
Jaroslav Škarvada
b4d9dfc31c
realtime-virtual-host: fixed tscdeadline_latency.flat path
Also fixed some mismatched whitespaces.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-04-05 10:49:17 +02:00
Tomas Korbar
2448070756 Add Tuned-gui manpage
New manpage of Tuned-gui briefly describes all its functions.

Signed-off-by: Tomas Korbar <tkorbar@redhat.com>
2019-03-25 15:20:33 +01:00
Jaroslav Škarvada
7a2e3c050a
powertop2tuned: added support for wakeup tuning (in powertop-2.10)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-21 23:43:21 +01:00
Jaroslav Škarvada
e8393c5c0a
spec: improved python macros handling
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-21 23:40:03 +01:00
Jaroslav Škarvada
7a28246835
new release (2.11.0)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-21 23:10:46 +01:00
Jaroslav Škarvada
02c2d5752f
Merge pull request #172 from olysonek/geteuid
Check for root privileges by inspecting the effective UID
2019-03-21 22:48:04 +01:00
Jaroslav Škarvada
4f2f46da85
Merge pull request #171 from TomasKorbar/improve_tdadm_recommend
Improve logging of tuned-adm recommend
2019-03-21 22:47:06 +01:00
Tomas Korbar
4632629727 Add log of warning to profile recommenders parser of virt condition
When profile recommender is executed without root privileges than
he can not execute virt-what to determine virt conditions in
recommend.d files. This caused several error messages which could
be confusing for user.

Add log of warning about this to profile recommender so user knows
exactly what is happening and why profiles with virt
recommendation condition are ommited from recommendation process
when user has not root privileges.

Behaviour of recommend process has not been changed.

Signed-off-by: Tomas Korbar <tkorbar@redhat.com>
2019-03-21 16:27:36 +01:00
Ondřej Lysoněk
4fdb48ef34 Check for root privileges by inspecting the effective UID
The effective UID is what matters when it comes to the ability to
perform privileged actions, not the real UID.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-03-21 11:10:28 +01:00
Jaroslav Škarvada
9d83b77572
recommend: use dmidecode only on x86(64)
Resolves: rhbz#1688371

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-14 15:44:47 +01:00
Tomas Korbar
cccbf6f11e Fix typo in profile_recommender
Execute method from Commands class takes array of strings as
arguments to execute not a name of executable.
This caused bad format of logged error message in case of failure
of execute method.

Signed-off-by: Tomas Korbar <tkorbar@redhat.com>
2019-03-13 14:45:15 +01: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
08b932c8b0
Merge pull request #170 from olysonek/fix_plugin_net
For stable: Fix regressions in plugin_net
2019-03-12 21:25:01 +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
7efac3bcb3
doc: renamed tuned-documentation to guide
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-12 19:02:22 +01:00
Ondřej Lysoněk
4d12eeff81 net: Fix verification
In commit 0d28f9e63e, verification has been accidentally
dropped from the _custom_parameters method. Fix it.

Fixes #135

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-03-12 14:19:05 +01:00
Ondřej Lysoněk
e88c72d5b6 Refactor verification result logging into a separate method
The method is useful for plugins that do their own verification.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-03-12 14:11:42 +01:00
Ondřej Lysoněk
59c1282c0e net: Fix rollback
Starting with commit 0d28f9e63e, values that have been applied
were stored instead of the original values, which broke rollback. Fix it
by storing the actual original values.

Fixes #135

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-03-12 13:43:36 +01:00
Ondřej Lysoněk
2317e28654 net: Rename local variables
Rename local variables to make the code more readable.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-03-12 12:51:34 +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
Jaroslav Škarvada
1d80c8ae5f
Merge pull request #169 from TomasKorbar/rhbz1687397
Fix tuned-adm recommend off-daemon mode
2019-03-11 17:39:34 +01:00
Tomas Korbar
e7eed22cfb Fix tuned-adm recommend off-daemon mode
When i moved recommend functionality to its own class i did not
notice that 'tuned-adm recommend' command uses it from commands
class when tuned daemon is not running

Added ProfileRecommender to imports and changed old calls

Resolves: rhbz#1687397

Signed-off-by: Tomas Korbar <tkorbar@redhat.com>
2019-03-11 17:12:00 +01:00