1
0
Fork 0
Commit graph

506 commits

Author SHA1 Message Date
Jaroslav Škarvada
cd506bdf57 tuned: improved error handling of switch_profile
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>
2014-09-24 18:25:09 +02:00
Jaroslav Škarvada
56ecbd362e tuned: Improved error messages
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>
2014-09-24 16:15:06 +02:00
Jaroslav Škarvada
7b4c1e330d spec: added missing hdparm dependency
Resolves: rhbz#1144858

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-09-23 12:22:13 +02:00
Jaroslav Škarvada
c07691cdfb man: structured profiles manual pages according to sub-packages
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>
2014-09-23 12:10:29 +02:00
Jaroslav Škarvada
a4b1a50389 profiles: included sap-hana and sap-hana-vmware profiles
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>
2014-09-19 17:11:44 +02:00
Jaroslav Škarvada
6c45d00656 moved profile autodetection from post install script to tuned daemon
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>
2014-09-19 13:32:59 +02:00
Jaroslav Škarvada
d01e045fbd profiles: sap profile renamed to sap-netweaver
This profile is performance optimized for running SAP NetWeaver
based applications on bare metal.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-09-18 17:31:12 +02:00
Jaroslav Škarvada
5ee8306676 man: made profile names non-wrappable
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-09-02 15:46:24 +02:00
Jaroslav Škarvada
53494c4593 man: added atomic-host and atomic-guest profiles description
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-09-02 15:43:45 +02:00
Jaroslav Škarvada
0aea276128 plugins: added atomic-host and atomic-guest profiles
Resolves: rhbz#1091977
Resolves: rhbz#1091979

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-08-27 14:20:28 +02:00
Jaroslav Škarvada
bd732feccb plugin_net: added nf_conntrack_hashsize parameter
It maps to /sys/module/nf_conntrack/parameters/hashsize.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-08-27 13:55:05 +02:00
Jaroslav Škarvada
9287258047 plugins: added selinux plugin
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>
2014-08-26 17:40:52 +02:00
Jaroslav Škarvada
4619163d86 plugin_script: fixed typo in comment
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-08-26 15:58:53 +02:00
Jaroslav Škarvada
555abc2153 spec: packaged sap profile into tuned-profiles-sap subpackage
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>
2014-08-26 15:03:10 +02:00
Hase, Jin
b2897d9c1c balanced: used conservative CPU governor
In my testing, balanced profile's efficiency is almost as same(*1) as
powersave profile on my server using Xeon-E5.

I think tuned should make difference between balanced profile and powersave
profile. IOW, balanced profile should show better performance and worse power
consumption than powersave profile.

One of root causes is that detailed settings of P-State and C-State are
almost same between balanced profile and powersave profile.

This patch proposes that making "balanced"'s CPU governer to be conservative.
This will make difference between balanced and powersave(*2).

[Measurement result]
 - Load testing tool
   JdbcRunner(Database Model)

 - Hardware
   12core(Xeon E5-2650L 1.80GHz)/8GB Memory/SSD 100GB/1Gbit Network
   (But I limit the number of core to "4" by BIOS because of adjusting
    CPU load)

 - Software
   kernel-3.10.0-123.el7.x86_64, tuned-2.3.0-11.el7.noarch

 - Throughput, latency and power consumption
   (power consumption is measured by ipmitool sensor)

                | Throughput |   Latency   | Power Consumption
     Profile    |   (tpm)    |   (msec)    | on Server (Watt)
 --------------------------------------------------------------
 (*1)powersave  |   8,495    |       28    |      111.2
 --------------------------------------------------------------
 (*1)balanced   |   8,340    |       29    |      111.6
 --------------------------------------------------------------
 (*2)This patch |   9,284    |       25    |      118.8
 --------------------------------------------------------------
 throughput-    |  10,464    |       25    |      128.0
 performance    |            |             |
 --------------------------------------------------------------
 latency-       |  10,911    |       23    |      133.2
 performance    |            |             |
 --------------------------------------------------------------

 - P-State and C-State(measured by turbostat)
             | CPU freq|               C-State
   Profile   |  (GHz)  | (%C0) | (%C1) | (%C3) | (%C6) | (%C7)
 --------------------------------------------------------------
 powersave   |  1.31   | 59.45 | 28.55 |  1.72 |    0  | 10.25
 --------------------------------------------------------------
 balanced    |  1.38   | 61.63 | 30.02 |  0.77 |    0  |  7.56
 --------------------------------------------------------------
 This patch  |  1.81   | 51.27 | 39.91 |  1.78 |    0  |  7.04
 --------------------------------------------------------------
 throughput- |  2.25   | 46.14 | 52.44 |  0.43 |    0  |  0.97
 performance |         |       |       |       |       |
 --------------------------------------------------------------
 latency-    |  2.30   | 48.36 | 51.64 |     0 |    0  |    0
 performance |         |       |       |       |       |
 --------------------------------------------------------------

 - CPU utilization(measured by sar)
   Profile   |  %user |  %sys  | %iowait |  %idle
 ---------------------------------------------------
 powersave   |  36.69 |  13.32 |  5.25   |  44.74
 ---------------------------------------------------
 balanced    |  38.94 |  13.88 |  4.07   |  43.12
 ---------------------------------------------------
 This patch  |  42.78 |  14.53 |  5.97   |  36.72
 ---------------------------------------------------
 throughput- |  33.51 |  12.29 |  7.14   |  47.06
 performance |        |        |         |
 ---------------------------------------------------
 latency-    |  34.58 |  11.71 |  7.89   |  45.82
 performance |        |        |         |
 ---------------------------------------------------

Signed-off-by: Jin Hase <hase.jin@jp.fujitsu.com>

1 file changed, 1 insertion(+), 1 deletion(-)
2014-07-22 12:08:28 +02:00
Jaroslav Škarvada
f600567dd0 tuned: handle root block devices
Resolves: rhbz#1033251

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-05-09 12:38:33 +02:00
Jaroslav Škarvada
c39fe688f7 tuned: fixed logging related to assignment modifiers
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-05-07 17:56: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
adffbb0ca1 balanced: used medium_power ALPM policy
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>
2014-04-28 14:29:06 +02:00
Jaroslav Škarvada
fb8536e12c Makefile: added compatibility for non RPM systems
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-04-25 13:46:52 +02:00
Per Øyvind Karlsen (proyvind)
393708d974 fix install locations of tmpfiles & bash-completion
Signed-off-by: Per Øyvind Karlsen (proyvind) <proyvind@moondrake.org>
2014-04-25 13:35:32 +02:00
Jaroslav Škarvada
284041dc14 systemd: added cpupower.service conflict
Resolves: rhbz#1073392

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-03-06 17:22:09 +01:00
Jaroslav Škarvada
4335059206 spec: added kernel-tools requirement
Resolves: rhbz#1073008

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-03-06 10:48:57 +01:00
Jaroslav Škarvada
ae421ec877 recommend: fixed config file
Resolves: rhbz#1069123

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-03-03 15:48:52 +01:00
Jaroslav Škarvada
0833850da8 man: fixed typo
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-03-03 15:48:16 +01:00
Jaroslav Škarvada
153afc6c9f network-throughput: added new profile
Resolves: rhbz#1052421

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-02-14 13:31:21 +01:00
Jaroslav Škarvada
a195fc06fe network-latency: added new profile
Resolves: rhbz#1052418

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-02-14 13:13:14 +01:00
Jaroslav Škarvada
c43574437d tuned: used throughput-performance profile on server by default
Resolves: rhbz#1063481

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-02-14 12:48:05 +01:00
Jaroslav Škarvada
640e100341 latency-performance: leaving THP on its default
Resolves: rhbz#1064510

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-02-14 12:41:59 +01: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
d233fd7c31 misc: bumped year in copyright to 2013
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-27 09:30:07 +01:00
Jaroslav Škarvada
a47b0e1be7 spindown-disk: removed useless find, probably typo
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-12 14:57:01 +01:00
Jaroslav Škarvada
1cbd8a9e2c tuned: preset the sleep_interval in the tuned-main.conf
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-11 11:55:24 +01:00
Jaroslav Škarvada
c31fdd5e03 tuned: timing improvements
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>
2013-11-08 17:06:48 +01:00
Jaroslav Škarvada
17a6609e2a daemon: fixed race in start/stop
Resolves: rhbz#1028119

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-07 23:51:59 +01:00
Jaroslav Škarvada
b31830d709 enterprise-storage: removed readahead
The readahaed is already included from the throughput-performance
profile.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-07 16:44:35 +01:00
Jaroslav Škarvada
c55e4385c3 powertop2tuned: fixed traceback if rewriting file instead of dir
Resolves: rhbz#963441

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-06 18:43:20 +01:00
Jaroslav Škarvada
7608f2dc2b daemon: do not log traceback if profile cannot be loaded
Related: rhbz#953128
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-06 18:04:02 +01:00
Jaroslav Škarvada
d3e708019b Makefile: use non versioned directory for docs
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-06 17:02:42 +01:00
Jaroslav Škarvada
52ba438c5e new release (2.3.0)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-06 13:11:11 +01:00
Jaroslav Škarvada
d3160b8a33 tuned: lowered CPU usage due to python bug
Resolves: rhbz#917587

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-06 12:07:43 +01:00
Jaroslav Škarvada
35a3eb2398 profiles: added sap profile
fixes #38

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-06 11:51:50 +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
1e910ae940 virtual-host: fixed kernel.sched_migration_cost_ns parameter
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-06 10:14:28 +01:00
Jaroslav Škarvada
5cf4e8e63d tuned-adm: implemented non DBus fallback control
fixes #32

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-06 09:21:01 +01:00
Jaroslav Škarvada
bdcdb3072f profiles: added desktop profile
Currently it only enables autogroup scheduling:

kernel.sched_autogroup_enabled = 1

Resolves: rhbz#996723

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-05 23:27:10 +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
5d306833bd dbus: fixed KeyboardInterrupt handling
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-11-05 16:55:36 +01:00