new release

rebased tuned to latest upstream
    resolves: RHEL-50567
  spec: create /etc/tuned/profiles directory
    resolves: RHEL-46721
  hotplug: wait for device initialization
  sap-netweaver: increased vm.max_map_count
  daemon: buffer sighup signal
  added an option to configure profile directories
  api: added commands to dynamically create/destroy instances
  functions: added 'intel_recommended_pstate'
  functions: added 'log' which helps with debugging
  functions: added 'package2cpus' and 'packages2uncores' matchers
  functions: added 'lscpu' to list CPU details
  plugins: added plugin_irq
  plugin_video: added support for amdgpu `panel_power_savings` attribute
  plugin_cpu: check that writes are necessary if they may cause redundant IPIs
  plugin_uncore: allow to configure frequency limits using percent
  amd-pstate: added support for controlling core performance boost
  plugin_scheduler: adjusted error logging in _set_affinity
  plugin_audio: enabled controller reset to fix suspend with NVIDIA
  plugin_irq: fixed expansion of variables
  plugin_irqbalance: switched to IRQBALANCE_BANNED_CPULIST
This commit is contained in:
Jaroslav Škarvada 2024-07-26 00:57:32 +02:00
parent aac026e273
commit ffde1e1fd0
2 changed files with 117 additions and 53 deletions

View File

@ -1 +1 @@
SHA512 (tuned-2.22.1.tar.gz) = 160b1cab5477d84a0da89f584fe646b32162527a138d9b5957799c5f26598b98449733040710133a1c5bdd5588eee72549131ff163e777a105fc24e92edc6d8f
SHA512 (tuned-2.24.0-rc.1.tar.gz) = d81d0323bd37b5c20db45a0ab1d08db0985cb1e46e049972298dc7d2f3aa2ae81eefe309090604725ee4fa2cc14195a4f20bf666f47abb20f5276a8b7f9b8b25

View File

@ -26,16 +26,16 @@
%endif
%endif
#%%global prerelease rc
#%%global prereleasenum 1
%global prerelease rc
%global prereleasenum 1
%global prerel1 %{?prerelease:.%{prerelease}%{prereleasenum}}
%global prerel2 %{?prerelease:-%{prerelease}.%{prereleasenum}}
Summary: A dynamic adaptive system tuning daemon
Name: tuned
Version: 2.22.1
Release: 3%{?prerel1}%{?dist}
Version: 2.24.0
Release: 0.1%{?prerel1}%{?dist}
License: GPL-2.0-or-later AND CC-BY-SA-3.0
Source0: https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prerel2}/%{name}-%{version}%{?prerel2}.tar.gz
# RHEL-9 specific recommend.conf:
@ -325,6 +325,19 @@ if [ -r "%{_sysconfdir}/default/grub" ]; then
%{_sysconfdir}/default/grub
fi
%if 0%{?fedora} || 0%{?rhel} >= 10
# migrate all user-defined profiles from /etc/tuned/ to /etc/tuned/profiles/
for f in %{_sysconfdir}/tuned/*; do
if [ -e "$f/tuned.conf" ]; then
mv -n "$f" %{_sysconfdir}/tuned/profiles/
fi
done
%endif
%post ppd
%systemd_post tuned-ppd.service
%preun
%systemd_preun tuned.service
@ -336,6 +349,10 @@ if [ "$1" == 0 ]; then
fi
%preun ppd
%systemd_preun tuned-ppd.service
%postun
%systemd_postun_with_restart tuned.service
@ -375,12 +392,24 @@ if [ "$1" == 0 ]; then
fi
%postun ppd
%systemd_postun_with_restart tuned-ppd.service
%triggerun -- tuned < 2.0-0
# remove ktune from old tuned, now part of tuned
/usr/sbin/service ktune stop &>/dev/null || :
/usr/sbin/chkconfig --del ktune &>/dev/null || :
%triggerun ppd -- power-profiles-daemon
# if swapping power-profiles-daemon for tuned-ppd, check whether it is active
if systemctl is-active --quiet power-profiles-daemon; then
mkdir -p %{_localstatedir}/lib/rpm-state/tuned
touch %{_localstatedir}/lib/rpm-state/tuned/ppd-active
fi
%posttrans
# conditional support for grub2, grub2 is not available on all architectures
# and tuned is noarch package, thus the following hack is needed
@ -391,6 +420,15 @@ if [ -d %{_sysconfdir}/grub.d ]; then
fi
%posttrans ppd
# if power-profiles-daemon was active before installing tuned-ppd,
# start tuned-ppd right away
if [ -f %{_localstatedir}/lib/rpm-state/tuned/ppd-active ]; then
systemctl start tuned-ppd
rm -rf %{_localstatedir}/lib/rpm-state/tuned
fi
%files
%exclude %{docdir}/README.utils
%exclude %{docdir}/README.scomes
@ -411,33 +449,34 @@ fi
%exclude %{_sysconfdir}/tuned/realtime-virtual-host-variables.conf
%exclude %{_sysconfdir}/tuned/cpu-partitioning-variables.conf
%exclude %{_sysconfdir}/tuned/cpu-partitioning-powersave-variables.conf
%exclude %{_prefix}/lib/tuned/default
%exclude %{_prefix}/lib/tuned/desktop-powersave
%exclude %{_prefix}/lib/tuned/laptop-ac-powersave
%exclude %{_prefix}/lib/tuned/server-powersave
%exclude %{_prefix}/lib/tuned/laptop-battery-powersave
%exclude %{_prefix}/lib/tuned/enterprise-storage
%exclude %{_prefix}/lib/tuned/spindown-disk
%exclude %{_prefix}/lib/tuned/sap-netweaver
%exclude %{_prefix}/lib/tuned/sap-hana
%exclude %{_prefix}/lib/tuned/sap-hana-kvm-guest
%exclude %{_prefix}/lib/tuned/mssql
%exclude %{_prefix}/lib/tuned/oracle
%exclude %{_prefix}/lib/tuned/atomic-host
%exclude %{_prefix}/lib/tuned/atomic-guest
%exclude %{_prefix}/lib/tuned/realtime
%exclude %{_prefix}/lib/tuned/realtime-virtual-guest
%exclude %{_prefix}/lib/tuned/realtime-virtual-host
%exclude %{_prefix}/lib/tuned/cpu-partitioning
%exclude %{_prefix}/lib/tuned/cpu-partitioning-powersave
%exclude %{_prefix}/lib/tuned/spectrumscale-ece
%exclude %{_prefix}/lib/tuned/postgresql
%exclude %{_prefix}/lib/tuned/openshift
%exclude %{_prefix}/lib/tuned/openshift-control-plane
%exclude %{_prefix}/lib/tuned/openshift-node
%exclude %{_prefix}/lib/tuned/profiles/default
%exclude %{_prefix}/lib/tuned/profiles/desktop-powersave
%exclude %{_prefix}/lib/tuned/profiles/laptop-ac-powersave
%exclude %{_prefix}/lib/tuned/profiles/server-powersave
%exclude %{_prefix}/lib/tuned/profiles/laptop-battery-powersave
%exclude %{_prefix}/lib/tuned/profiles/enterprise-storage
%exclude %{_prefix}/lib/tuned/profiles/spindown-disk
%exclude %{_prefix}/lib/tuned/profiles/sap-netweaver
%exclude %{_prefix}/lib/tuned/profiles/sap-hana
%exclude %{_prefix}/lib/tuned/profiles/sap-hana-kvm-guest
%exclude %{_prefix}/lib/tuned/profiles/mssql
%exclude %{_prefix}/lib/tuned/profiles/oracle
%exclude %{_prefix}/lib/tuned/profiles/atomic-host
%exclude %{_prefix}/lib/tuned/profiles/atomic-guest
%exclude %{_prefix}/lib/tuned/profiles/realtime
%exclude %{_prefix}/lib/tuned/profiles/realtime-virtual-guest
%exclude %{_prefix}/lib/tuned/profiles/realtime-virtual-host
%exclude %{_prefix}/lib/tuned/profiles/cpu-partitioning
%exclude %{_prefix}/lib/tuned/profiles/cpu-partitioning-powersave
%exclude %{_prefix}/lib/tuned/profiles/spectrumscale-ece
%exclude %{_prefix}/lib/tuned/profiles/postgresql
%exclude %{_prefix}/lib/tuned/profiles/openshift
%exclude %{_prefix}/lib/tuned/profiles/openshift-control-plane
%exclude %{_prefix}/lib/tuned/profiles/openshift-node
%{_prefix}/lib/tuned
%dir %{_sysconfdir}/tuned
%dir %{_sysconfdir}/tuned/recommend.d
%dir %{_sysconfdir}/tuned/profiles
%dir %{_libexecdir}/tuned
%{_libexecdir}/tuned/defirqaffinity*
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/active_profile
@ -491,40 +530,40 @@ fi
%{_mandir}/man8/scomes.*
%files profiles-sap
%{_prefix}/lib/tuned/sap-netweaver
%{_prefix}/lib/tuned/profiles/sap-netweaver
%{_mandir}/man7/tuned-profiles-sap.7*
%files profiles-sap-hana
%{_prefix}/lib/tuned/sap-hana
%{_prefix}/lib/tuned/sap-hana-kvm-guest
%{_prefix}/lib/tuned/profiles/sap-hana
%{_prefix}/lib/tuned/profiles/sap-hana-kvm-guest
%{_mandir}/man7/tuned-profiles-sap-hana.7*
%files profiles-mssql
%{_prefix}/lib/tuned/mssql
%{_prefix}/lib/tuned/profiles/mssql
%{_mandir}/man7/tuned-profiles-mssql.7*
%files profiles-oracle
%{_prefix}/lib/tuned/oracle
%{_prefix}/lib/tuned/profiles/oracle
%{_mandir}/man7/tuned-profiles-oracle.7*
%files profiles-atomic
%{_prefix}/lib/tuned/atomic-host
%{_prefix}/lib/tuned/atomic-guest
%{_prefix}/lib/tuned/profiles/atomic-host
%{_prefix}/lib/tuned/profiles/atomic-guest
%{_mandir}/man7/tuned-profiles-atomic.7*
%files profiles-realtime
%config(noreplace) %{_sysconfdir}/tuned/realtime-variables.conf
%{_prefix}/lib/tuned/realtime
%{_prefix}/lib/tuned/profiles/realtime
%{_mandir}/man7/tuned-profiles-realtime.7*
%files profiles-nfv-guest
%config(noreplace) %{_sysconfdir}/tuned/realtime-virtual-guest-variables.conf
%{_prefix}/lib/tuned/realtime-virtual-guest
%{_prefix}/lib/tuned/profiles/realtime-virtual-guest
%{_mandir}/man7/tuned-profiles-nfv-guest.7*
%files profiles-nfv-host
%config(noreplace) %{_sysconfdir}/tuned/realtime-virtual-host-variables.conf
%{_prefix}/lib/tuned/realtime-virtual-host
%{_prefix}/lib/tuned/profiles/realtime-virtual-host
%{_mandir}/man7/tuned-profiles-nfv-host.7*
%files profiles-nfv
@ -533,32 +572,32 @@ fi
%files profiles-cpu-partitioning
%config(noreplace) %{_sysconfdir}/tuned/cpu-partitioning-variables.conf
%config(noreplace) %{_sysconfdir}/tuned/cpu-partitioning-powersave-variables.conf
%{_prefix}/lib/tuned/cpu-partitioning
%{_prefix}/lib/tuned/cpu-partitioning-powersave
%{_prefix}/lib/tuned/profiles/cpu-partitioning
%{_prefix}/lib/tuned/profiles/cpu-partitioning-powersave
%{_mandir}/man7/tuned-profiles-cpu-partitioning.7*
%files profiles-spectrumscale
%{_prefix}/lib/tuned/spectrumscale-ece
%{_prefix}/lib/tuned/profiles/spectrumscale-ece
%{_mandir}/man7/tuned-profiles-spectrumscale-ece.7*
%files profiles-compat
%{_prefix}/lib/tuned/default
%{_prefix}/lib/tuned/desktop-powersave
%{_prefix}/lib/tuned/laptop-ac-powersave
%{_prefix}/lib/tuned/server-powersave
%{_prefix}/lib/tuned/laptop-battery-powersave
%{_prefix}/lib/tuned/enterprise-storage
%{_prefix}/lib/tuned/spindown-disk
%{_prefix}/lib/tuned/profiles/default
%{_prefix}/lib/tuned/profiles/desktop-powersave
%{_prefix}/lib/tuned/profiles/laptop-ac-powersave
%{_prefix}/lib/tuned/profiles/server-powersave
%{_prefix}/lib/tuned/profiles/laptop-battery-powersave
%{_prefix}/lib/tuned/profiles/enterprise-storage
%{_prefix}/lib/tuned/profiles/spindown-disk
%{_mandir}/man7/tuned-profiles-compat.7*
%files profiles-postgresql
%{_prefix}/lib/tuned/postgresql
%{_prefix}/lib/tuned/profiles/postgresql
%{_mandir}/man7/tuned-profiles-postgresql.7*
%files profiles-openshift
%{_prefix}/lib/tuned/openshift
%{_prefix}/lib/tuned/openshift-control-plane
%{_prefix}/lib/tuned/openshift-node
%{_prefix}/lib/tuned/profiles/openshift
%{_prefix}/lib/tuned/profiles/openshift-control-plane
%{_prefix}/lib/tuned/profiles/openshift-node
%{_mandir}/man7/tuned-profiles-openshift.7*
%files ppd
@ -570,6 +609,31 @@ fi
%config(noreplace) %{_sysconfdir}/tuned/ppd.conf
%changelog
* Thu Jul 25 2024 Jaroslav Škarvada <jskarvad@redhat.com> - 2.24.0-0.1.rc1
- new release
- rebased tuned to latest upstream
resolves: RHEL-50567
- spec: create /etc/tuned/profiles directory
resolves: RHEL-46721
- hotplug: wait for device initialization
- sap-netweaver: increased vm.max_map_count
- daemon: buffer sighup signal
- added an option to configure profile directories
- api: added commands to dynamically create/destroy instances
- functions: added 'intel_recommended_pstate'
- functions: added 'log' which helps with debugging
- functions: added 'package2cpus' and 'packages2uncores' matchers
- functions: added 'lscpu' to list CPU details
- plugins: added plugin_irq
- plugin_video: added support for amdgpu `panel_power_savings` attribute
- plugin_cpu: check that writes are necessary if they may cause redundant IPIs
- plugin_uncore: allow to configure frequency limits using percent
- amd-pstate: added support for controlling core performance boost
- plugin_scheduler: adjusted error logging in _set_affinity
- plugin_audio: enabled controller reset to fix suspend with NVIDIA
- plugin_irq: fixed expansion of variables
- plugin_irqbalance: switched to IRQBALANCE_BANNED_CPULIST
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.22.1-3
- Bump release for June 2024 mass rebuild