1
0
Fork 0
Commit graph

1508 commits

Author SHA1 Message Date
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
Jiri Mencak
6bb8348768 Addressing a formatting inconsistency.
Signed-off-by: Jiri Mencak <jmencak@users.noreply.github.com>
2020-09-14 12:17:17 +02:00
Jaroslav Škarvada
5444669800
Merge pull request #293 from yarda/service-plugin
Added plugin 'service'
2020-09-03 12:23:48 +02:00
Jaroslav Škarvada
c85f3ab27d
Added plugin 'service'
The service plugin can handle sysvinit, sysv-rc, openrc, systemd.
Syntax is the following:

[service]
service.sendmail = start,enable,file:${i:PROFILE_DIR}/tuned-sendmail.conf

'start' means to start the service, 'stop' to stop, 'enable' to enable,
'disable' to disable, file:FILE is the overlay configuration file
that will be installed for the service. Multiple directives can be
separated by comma ',' or semicolon ';'. If the directives are
conflicting, the last one will be used. The internal variable
${i:PROFILE_DIR} points to the directory from which the profile is
loaded.

The service plugin supports configuration overlays only for the systemd,
for other init systems this directive is ignored. The configuration
overlay files are copied to the /etc/systemd/system/SERVICE_NAME.service.d/
directories. Upon unloading if the directory is empty, it's removed.

With systemd, the 'start' directive is implemented by 'restart' in order
to allow loading of the service configuration file overlay.

With init systems other than systemd, it works only with the current runlevel.

Resolves: rhbz#1869991

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-09-02 16:48:58 +02:00
Jaroslav Škarvada
ba7286e375
Merge pull request #290 from kofemann/postgres-profile
added postgresql server profile
2020-08-31 08:47:15 +02:00
Tigran Mkrtchyan
f7ecad0ae0 added postgresql server profile
A new tuned profile for PostgreSQL database server.

This profile is based of information collected from various
presentations about Linux tuning at PGConf.

See: https://www.socallinuxexpo.org/sites/default/files/presentations/scale_kosmodemiansky_linux_internals.pdf

Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
2020-07-31 20:49:11 +02:00
Jaroslav Škarvada
20aac66a88
Merge pull request #291 from christophefontaine/master
realtime-virtual-host profile: exclude ovs-vswitchd pmds
2020-07-31 02:48:23 +02:00
Jaroslav Škarvada
008176d6a1
Merge pull request #284 from yarda/cgroups-isolated-cores-fix
scheduler: fix isolated_cores to work with cgroups
2020-07-31 02:19:33 +02:00
Christophe Fontaine
bac2055e4b realtime-virtual-host profile: exclude ovs-vswitchd pmds
Like the cpu-partitioning profile, exclude all 'pmd' threads
to avoid repinning ovs-vswitchd pmds.

Resolves: rhbz#1861767

Signed-off-by: Christophe Fontaine <cfontain@redhat.com>
2020-07-29 16:44:22 +02:00
Marcelo Tosatti
8aef56287b realtime profile: use rtentsk plugin
Use rt-entsk tuned plugin and drop systemctl service usage.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2020-07-28 12:48:29 +02:00
Marcelo Tosatti
1d50984a4d add rtentsk plugin
Add plugin to open a socket with SOF_TIMESTAMPING_OPT_TX_SWHW.

This is for avoiding interruptions due to static key IPIs due
to opening socket with timestamping enabled (by opening a
socket ourselves the static key is kept enabled).

Thanks to Jiri Mencak for porting the C code to Python.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2020-07-28 12:48:24 +02:00
Jaroslav Škarvada
c6a564865f
Merge pull request #288 from yarda/drop-lapic-calc
Drop lapic calc
2020-07-23 11:24:20 +02:00
Jaroslav Škarvada
6e6f324885
spec: drop qemu-kvm-tools-rhev, tuned-profiles-nfv-host-bin requirements
Without LAPIC tuning we do not need qemu-kvm-tools-rhev and
tuned-profiles-nfv-host-bin requirements.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-07-22 15:23:44 +02:00
Marcelo Tosatti
51c50a3a18 realtime-virtual-host profile: remove lapic advancement calculation
The LAPIC advancement improvement is minimal (3 or 4 us) and its
calculation has shown to be problematic under certain
scenarios (for example if qemu-kvm is not installed).

Remove it.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2020-07-22 15:17:48 +02:00
Jaroslav Škarvada
d01dab0f59
Merge pull request #287 from yarda/master
spec: make hdparm dependency weak, because it's not available on s390x
2020-07-22 14:57:53 +02:00
Jaroslav Škarvada
6dd13f7753
spec: make hdparm dependency weak, because it's not available on s390x
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-07-22 10:43:18 +02:00
Jaroslav Škarvada
f1516f1a5b
Merge pull request #285 from yarda/ubuntu-path-fix
cpu-partitioning: do not hardcode path to mktemp
2020-07-22 10:12:00 +02:00
Jaroslav Škarvada
766dd06def
Merge pull request #283 from yarda/amd-performance-regression-fix
throughput-performance: fix performance regression on AMD
2020-07-22 10:11:11 +02:00
Jaroslav Škarvada
88b4f7b0bf
Merge pull request #282 from bolinches/master
Update Spectrum Scale ECE profile
2020-07-22 10:10:20 +02:00
Jaroslav Škarvada
b16493a5c5
Merge pull request #281 from yarda/rhel-7-build-fix
Fixed building on RHEL-7/CentOS 7
2020-07-22 10:09:29 +02:00
Jaroslav Škarvada
dab16ac66a
Merge pull request #253 from outSH/change_dmidecode_usage
Replaced python-dmidecode with reading sysfs dmi and dmidecode tool.
2020-07-22 10:08:42 +02:00
Jaroslav Škarvada
85f0e3297b
cpu-partitioning: do not hardcode path to mktemp
E.g. Ubuntu uses /bin/mktemp, while e.g. Fedora uses /usr/bin/mktemp.
There is probably no need to hardcode the path, so rely on the system path.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-07-03 22:45:34 +02:00
Jaroslav Škarvada
daf02c3805
scheduler: fix isolated_cores to work with cgroups
It seems cpuset.cpus needs to be initialized before writing to tasks.

Related: rhbz#1784648

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-07-03 12:17:03 +02:00
Jaroslav Škarvada
f511ad5d48
throughput-performance: fix performance regression on AMD
It turned out that disablement of the numa_balancing could result in
upto 20% performance drop on some loads.

Related: rhbz#1746957

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-06-30 15:39:18 +02:00
Luis Bolinches
fb06eefe62 Update Spectrum Scale ECE profile
Signed-off-by: Luis Bolinches <luis.bolinches@fi.ibm.com>
2020-06-22 10:53:08 +03:00
Jaroslav Škarvada
89e670c80a
Fixed building on RHEL-7/CentOS 7
Also fixed building with python-2.7.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-06-19 11:15:12 +02:00
Michal Bajer
d5825a51f4 Replaced python-dmidecode with reading sysfs dmi and dmidecode tool.
Fixes #232
sysfs exports virtual dmi device structs which provides chassis type in numeric form, it should be available in all RHEL6+, so I used it as primary source (not much overhead).
If for some reasons it couldn't be read, dmidecode output will be parsed instead. Removed any references to python-dmidecode module.
chassis type is gathered only once, and only one intance of ProfileRecommender will be created (in daemon).

Signed-off-by: Michal Bajer <outSH@users.noreply.github.com>

Fix whitespace and other minor issues in solution for #232

Signed-off-by: Michal Bajer <outSH@users.noreply.github.com>
2020-06-15 18:30:03 +02:00
Jaroslav Škarvada
1d0dd6e5ae
new release (2.14.0)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-06-15 11:26:48 +02:00