1
0
Fork 0
Commit graph

1297 commits

Author SHA1 Message Date
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
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
Jaroslav Škarvada
f521439b5c
new release (2.11.0-rc.1)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-10 21:00:05 +01:00
Jaroslav Škarvada
f3228390f9
spec: do not require python/python3 dmidecode
If "recommends" is not supported do not use "requires" for
python/python3 dmidecode, because dmidecode is not available on
all architectures.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-10 20:54:46 +01:00
Jaroslav Škarvada
02e8f26389
man: added simple entry for hpc-compute profile
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-10 15:32:14 +01:00
Jaroslav Škarvada
6e6c7e3e6b
spec: dropped com.redhat.tuned.gui.policy
It's leftover. The policy was dropped because the GUI no longer requires
root.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-10 11:28:18 +01:00
Jaroslav Škarvada
5da98a7598
spec: added conditionals for RHEL-7
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-10 11:26:55 +01:00
Jaroslav Škarvada
7aee4a888a
Merge pull request #168 from TomasKorbar/pr138_fix
Fix issues from pullrequest 138
2019-03-08 18:36:37 +01:00
Tomas Korbar
2d04276e54 Update tuned-adm manpage
Added documentation for new options of tuned-adm list command

Signed-off-by: Tomas Korbar <tkorbar@redhat.com>
2019-03-08 15:24:17 +01:00
Tomas Korbar
d0f5a4c5c6 Stop adding recommend.d to list of profiles in tuned-gui
This happend because of insufficient testing of folders in tuned
profile directories
GuiProfileLoader now makes sure folder contains profile by
checking if folder contains tuned.conf file

Signed-off-by: Tomas Korbar <tkorbar@redhat.com>
2019-03-08 14:23:55 +01:00
Tomas Korbar
cac75962a5 Remove testing config option hints from audio plugin
I tested hints for plugin options with these hints and
apparently forgot about them

Signed-off-by: Tomas Korbar <tkorbar@redhat.com>
2019-03-08 14:18:11 +01:00
Tomas Korbar
c0a2e1964a Fix problem with tuned-adm list command on python2
Unfortunately non-required subcommands are not supported by argparse
module on python2, so selection between plugins and profiles must be
done by new positional non-required arguments "profiles" and
"plugins"

Examples of usage:
$ tuned-adm list -- will list tuned profiles like before
$ tuned-adm list profiles -- new command which has the same function
as tuned-adm list
$ tuned-adm list plugins -- will list tuned accessible plugins
$ tuned-adm list plugins [-v|--verbose] -- will list tuned accessible
plugins + their configuration options and hints how to use them

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