Now the D-Bus method "switch_profile" returns record
(bool, string), where in case of error, the string
describes the error. The string is also displayed
by tuned-adm, so the user has better overview what's
going there.
Related: rhbz#1068699
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Made tuned error messages less verbose, but more descriptive if running without
debug option. Also made class from the tuned.utils.commands helper functions.
Its logging can be enabled / disabled.
Resolves: rhbz#1068699
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
In this way only the installed profiles are described in the installed
manual pages. I.e. base profiles are now described in the tuned-profiles.7
manual page and profiles for the Project Atomic are now described
in the tuned-profiles-atomic.7 manual page. Simalarly for the SAP and
compat profiles.
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
These profiles are performance optimized for SAP HANA loads.
There are available in tuned-profiles-sap-hana subpackage.
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
The file system image containing tuned can be prepared offline, thus we
need to check the configuration on the first run. This is also more
clean solution than the previous post install hack.
Resolves: rhbz#1144067
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This profile is performance optimized for running SAP NetWeaver
based applications on bare metal.
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
So far only the avc_cache_threshold is supported, but more options
may be added in the future as needed.
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
It's optional and there may be more SAP profiles in the future,
hus it's better to have special subpackage for it.
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
These modifiers can specify when to assign new value considering
the old value.
E.g.:
readahead=>4096
means assign readahead 4096 only if the current value of readahaed
is lower than 4096 (i.e. the readahaed will be at least 4096).
Similarly for the < operator, it will assign the value only
if the current value is higher.
The modifiers are part of the value, not part of the equality
operator, thus the following is correct:
readahead= >4096
But the following isn't correct, but will probably also work
due to the nature how the value is parsed:
readahead=> 4096
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This policy sets the link to the second lowest power
state (PARTIAL) when there is no I/O on the disk. This
mode is designed to allow transitions in link power states
(for example during times of intermittent heavy I/O and
idle I/O) with as small impact on performance as possible.
This may save significant amount of power in idle periods
of the link, especially on laptops. E.g. on x240 the average
AC power consumption dropped from approx. 5 W to only 2.5 W.
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This improves responsiveness of Tuned in Python 2 interpreter with applied
patch for rhbz#917709. There is new global config parameter "sleep_interval"
which can control the polling. By default it is set to 1 second which is
still much better than 50 ms (on unpatched intepreter). Also the overhead
of the main thread was lowered if the dynamic tuning is disabled. The
dynamic tuning update interval is still controlled by the "update_interval"
global config parameter, but it has to be multiply of the "sleep_interval".
Resolves: rhbz#1028122
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Currently it only enables autogroup scheduling:
kernel.sched_autogroup_enabled = 1
Resolves: rhbz#996723
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
The following intel_pstate parameters are now supported:
min_perf_pct
max_perf_pct
no_turbo
Resolves: rhbz#996722
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>