1
0
Fork 0
Commit graph

1171 commits

Author SHA1 Message Date
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
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
Tomas Korbar
0d28f9e63e Add log message for unsupported parameters in plugin_net
- Resolves: rhbz#1533852
2018-11-20 17:02:44 +01:00
Tomas Korbar
f918d97cda Add missing feature parameters aliases to plugin_net 2018-11-20 17:02:44 +01:00
Jaroslav Škarvada
b9e1316999
Merge pull request #132 from oliel/BZ1588932_Tuned_Default_Profile
Make virtual-host identical to latency-performance
2018-11-15 14:57:45 +01:00
oliel
355a9d0dc2
Update tuned.conf 2018-11-15 14:18:20 +02:00
oliel
b2762e50cf
Update tuned.conf 2018-11-15 07:49:00 +02:00
Ori_Liel
8622925c5c Make virtual-host identical to latency-performance
The default tuned profile for an oVirt cluster is "virtual-host".
Recently, testing at customer sites and performance labs has shown
that "latency-performance" yields better results. This patch makes
virtual-host profile identical to latency-performance. This seems
better than uniting them since this way we maintain the possibility
to tweak them in different ways in the future according to further
findings.

Change-Id: I1a64fac22364b17de1279a3e1f37a6b7eb0fe61b
Bug-Url: https://bugzilla.redhat.com/1588932
Signed-off-by: Ori_Liel <oliel@redhat.com>
2018-10-15 15:58:42 +03:00
Tomas Korbar
38ebdbeda2 Fix deprecation warnings when python 3 is used
- we should use pyudev.Device class property 'properties'
for accesing device properties
- but we still need to keep try catch workaround
because of old pyudev package which is present in centos
2018-10-15 13:20:14 +02:00
Tomas Korbar
82efc4e090 Add config_file parameter to GlobalConfig class constructor
- this will allow us to use tempfile in tests
2018-10-15 13:20:14 +02:00
Tomas Korbar
2fad9568f6 Fix test_pickle_provider
- change of default storage file in CommandsTestCase affects this test
- file has been changed also in this test to ensure stable behaviour
2018-10-15 13:20:14 +02:00
Tomas Korbar
c4f83e2956 Fix pickle provider
- pickle.load and pickle.dump methods take as a argument
a bytes-like object not a str, python 2.7 is overlooking this but
python 3 is not
2018-10-15 13:20:14 +02:00
Tomas Korbar
d8e319caef Edit InventoryTestCase 2018-10-15 13:20:14 +02:00
Tomas Korbar
db3647ef65 Edit tests for DeviceMatcherUdev class 2018-10-15 13:20:14 +02:00
Tomas Korbar
2b990ac8ac Add Travis and Docker file
- Dockerfile supports builds for both fedora and centos
- This commit will allow us to run tests after each new commit
2018-10-15 13:20:14 +02:00
Tomas Korbar
3319d53a87 Add tests for GlobalConfig class 2018-10-15 13:20:14 +02:00
Tomas Korbar
b4f4e41adc Fix unit tests for Merger class 2018-10-15 13:20:14 +02:00
Tomas Korbar
ca040870b3 Use unittest2 module for unittesting 2018-10-15 13:20:14 +02:00
Tomas Korbar
a2ed07c1af Fix profiles.Loader class tests 2018-10-15 13:20:14 +02:00
Tomas Korbar
2a22bf03e1 Add Plugin class tests 2018-10-15 13:20:14 +02:00
Tomas Korbar
3049600c35 Add Commands class tests 2018-10-15 13:20:14 +02:00
Tomas Korbar
213eca72d8 Add exports Controller class tests 2018-10-15 13:20:14 +02:00
Tomas Korbar
5c61305860 Fix TypeError 2018-10-15 13:20:14 +02:00
Tomas Korbar
d1051a7e3e Add device matcher udev tests 2018-10-15 13:20:14 +02:00
Tomas Korbar
0245c53ee1 Add Inventory class tests 2018-10-15 13:20:14 +02:00
Tomas Korbar
97cba43900 Add argument to class Inventory constructor
Argument will stop setting udev monitor receive buffer size
during initalization of class. That allows to run tests without
root permissions.
2018-10-15 13:20:14 +02:00
Tomas Korbar
b09c8d0d37 Start using unittest2 in test_device_matcher 2018-10-15 13:20:14 +02:00
Luiz Capitulino
461061eafb cpu-partitioning.7: add note about ksm and ksmtuned
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2018-10-10 23:20:03 +02:00
Jaroslav Škarvada
384ffe9466
Merge pull request #130 from olysonek/master
Make python-dmidecode a weak dependency
2018-10-10 14:45:11 +02:00
Ondřej Lysoněk
f39b6b3016 Make python-dmidecode a weak dependency
It's only available on x86_64.

Resolves: rhbz#1565598

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-10-10 14:34:50 +02:00
Jaroslav Škarvada
51fb61faf2
Merge pull request #128 from lovengulu/issue127
solves issue #127 - install instructions
2018-10-09 22:55:46 +02:00
Jaroslav Škarvada
bd3344a19e
Merge pull request #122 from ldzhong/rotate-feature
log: add two options(log_file_count and log_file_maxbytes) in the main cfg
2018-10-09 22:53:13 +02:00
Jaroslav Škarvada
796e329e2b
Merge pull request #129 from olysonek/master
commands: Fix chassis type matching
2018-10-09 18:08:07 +02:00
Ondřej Lysoněk
0fe5bc76d0 commands: Fix chassis type matching
Resolves: rhbz#1565598

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-10-09 18:00:19 +02:00
Yuval Fuchs
9eaa8438b1 solves issue #127 - install instructions 2018-10-09 13:46:12 +03:00
Jaroslav Škarvada
ac29201fc7
Merge pull request #125 from olysonek/recommend
recommend.conf: Describe syspurpose_role and chassis_type
2018-09-25 13:24:32 +02:00
Ondřej Lysoněk
b57f054581 recommend.conf: Describe syspurpose_role and chassis_type
Describe syspurpose_role and chassis_type in the documentation in
recommend.conf

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-24 17:32:14 +02:00
Jaroslav Škarvada
787c372370
Merge pull request #124 from olysonek/recommend
Add support for syspurpose and chassis type matching in recommend.conf
2018-09-24 12:05:09 +02:00
Ondřej Lysoněk
9efd6d7728 Support syspurpose role matching in recommend.conf
Resolves: rhbz#1565598

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-24 10:58:25 +02:00
Ondřej Lysoněk
469a862501 Support chassis type matching in recommend.conf
Resolves: rhbz#1565598

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-24 10:58:25 +02:00
Lidong Zhong
4791290f9b log: add two options(log_file_count and log_file_maxbytes) in the main config file
Currently the logrotation is not configurable. On system with large
amount of cpus a tuned start creates a lot of entries and older log
entries are lost.
2018-09-11 15:42:53 +08:00
Jaroslav Škarvada
ec52b52a40
realtime-virtual-guest: run script.sh
Related: rhbz#1616043

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-09-06 13:16:55 +02:00
Jaroslav Škarvada
014ee5da14
Merge pull request #121 from evgeni/fix-manpage-spelling
fix spelling mistakes in tuned-profiles-cpu-partitioning.7
2018-09-06 12:34:34 +02:00
Evgeni Golov
34ba5e5dfb fix spelling mistakes in tuned-profiles-cpu-partitioning.7 2018-09-05 19:54:23 +02:00
Marcelo Tosatti
efcb477299 start/stop rt-entsk daemon on initialization/shutdown
The rt-entsk application, part of newer rt-setup packages,
worksaround a latency issue with static key
IPI's. What it does it:

/*
 * Open a socket, and enable timestamping on it.
 *
 * This is to avoid Chrony from changing timestamping
 * user count from 0->1 and vice-versa, causing
 * static key enable/disable IPIs.
 *
 */

Start/stop the systemctl service from the realtime-virtual-host
and realtime-virtual-guest profiles.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2018-08-31 13:28:20 +02:00