1
0
Fork 0
Commit graph

1148 commits

Author SHA1 Message Date
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
Luiz Capitulino
d1264ba3bf tuned: use systemctl mask in KSM disable code
KSM disable code is reimplementing systemctl mask command.
Note only that, but it seems a race is possible where the ksm
services may be starting at the same time as disable_ksm()
is running. I believe the mask command should fix that.

There's an important difference in this new version: we don't
try to start KSM when switching away from the cpu-partitioning
profile. This means KSM will probably remain disabled until
the next reboot.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2018-08-31 11:37:51 +02:00
Jaroslav Škarvada
1cce9d79e9
Use online CPUs for cpusets calculations instead of present CPUs
resolves: rhbz#1613478

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-08-27 00:23:51 +02:00
Ondřej Lysoněk
3f70cad744 Add a hint to a log message about one-shot mode
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-08-21 13:59:49 +02:00
Jaroslav Škarvada
a5df277fd7
Merge pull request #119 from jmencak/daemon-rollback-info
Show rollback info message only when in daemon mode.
2018-08-20 11:38:18 +02:00
Jiri Mencak
8f065fbc05 Show rollback info message only when in daemon mode.
This commit removes misleading info message about rolling back
changes when running tuned in one-shot mode.
2018-08-14 16:45:33 +02:00
Jaroslav Škarvada
3e4d491492
Merge pull request #114 from olysonek/master
tuned-gui: Sort plugins based on their name
2018-07-11 17:44:16 +02:00
Ondřej Lysoněk
d46834808c tuned-gui: Sort plugins based on their name
Previously the sorting was done by comparing the objects themselves,
which is not what we want and it doesn't work in Python 3 - TypeError
is raised, e.g:
TypeError: '<' not supported between instances of 'BootloaderPlugin' and 'MountsPlugin'

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-07-11 01:04:46 +02:00
Jaroslav Škarvada
3c6490679e
Merge pull request #113 from olysonek/source
spec: Simplify the Source0 tag
2018-07-11 00:03:23 +02:00
Ondřej Lysoněk
2039d7cb0d spec: Simplify the Source0 tag
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-07-10 16:48:54 +02:00
Jaroslav Škarvada
1cb0c11ac4
Merge pull request #112 from olysonek/tuned-adm
tuned-adm: Fix a traceback when run without action specified
2018-07-10 12:41:12 +02:00
Ondřej Lysoněk
39ac6d76e8 tuned-adm: Fix a traceback when run without action specified
The previous fix was not sufficient, tuned-adm still tracebacks
in cases when options are specified, but an action is not, e.g.:
$ python3 ./tuned-adm.py -a
Traceback (most recent call last):
  File "./tuned-adm.py", line 106, in <module>
    action_name = options.pop("action")
KeyError: 'action'

The object returned by ArgumentParser.add_subparsers recognizes
a 'required' attribute (at least in Python 3), which is probably
meant to allow to make specifying an action required, but I wasn't
able to make it work properly, I get errors such as
Traceback (most recent call last):
  File "./tuned-adm.py", line 98, in <module>
    args = parser.parse_args(sys.argv[1:])
  File "/usr/lib64/python3.6/argparse.py", line 1730, in parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "/usr/lib64/python3.6/argparse.py", line 1762, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/lib64/python3.6/argparse.py", line 1997, in _parse_known_args
    ', '.join(required_actions))
TypeError: sequence item 0: expected str instance, NoneType found

which I think is not expected. The error is raised here:
6ceab46a60/Lib/argparse.py (L2001)

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-07-10 11:20:01 +02:00
Jaroslav Škarvada
a9693d2201
Merge pull request #111 from olysonek/tuned-adm
tuned-adm: Fix a traceback when run without arguments
2018-07-10 01:39:34 +02:00
Ondřej Lysoněk
5ff48f7bd2 tuned-adm: Fix a traceback when run without arguments
Running tuned-adm without arguments using Python 3 results in
a traceback. This is because in this case parse_args does not
exit with a usage message in Python 3 and the 'action' option
is then undefined. So let's check for this case and print the
usage message ourselves. There may be a better solution to this,
but I wasn't able to come up with anything in a reasonable amount
of time.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-07-10 00:24:00 +02:00
Marcelo Tosatti
4790e570ce realtime-virtual-host: pin only the vcpu thread to isolated pCPU (v2)
As noted in the bugzilla ticket

https://bugzilla.redhat.com/show_bug.cgi?id=1554851

The QEMU I/O thread can interrupt the time measurement
of the timer. To avoid this problem, only
pin the vCPU thread.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Reviewed-and-Tested-by: Luiz Capitulino <lcapitulino@redhat.com>

v2:
   - Use unix sockets (Luiz)
   - Proper numeric output (Luiz)
2018-07-09 18:34:14 +02:00
Jaroslav Škarvada
d9fc98357c
Makefile: added support for python interpreter with arbitrary path
Also used python macros in the spec file.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-07-09 14:48:56 +02:00
Jaroslav Škarvada
38700a9523
spec: fixed URL for pre-releases
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-07-05 00:16:21 +02:00
Jaroslav Škarvada
f19b7c5713
Fixed compatibility with python-3.7
In python-3.7 async is a keyword, so it cannot be redefined.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-07-04 23:27:38 +02:00
Jaroslav Škarvada
443fd85cba
spec: dropped obsoleted scriptlets
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-07-04 23:12:33 +02:00
Jaroslav Škarvada
323acf2c43
new release (2.10.0)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-07-04 21:23:21 +02:00
Jaroslav Škarvada
03d06dcb10
Merge pull request #108 from olysonek/loglevel
tuned-adm: Print only CONSOLE log messages by default
2018-07-04 20:23:05 +02:00
Jaroslav Škarvada
351332e313
Merge pull request #107 from olysonek/log_to_tuned_adm
Print log excerpt when running 'tuned-adm off'
2018-07-04 20:22:17 +02:00
Jaroslav Škarvada
d8debec083
Merge pull request #110 from olysonek/replace_defirqaffinity
Replace calls to defirqaffinity
2018-07-04 01:43:22 +02:00
Ondřej Lysoněk
c2dfc1f806 profiles: Replace calls to defirqaffinity.py
In the cpu-partitioning profile, IRQ affinity change is already done
as part of the 'isolated_cores' option of the scheduler plugin, so
calling defirqaffinity is, at best, redundant. So let's remove the call.

In the realtime* profiles, it's essentially the same, except that tuna
was used instead of isolated_cores. So let's use built-in functionality
instead of tuna and drop calls to defirqaffinity.

Resolves: rhbz#1590937

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-07-03 00:15:34 +02:00