1
0
Fork 0
Commit graph

22 commits

Author SHA1 Message Date
Jaroslav Škarvada
a936fb8844
scheduler: abstract sched_ and numa_ knobs
New kernels (5.13 and newer) moved some sched_ and numa_ knobs from
the sysctl to the debugfs, thus add and abstract these knobs under the
scheduler plugin. With help of this abstraction it will write
the tuning to the correct place according to the kernel used.

Example:
[scheduler]
sched_migration_cost_ns = 500000

Will work on the old kernel the same way as:
[sysctl]
kernel.sched_migration_cost_ns = 500000

I.e. it will write '500000' to the:
/proc/sys/kernel/sched_migration_cost_ns

And on the new kernel it will write '500000' to the:
/sys/kernel/debug/sched/migration_cost_ns

Also updated TuneD profiles.

Resolves: rhbz#1952687

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2021-06-30 19:45:27 +02:00
Jaroslav Škarvada
f511ad5d48
throughput-performance: fix performance regression on AMD
It turned out that disablement of the numa_balancing could result in
upto 20% performance drop on some loads.

Related: rhbz#1746957

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-06-30 15:39:18 +02:00
Jaroslav Škarvada
f87263ae20
throughput-performance: added arch specific tuning for AMD
Resolves: rhbz#1746957

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-06-04 17:17:30 +02:00
Jaroslav Škarvada
5041abf70a throughput-performance: added arch specific tuning for Marvell ThunderX
Resolves: rhbz#1746961

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-06-04 17:15:56 +02:00
John Pittman
8cccd5a0eb tuned: Add readahead comment to throughput-performance tuned.conf
A common source of confusion within tuned is the lack of suffix
on the readahead specification in the throughput-performance
tuned.conf. This confusion is resolved, in general, by comparing
the value, for example, to blockdev or lvdisplay output. Avoid
future end-user confusion by adding a comment to the
throughput-performance tuned.conf file, explaining that the default
is in KiB, and noting the allowance of a sector suffix as well.

Signed-off-by: John Pittman <jpittman@redhat.com>
2018-03-07 15:53:39 -05:00
Jaroslav Škarvada
b2cc6189f8
profiles: consolidated summaries
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-04-03 22:52:18 +02:00
Jaroslav Škarvada
c24e2ea0ca Added support for 'summary' and 'description' of profiles
Added new tuned-adm functionality 'profile_info'. It has optional parameter
'profile_name'. If called without parameter, active profile is used.
It outputs name of the profile it is querying, profile summary, and profile
description. If there is no profile summary or description available it
outputs empty string(s).

Extended tuned-adm 'list' functionality. It now displays profile summary
in the list (if available).

Added summary to profiles.

Extended D-Bus API to support the new feature and for better Cockpit support:
 - Added 'profile_info' method. It gets profile_name argument and it queries
   the requested profile for information. If profile_name is empty string it
   queries the active/selected profile. It returns tuple of the following
   format (status, profile_name, summary, description), where status is
   boolean. If it is False, the query mechanism failed and the other fields
   don't contain valid data
 - Added 'profiles2' method. It's extension of 'profiles' method. It returns
   list of tuples. Tuples have following format:
   (profile_name, profile_summary)

Related: rhbz#1228356
Fixes: #46

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2016-01-05 11:28:25 +01:00
Jaroslav Škarvada
e2f86d412f plugin_vm: do not set transparent_hugepages if overridden in kernel boot cmdline
Also removed transparent_hugepages from throughput-performance profile.
Added support for 'madvise' setting of transparent_hugepages.

Resolves: rhbz#1189868

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2015-06-26 13:48:01 +02:00
Jaroslav Škarvada
1d1c3a389c tuned: Added support for >, < assignment modifiers in tuned.conf
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>
2014-05-07 17:02:59 +02:00
Jaroslav Škarvada
d5aea87c0b throughput-performance: altered dirty ratios for better performance
Resolves: rhbz#1043533

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-01-07 15:38:26 +01:00
Jaroslav Škarvada
ef339e1b17 profiles: various updates according to feedback from performance team
Related: rhbz#922068

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-06 10:39:01 +01:00
Jaroslav Škarvada
93803c074e profiles: switched from multiplies to hardcoded values
Related: rhbz#922068

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-05 23:20:12 +01:00
Jaroslav Škarvada
f26e5f58f3 profiles: not disabling barriers
Related: rhbz#922068

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-05 23:16:16 +01:00
Jaroslav Škarvada
94e383a5ed plugin_cpu: added support for intel_pstate
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>
2013-11-05 22:55:38 +01:00
Jaroslav Škarvada
59e259a3ce plugin_cpu: added support for x86_energy_perf_policy
This feature is controlled by the energy_perf_bias cpu plugin
option.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-10-23 10:44:24 +02:00
Jaroslav Škarvada
f070213c64 utils: fixed packaging of pmqos-static
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-10-16 14:34:00 +02:00
Jaroslav Škarvada
7eb0ad5cdc throughput-performance: added readahead_multiply=4
Also removed this settings from the dependant profiles
where it is no more needed and updated the manual page.

Resolves: rhbz#987570

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-10-16 11:20:59 +02:00
Jaroslav Škarvada
6c36daaebf profiles: converted remount with nobarriers from functions to tuned.conf 2012-11-30 17:43:07 +01:00
Jaroslav Škarvada
04e28bc088 profiles: converted some more options from scripts to tuned.conf 2012-11-30 15:55:26 +01:00
Jaroslav Škarvada
701da90a02 functions removal: ported some profiles (not all) 2012-10-10 22:36:49 +02:00
Jaroslav Škarvada
6b349ed91f profiles: called action handler from scripts 2012-03-28 16:54:18 +02:00
Jaroslav Škarvada
f0e955e967 profiles: added profiles converted from tuned 1.0
profiles: added powersave profile
tuned: reduced number of installed profiles, the rest are in compat subpackage
2012-03-28 15:42:56 +02:00