1
0
Fork 0
Commit graph

1550 commits

Author SHA1 Message Date
Jaroslav Škarvada
78df85affe
Merge branch 'master' into project-rename 2021-06-03 17:20:55 +02:00
Jaroslav Škarvada
91e252aaf8
Merge pull request #355 from yarda/ci-update
tests: added rlRun python detect description to beaker test
2021-06-03 16:42:54 +02:00
Jaroslav Škarvada
871e68bea1
tests: added rlRun python detect description to beaker test
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2021-06-03 16:08:55 +02:00
Jaroslav Škarvada
aca6e456e6
Merge pull request #353 from yarda/rhel-ci-fix
ci: fix versioning of autobuild packages
2021-06-03 16:00:06 +02:00
Jaroslav Škarvada
4f1901991e
ci: fixed RHEL-8
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2021-06-03 01:22:41 +02:00
Jaroslav Škarvada
ba8fe0d755
ci: fix versioning of autobuild packages
This should create RPM packages for CI named e.g. tuned-2.15.0...
instead of tuned-v2.15.0... It may fix CI provisioning for
RHEL machines (https://github.com/packit/packit-service/issues/1095).

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2021-06-02 23:57:09 +02:00
Jaroslav Škarvada
73aa08947b
Merge pull request #348 from yarda/ci-fix
ci: beakerlib tests fixes
2021-05-31 09:25:14 +02:00
Jaroslav Škarvada
49b74a8b56
ci: beakerlib tests fixes
Switch from the deprecated execution method.
Fix for the bz1798183-RFE-support-post-loaded-profile beakerlib test.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2021-05-20 14:54:45 +02:00
Jaroslav Škarvada
01fecec1d1
Merge pull request #344 from yarda/rhbz1957897
cpu-partitioning,realtime: set cpumasks of all workqueues
2021-05-20 10:59:25 +02:00
Jaroslav Škarvada
65780a0e19
Merge pull request #349 from yarda/recommender-not-ignore-chasis-if-no-dmidecode
recommend: do not ignore chassis_type if there is no dmidecode
2021-05-19 10:10:47 +02:00
Jaroslav Škarvada
656005b9b5
Merge pull request #347 from jtval/docupdate-includedprofiles
adding profile descriptions included in downstream
2021-05-18 12:30:50 +02:00
Jacob Valdez
57f4983465 adding profile descriptions included in downstream 2021-05-18 08:19:39 +02:00
Jaroslav Škarvada
8e6767a125
recommend: do not ignore chassis_type if there is no dmidecode
Previously, if there wasn't dmidecode all 'chassis_type' matches
were ignored. This is not correct, because we cannot enforce
chassis type. Now in such cases the chassis_type is matched
against empty string.

I.e. previously the following matched in case of no dmidecode:
something_that_matched
chassis_type=.*(Notebook|Laptop|Portable).*

Now it doesn't match, but the previous behavior can be still
emulated by e.g.:
something_that_matched
chassis_type=(.*(Notebook|Laptop|Portable).*)|^$

Resolves: rhbz#1959889

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2021-05-17 23:16:54 +02:00
Jaroslav Škarvada
16d4acbaca
Project renamed to TuneD
The 'D' is now capital to clarify pronunciation.

DBus service name is kept as '/Tuned' not to break
backward compatibility.

This will also need update of downstream tests
which rely on the specific output strings containing
the name.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2021-05-17 22:09:02 +02:00
Jaroslav Škarvada
cc2a5e4f33
Merge pull request #339 from yarda/rhel-9-syspurpose-fix
syspurpose is provides by subscription-manager on RHEL-9
2021-05-17 22:05:40 +02:00
Jaroslav Škarvada
1a3245f47f
Merge pull request #345 from pjps/RHBZ#1947858
RHBZ#1947858 profiles: improve realtime verify functions
2021-05-13 12:11:13 +02:00
P J P
6407ca44c6 profiles: improve realtime verify functions
tuned(8) realtime-virtual-{host|guest} profiles set Kernel and
KVM module parameters via script.sh plugin. These parameters are
to be verified in a verify() function, invoked by tuned-adm verify
command.

This patch updates verify() functions to validate KVM module
parameters.

It moves kernel parameters to the tuned.conf file under the
[sysfs] & [sysctl] plugin sections. And removes call to
disable_ksm function, no longer required.

Fixes: RHBZ#1947858
2021-05-13 15:21:48 +05:30
Jaroslav Škarvada
38f7e63611
cpu-partitioning,realtime: set cpumasks of all workqueues
Related: rhbz#1957897

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2021-05-12 21:17:27 +02:00
Jaroslav Škarvada
e25b02f90b
Merge pull request #340 from niteshnarayanlal/rhbz#1944686
plugin_net: Improve error checking for device parameters
2021-04-30 19:50:22 +02:00
Nitesh Narayan Lal
ef3c1fb970 plugin_net: Improve error checking for device parameters
Add and improve parameters error checking at the time of their
retrieval and setting respectively in _custom_parameters().

Signed-off-by: Nitesh Narayan Lal <nitesh@redhat.com>
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2021-04-30 19:36:00 +02:00
Jaroslav Škarvada
e828fa8300
Merge pull request #336 from niteshnarayanlal/rhbz#1943291
plugin_net: Fix check for channels supported mode
2021-04-16 00:33:38 +02:00
Jaroslav Škarvada
8782533b17
syspurpose is provides by subscription-manager on RHEL-9
Resolves: rhbz#1948764

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2021-04-12 23:07:48 +02:00
Jaroslav Škarvada
ec6071f63b
Merge pull request #338 from jpopelka/packit-centos-stream
.packit.yaml update
2021-04-09 18:21:13 +02:00
Jiri Popelka
4db2b8208f
.packit.yaml: remove not needed keys:values
Default values for downstream_package_name, upstream_package_name
and specfile_path should be just fine.

https://packit.dev/docs/configuration/#upstream_package_name
https://packit.dev/docs/configuration/#downstream_package_name
https://packit.dev/docs/configuration/#specfile_path
2021-04-08 18:20:09 +02:00
Jiri Popelka
c0a34fe0de
.packit.yaml: centos-stream-x86_64 -> centos-stream-8-x86_64
See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/PJT7PK2TLW7T2Z2WLXUGHUYBWR244SBB/
2021-04-08 18:15:15 +02:00
Nitesh Narayan Lal
60a348cb50 plugin_net: Fix check for channels supported mode
Commit 0ab1f8cc3f adds a check which replaces the channels mode parameters
based on the supported mode. With the older kernels, the un-supported mode
was indicated by 0, however recently that has been replaced by a string 'n/a'.
Due to this the check in plugin_net that verifies if a replacement is
required or not fails.

Fix the check to incorporate this new string that indicates the un-supported
mode.

Resolves: rhbz#1943291

Signed-off-by: Nitesh Narayan Lal <nitesh@redhat.com>
2021-04-07 14:47:23 -04:00
Jaroslav Škarvada
2b6f9ff415
Merge pull request #333 from yarda/udev_sort_properties
udev: explicitly sort udev properties
2021-03-30 22:37:30 +02:00
Jaroslav Škarvada
29f1872d3a
udev: explicitly sort udev properties
Although udev properties are sorted by libudev, according
to libudev/systemd upstream this behavior cannot be relied
upon. Sort them explicitly for consistent behavior.

Resolves: rhbz#1939970

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2021-03-24 13:48:49 +01:00
Jaroslav Škarvada
0c0ad33025
Merge pull request #329 from yarda/powertop-typo-fix
powertop2tuned: work with PowerTOP 2.13 and newer
2021-03-09 19:44:05 +01:00
Jaroslav Škarvada
b4e975bef8
powertop2tuned: work with PowerTOP 2.13 and newer
Fixes: #328

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2021-03-04 21:14:54 +01:00
Jaroslav Škarvada
16f50af056
Merge pull request #323 from CZerta/scheduler_os_interface
Changes to scheduler plugin to support os interface instead of schedutils in newer python versions.
2021-03-01 13:00:40 +01:00
Jan Zerdik
a9b1d66dc8 Changes to scheduler plugin to support os interface instead
of schedutils in newer python versions.

Signed-off-by: Jan Zerdik <jzerdik@redhat.com>
2021-03-01 11:09:50 +01:00
Jaroslav Škarvada
6fa6ef47a0
Merge pull request #324 from CZerta/make_as_buildrequires
Add make as BuildRequires for new fedora and rhel
2021-02-22 11:01:51 +01:00
Jan Zerdik
8d45b78832 Add make as BuildRequires for new fedora and rhel (bz#1900006)
Signed-off-by: Jan Zerdik <jzerdik@redhat.com>
2021-02-22 10:21:37 +01:00
Jaroslav Škarvada
0d98e220cd
Merge pull request #319 from jmencak/signals-timeout-5s
Lower the threading.Event's wait() timeout.
2021-02-08 15:21:08 +01:00
Jaroslav Škarvada
e26e947a1a
Merge pull request #320 from niteshnarayanlal/rhbz#1846767-v2
Support for adjusting netdev queue count
2021-02-08 15:19:37 +01:00
Nitesh Narayan Lal
c002d93b59 realtime: added support for netdev_queue_count
This allows the user to adjust the queue count for each
network device.

Also add check_net_queue_count built-in function.

The functions check if the user has specified any
queue count value or not. If no value is passed the function
returns the number of housekeeping CPUs as the queue count.

Resolves: rhbz#1846767

Signed-off-by: Nitesh Narayan Lal <nitesh@redhat.com>
2021-01-22 11:55:39 -05:00
Nitesh Narayan Lal
0ab1f8cc3f plugin_net: Implement setting 'channels' parameters
plugin_net instances can now be given a new 'channels' option with
the following values (see ethtool(8) for their meaning):
rx N
tx N
other N
combined N

The syntax is the same as the syntax for 'rings', 'coalesce' and
other parameters introduced previously.

Example:
[net]
channels=combined 16

Since a network device either supports rx/tx or combined queue
mode. This patch automatically adjusts the parameters based on the
mode supported by the device as long as a valid configuration is
requested.

Resolves: rhbz#1846767

Signed-off-by: Nitesh Narayan Lal <nitesh@redhat.com>
2021-01-22 11:55:32 -05:00
Jiri Mencak
53e2a4b6e4 Lower the threading.Event's wait() timeout.
The current 3600s wait() timeout in the controller's loop is too high.
There are known instances of signals not being acted upon.  One known
example is SIGTERM not being acted upon during system shutdown.
Lowering the timeout to 10s allows for this signal to be acted upon right
after the timeout.

Signed-off-by: Jiri Mencak <jmencak@users.noreply.github.com>
2021-01-21 13:40:39 +01:00
Jaroslav Škarvada
5397166de5
new release (2.15.0)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-12-17 18:27:53 +01:00
Jaroslav Škarvada
9fb8bd33a2
Merge pull request #312 from 7h3w1zz/master
Reference the correct manpage
2020-12-03 12:11:46 +01:00
Jacob Collins
24a7ec9f4e Reference the correct manpage
Replaces reference to the non-existent tuned-conf with the correct
manpage (tuned.conf)

Signed-off-by: Jacob Collins <jaco3collins@gmail.com>
2020-12-02 23:13:12 -05:00
Jaroslav Škarvada
28afbb28f8
new release (2.15.0-rc.1)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-12-01 19:59:42 +01:00
Jaroslav Škarvada
1ae6b25aaa
Merge pull request #311 from yarda/rhbz1777874
bootloader: fixed cmdline duplication with BLS and grub2-mkconfig
2020-12-01 17:36:27 +01:00
Jaroslav Škarvada
3a04b9a567
Merge pull request #310 from yarda/rhbz1890219
scheduler: added perf_mmap_pages option to set perf buffer size
2020-12-01 17:35:52 +01:00
Jaroslav Škarvada
11bd138745
Merge pull request #295 from jmencak/formatting-nit
Addressing a formatting inconsistency.
2020-12-01 17:34:56 +01:00
Jaroslav Škarvada
a0fd433e87
bootloader: fixed cmdline duplication with BLS and grub2-mkconfig
After application of this patch in order to get rid of the duplicated
kernel command line options (which was duplicated due to the usage of
the grub2-mkconfig), the grub2-mkconfig needs to be run again.
We do not run it automatically in the spec file %post not to break
users not using grub2-mkconfig.

This fix expects that user has not modified the line containing the
GRUB_CMDLINE_LINUX_DEFAULT option and the $tuned_params in the
/etc/default/grub file. If user modified this line, the option
duplication may still occure. In such case, please remove the
$tuned_params from the /etc/default/grub by hand.

Resolves: rhbz#1777874

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-11-29 22:05:17 +01:00
Jaroslav Škarvada
7580d4fae5 scheduler: added perf_mmap_pages option to set perf buffer size
For perf events mmapped buffer is used. Under heavy load the buffer may
overflow. In such cases the `scheduler` plugin may start missing events
and not process some newly created processes. Increasing the buffer size
may help.

The buffer size can be set with the `perf_mmap_pages` parameter.
Value of this parameter has to be power of 2. If it is not the power of 2,
the nearest bigger power of 2 value is calculated from it and this
calculated value is used. If the `perf_mmap_pages` parameter is omitted,
the default kernel value is used, which should be 128 for the recent
kernels (tested on kernel-5.9.8).

Example:

[scheduler]
perf_mmap_pages = 256

Resolves: rhbz#1890219

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-11-25 22:04:45 +01:00
Jaroslav Škarvada
8558162549
Merge pull request #309 from yarda/rhbz1894610
scheduler: add perf_process_fork option to enable processing of fork
2020-11-25 21:55:05 +01:00
Jaroslav Škarvada
1907f205a0
scheduler: added perf_process_fork option to enable processing of fork
Scheduler plugin uses perf event loop to catch newly created processes.
By default it listens to perf.RECORD_COMM and perf.RECORD_EXIT events.

By setting `perf_process_fork` parameter to `true` it will also listen
to perf.RECORD_FORK events, i.e. it will explicitly process
child processes created by the fork system call. Usually, child processes
inherit affinity from their parents, thus the `scheduler` plugin doesn't
need to explicitly process them, that's why the `perf_process_fork`
parameter is by default set to `false` and child processes aren't
explicitly processed. This default setting may also save some CPU time.

Resolves: rhbz#1894610

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-11-25 20:41:39 +01:00