1
0
Fork 0
Commit graph

1214 commits

Author SHA1 Message Date
Ondřej Lysoněk
a5c39d83f3 Makefile: Drop a workaround for a pylint bug
The bug is no longer reproducible with
python3-pylint-2.1.1-2.fc29.noarch.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-02-19 16:26:27 +01:00
Jaroslav Škarvada
2441fe6384
Merge pull request #156 from TomasKorbar/tuned-gui-2.0
Remove obsolete policy and unnecessary import from tuned gui
2019-02-19 10:27:06 +01:00
Jaroslav Škarvada
b35f4a97cd
Merge pull request #157 from olysonek/master
Increase max log file size in the default config file
2019-02-19 10:25:36 +01:00
Ondřej Lysoněk
9574a63e50 Increase max log file size in the default config file
100KB is not a lot, it can fill up quickly.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-02-08 14:34:30 +01:00
Tomas Korbar
0c7ec6e358 Remove unnecessary import from tuned-gui.py
Signed-off-by: Tomas Korbar <tkorbar@redhat.com>
2019-02-04 11:04:52 +01:00
Tomas Korbar
adcb160b97 Remove obsolete polkit policy for tuned-gui
Tuned gui does not need root privileges for it to work now
For more information see #138

Signed-off-by: Tomas Korbar <tkorbar@redhat.com>
2019-02-04 11:04:52 +01:00
Jaroslav Škarvada
506cf930fa
Merge pull request #154 from olysonek/dco
Add contribution guidelines
2019-01-31 18:42:55 +01:00
Jaroslav Škarvada
218c68bebb
Merge pull request #152 from redhatrises/tuned_gui_typo
Fix typo in tuned-gui
2019-01-31 18:39:53 +01:00
Jaroslav Škarvada
2d7b5a1d73
Merge pull request #151 from watologo1/intel_amd_ppc_differing
Differ archs and x86 CPU vendors in plugin_cpu
2019-01-31 18:38:58 +01:00
Jaroslav Škarvada
7a05a07b0c
Merge pull request #147 from mrksu/documentation
Documentation
2019-01-31 18:20:37 +01:00
Jaroslav Škarvada
17c44cca27
Merge pull request #143 from TomasKorbar/rhbz1631744
Reload profile configuration on SIGHUP
2019-01-31 16:43:47 +01:00
Jaroslav Škarvada
778576af60
Merge pull request #155 from redhat-performance/revert-140-rhbz1592743
Revert "Make copy of instance's devices before executing changes to system"
2019-01-31 16:35:29 +01:00
Jaroslav Škarvada
55078cbd0c
Revert "Make copy of instance's devices before executing changes to system" 2019-01-31 16:32:16 +01:00
Jaroslav Škarvada
f79c6292b6
Merge pull request #142 from TomasKorbar/rhbz1613379
Fix unit configuration reading
2019-01-31 16:15:21 +01:00
Jaroslav Škarvada
f5493aea57
Merge pull request #141 from TomasKorbar/rhbz1595156
fix disk plugin/plugout problem
2019-01-31 16:14:06 +01:00
Jaroslav Škarvada
265152ab00
Merge pull request #140 from TomasKorbar/rhbz1592743
Make copy of instance's devices before executing changes to system
2019-01-31 16:11:42 +01:00
Jaroslav Škarvada
8f82779a7f
Merge pull request #138 from TomasKorbar/tuned-gui-2.0
Add support for config options hints and fix running under normal user
2019-01-31 16:08:01 +01:00
Ondřej Lysoněk
86abd82ced Add contribution guidelines
This is an attempt to formalize the process of contributing to Tuned
and formulate what is expected from contributors. From now on, all
contributors are expected to follow the guidelines.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-01-31 11:19:16 +01:00
Tomas Korbar
941fc6e2ea Fix check in add and remove device methods of Monitor class
Contribution to f563c7d
2019-01-29 12:36:49 +01:00
Tomas Korbar
a2219675f2 fix disk plugin/plugout problem
when udev sends remove event it does not send any device
attributes with it so _device_is_supported check must be omitted

Resolves: rhbz#1595156
2019-01-28 16:05:03 +01:00
Gabe
d24cb4e58c Fix typo in tuned-gui
- Fix typos for tuned daemon not running prompt
2019-01-28 04:36:14 -07:00
Thomas Renninger
29022a0edf Differ archs and x86 CPU vendors in plugin_cpu
This avoids wrong warning about a missing intel tool (x86_energy_perf_bias)

Remember arch and x86 CPU vendor to allow arch/vendor specific CPU tunings
in the future
2019-01-25 12:19:26 +01:00
Ondřej Lysoněk
2cc3d74798 plugin_disk: Fix checking the 'removable' attribute on python3
The 'removable' attribute is a bytestring, so it will never be equal to
"0" in python3. Check equality with b"0" instead.

The patch was originally written by Tomáš Korbař.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-01-24 16:33:02 +01:00
Jaroslav Škarvada
668bf7448d
Minor readme update
Mentioned web page.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-01-19 18:54:27 +01:00
Jaroslav Škarvada
98c3707851
log: initialize maxBytes, backupCount in RotatingFileHandler explicitly with int
Fixes: #148

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-01-12 10:07:07 +01:00
Tomas Korbar
2b543b0a5a Fix unit configuration reading
Append "1" to Unit configuration check for
enabled and replace values

Resolves: rhbz#1613379
2019-01-09 15:46:06 +01:00
Jaroslav Škarvada
26db89de18
mssql: updated tuning
Added vm plugin option 'transparent_hugepage.defrag'.

Resolves: rhbz#1660178

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-01-08 15:07:03 +01:00
Marek Suchánek
b63d10e24c Removed unnecessary internal comments 2019-01-07 18:38:09 +01:00
Tomas Korbar
078dea195e Make copy of instance's devices before executing changes to system
these changes will protect tuned's execution thread from errors
caused by changes of instance's devices list while execution
thread iterates over them

fix problem with bad recognition of disk caused
by use of python3

Resolves: rhbz#1592743
2019-01-07 16:41:49 +01:00
Tomas Korbar
3fe792ed17 Reload profile configuration on SIGHUP
tuned will now on reload of daemon read again configuration
files

Resolves: rhbz#1631744
2019-01-07 15:50:12 +01:00
Marek Suchánek
de099c1556 Added a readme for documentation 2019-01-04 18:20:14 +01:00
Marek Suchánek
1a2e13e44f Added user-facing documentation: initial commit 2019-01-04 18:08:28 +01:00
Jaroslav Škarvada
9d8234d559
Merge pull request #144 from olysonek/master
scheduler: Keep polling file objects alive long enough
2018-12-14 17:47:25 +01:00
Ondřej Lysoněk
a54b35c3b0 scheduler: Keep polling file objects alive long enough
Make sure the file objects returned by evlist.get_pollfd()
don't go out of scope and get destroyed too soon. This is
a workaround for python3-perf rhbz#1659445.

Resolves: rhbz#1659140

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-12-14 13:16:02 +01:00
Jaroslav Škarvada
ead1890889
Merge pull request #139 from mgerstner/log_random_source
logs: actually use SystemRandom source for generating a random string
2018-12-11 21:16:18 +01:00
Matthias Gerstner
444aceefa5
logs: actually use SystemRandom source for generating a random string
The returned string was only pseudo random. It is only used for the
log_capture_start() mechanism at the moment. Therefore an attacker might
be able to guess the tokens of other users. Since this data it publicly
available anyways it should not be a big issue, however.
2018-12-11 11:06:01 +01:00
Jaroslav Škarvada
41b38ab6e7
Added workaround for zipl (s390x) not supporting multiple initrds
This workaround can be removed once implemented upstream, ticket:
https://github.com/ibm-s390-tools/s390-tools/issues/49

RHEL bugzilla:
rhbz#1576435

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-12-10 17:49:54 +01:00
Jaroslav Škarvada
8aa9fcfc5f
Added support for Boot loader specification (BLS)
Resolves: rhbz#1576435

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-12-09 20:16:50 +01:00
Tomas Korbar
e320c70d3d Move plugin and hint listing functionality into dbus 2018-12-05 12:18:48 +01:00
Jaroslav Škarvada
c4a0aef63d
functions: reworked setup_kvm_mod_low_latency to count with kernel changes
It updates the KVM modprobe file if its content differs from what's
supported on the current system. It may look a bit over-engineered, but
it's done this way to lower the possibility of race condition.

Resolves: rhbz#1649408

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-11-22 17:38:12 +01:00
Tomas Korbar
8cb5f9948e Fix creation of copied system profile 2018-11-22 16:34:40 +01:00
Tomas Korbar
bc9ae26787 Add support for config options hints 2018-11-22 16:34:40 +01:00
Tomas Korbar
ba73bb975b Move profile recommendation functionality to its own class
- also do not import dmidecode if user is not root
2018-11-22 16:34:40 +01:00
Tomas Korbar
a856f76b26 Refactor of tuned gui 2018-11-22 16:34:40 +01:00
Jaroslav Škarvada
bc9a2da3e8
Merge pull request #137 from TomasKorbar/rhbz1533908
Add range feature for cpu exclusion
2018-11-21 21:05:19 +01:00
Tomas Korbar
3722b15192 Add range feature for cpu exclusion
- It is now possible to exclude cpu range by !1-3
- Also edited test for cpulist_unpack method to test this new
feature
- Resolves rhbz#1533908
2018-11-21 15:23:11 +01:00
Jaroslav Škarvada
560f5e7e56
Merge pull request #136 from olysonek/bz1622239
Disable KSM only once, re-enable it only on full rollback
2018-11-21 12:01:47 +01:00
Ondřej Lysoněk
1b80d4eac2 Disable KSM only once, re-enable it only on full rollback
Disabling the ksm and ksmtuned services during boot seems to cause
problems, so do it only once when the profile is first applied and
reenable the services only when full rollback is required.

Resolves: rhbz#1622239

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-21 11:27:44 +01:00
Jaroslav Škarvada
30531bed7e
Merge pull request #135 from TomasKorbar/rhbz1533852
Fix Rhbz1533852
2018-11-21 11:25:11 +01:00
Jaroslav Škarvada
8910d0daba
Merge pull request #116 from TomasKorbar/changes
Add tests and fix some errors
2018-11-21 11:12:47 +01:00