1
0
Fork 0
Commit graph

1535 commits

Author SHA1 Message Date
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
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
Jaroslav Škarvada
3802243103
Merge pull request #308 from yarda/fips_fix
service: fixed for FIPS
2020-11-24 19:23:59 +01:00
Jaroslav Škarvada
621978c086
service: fixed for FIPS
In FIPS MD5 is disabled, thus switch to SHA256 which is available
in FIPS.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-11-23 19:53:45 +01:00
Jaroslav Škarvada
19a2bf437f
Merge pull request #307 from bmr-cymru/bmr-skip-boom-entries
Don't modify boom managed BLS snippets
2020-11-23 12:36:53 +01:00
Bryn M. Reeves
84b125a6b8 Don't modify boom managed BLS snippets
Currently the 92-tuned.install kernel-install plugin modifies all
BLS snippets that match the KERNEL_INSTALL_MACHINE_ID passed to
the script.

This makes sense for the system managed entries but it conflicts
with entries that are managed by the boom boot manager: boom will
propagate these options if they are present when the entry is set
up, but the files should not be modified outside boom's control
since this will cause the boom boot identifier to change.

Boom boot entries include the boot_id in the file name pattern:

  %{machine_id}-%{boot_id}-%{version}.conf

Compared to the system managed entries which use:

  %{machine_id}-%{version}.conf

Modify 92-tuned.install to skip this change for files that match
the boom naming convention.

Rather than rely on the presence of '-' (which may appear in some
kernel builds, especially custom or debug kernels), use a regular
expression to match the 7-character or greater SHA1 hash that
appears in boom BLS snippet file names and the remaining structure
of the file name.

A paired change is made to the tuned.spec %postun script to apply
the same scope to the logic that reverts these changes on removal.

This gives the correct behaviour for me of continuing to add the
$tuned_... references to the system managed entries where needed,
but without causing unexpected changes to the boom boot entries.
The spec file also correctly reverts the change for the same set
of entries when %postun is executed.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
2020-11-19 15:15:07 +00:00
Jaroslav Škarvada
23dcbd7ead
Merge pull request #306 from yarda/rhbz_1896348
scheduler: added default_irq_smp_affinity option
2020-11-14 10:53:46 +01:00
Jaroslav Škarvada
2321625400
Merge pull request #289 from yarda/rt-entsk-plugin
Rt entsk plugin
2020-11-13 18:30:42 +01:00
Jaroslav Škarvada
1b0573dab2
scheduler: added default_irq_smp_affinity option
The option 'default_irq_smp_affinity' affects what will be written to the
/proc/irq/default_smp_affinity. The option supports the following values:

calc:
  Content of the /proc/irq/default_smp_affinity will be calculated from
  the 'isolated_cores'. Non-isolated cores are calculated as an inversion
  of the 'isolated_cores'. Then the intersection of the non-isolated cores
  and the previous content of the /proc/irq/default_smp_affinity is
  written to the /proc/irq/default_smp_affinity. If the intersection is
  empty set, then just the non-isolated cores are written to the
  /proc/irq/default_smp_affinity. This behavior is the default if
  option 'default_irq_smp_affinity' is not specified.

ignore:
  The /proc/irq/default_smp_affinity is not touched by Tuned.

cpulist like e.g. '1,3-4':
  The cpulist is unpacked and directly written to the
  /proc/irq/default_smp_affinity

Examples:

[scheduler]
isolated_cores = 1, 2
default_irq_smp_affinity = calc

[scheduler]
isolated_cores = 1, 2
default_irq_smp_affinity = ignore

[scheduler]
isolated_cores = 1, 3
default_irq_smp_affinity = 2, 4

Resolves: rhbz#1896348

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-11-12 11:00:18 +01:00
Jaroslav Škarvada
c6e8765c63
Merge pull request #305 from yarda/master
spec: added weak dependency on kmod for modprobe
2020-11-09 21:16:25 +01:00
Jaroslav Škarvada
6c448fcda1
spec: added weak dependency on kmod for modprobe
Fixes: #304

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-11-09 20:12:57 +01:00
Jaroslav Škarvada
c532d116ac
Merge pull request #301 from progmaticlab/master
Added contrail vrouter dpdk into ps_blacklist
2020-10-19 10:33:21 +02:00
alexey-mr
57efbb2ef2 Added contrail dpdk into ps_blacklist
- https://github.com/redhat-performance/tuned/issues/297
2020-10-14 11:08:15 +03:00
Jaroslav Škarvada
845bdc59c8
Merge pull request #298 from mrksu/sync-rhel-8-docs
Synchronize documentation files from RHEL 8
2020-10-02 11:37:36 +02:00
Marek Suchánek
35abb7fda0 Fix another reference in the documentation 2020-10-01 20:11:03 +02:00
Marek Suchánek
cf229cc807 Fix various documentation issues in the metadata and references 2020-10-01 20:06:55 +02:00
Marek Suchánek
3187cf348f Manually merge documentation changes from RHEL downstream 2020-10-01 19:47:59 +02:00