The package rpms/tuned.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/tuned.git/commit/?id=32564e983655...
https://src.fedoraproject.org/cgit/rpms/tuned.git/commit/?id=9a74920c9a80....
Change:
+ExclusiveArch: %{ix86} x86_64
-ExclusiveArch: %{ix86} x86_64
Thanks.
Full change:
============
commit 34637660f3438ac6795377a0d9ff4ddd13d398ce
Author: Jaroslav Škarvada <jskarvad(a)redhat.com>
Date: Wed Jul 4 23:30:44 2018 +0200
Fixed compatibility with python-3.7
Signed-off-by: Jaroslav Škarvada <jskarvad(a)redhat.com>
diff --git a/tuned-2.10.0-python-3.7-fix.patch b/tuned-2.10.0-python-3.7-fix.patch
new file mode 100644
index 0000000..9c90c67
--- /dev/null
+++ b/tuned-2.10.0-python-3.7-fix.patch
@@ -0,0 +1,60 @@
+From f19b7c5713acb76a200811f6531acf2791505cac Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= <jskarvad(a)redhat.com>
+Date: Wed, 4 Jul 2018 23:27:38 +0200
+Subject: [PATCH] Fixed compatibility with python-3.7
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+In python-3.7 async is a keyword, so it cannot be redefined.
+
+Signed-off-by: Jaroslav Škarvada <jskarvad(a)redhat.com>
+---
+ tuned-adm.py | 4 ++--
+ tuned/admin/admin.py | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/tuned-adm.py b/tuned-adm.py
+index ea85c54..1b9623d 100755
+--- a/tuned-adm.py
++++ b/tuned-adm.py
+@@ -98,7 +98,7 @@ if __name__ == "__main__":
+
+ options = vars(args)
+ debug = options.pop("debug")
+- async = options.pop("async")
++ asynco = options.pop("async")
+ timeout = options.pop("timeout")
+ action_name = options.pop("action")
+ log_level = options.pop("loglevel")
+@@ -107,7 +107,7 @@ if __name__ == "__main__":
+ dbus = config.get_bool(consts.CFG_DAEMON, consts.CFG_DEF_DAEMON)
+
+ try:
+- admin = tuned.admin.Admin(dbus, debug, async, timeout, log_level)
++ admin = tuned.admin.Admin(dbus, debug, asynco, timeout, log_level)
+
+ result = admin.action(action_name, **options)
+ except:
+diff --git a/tuned/admin/admin.py b/tuned/admin/admin.py
+index 728af32..3f84413 100644
+--- a/tuned/admin/admin.py
++++ b/tuned/admin/admin.py
+@@ -14,12 +14,12 @@ import threading
+ import logging
+
+ class Admin(object):
+- def __init__(self, dbus = True, debug = False, async = False,
++ def __init__(self, dbus = True, debug = False, asynco = False,
+ timeout = consts.ADMIN_TIMEOUT,
+ log_level = logging.ERROR):
+ self._dbus = dbus
+ self._debug = debug
+- self._async = async
++ self._async = asynco
+ self._timeout = timeout
+ self._cmd = commands(debug)
+ self._profiles_locator = profiles_locator(consts.LOAD_DIRECTORIES)
+--
+2.14.4
+
diff --git a/tuned.spec b/tuned.spec
index 1f53bfd..0dd7492 100644
--- a/tuned.spec
+++ b/tuned.spec
@@ -55,6 +55,7 @@ Requires: util-linux, dbus, polkit
%if 0%{?fedora} > 22 || 0%{?rhel} > 7
Recommends: kernel-tools
%endif
+Patch0: tuned-2.10.0-python-3.7-fix.patch
%description
The tuned package contains a daemon that tunes system settings dynamically.
@@ -199,6 +200,7 @@ It can be also used to fine tune your system for specific scenarios.
%prep
%setup -q -n %{name}-%{version}%{?prerel2}
+%patch0 -p1
%build
commit c4309b362ff8496277ace61b9aa939d8970a995c
Author: Jaroslav Škarvada <jskarvad(a)redhat.com>
Date: Wed Jul 4 23:14:50 2018 +0200
new release
rebased tuned to latest upstream
related: rhbz#1546598
IRQ affinity handled by scheduler plugin
resolves: rhbz#1590937
diff --git a/.gitignore b/.gitignore
index ac2293c..1a6ccce 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1 @@
-tuned-*.tar.bz2
-/tuned-2.9.0.rc1.tar.gz
-/tuned-2.9.0.tar.gz
-/kvm-unit-tests-20171020.tar.gz
+tuned-*.tar.gz
diff --git a/0001-port-realtime-virtual-host-profile-to-Fedora.patch
b/0001-port-realtime-virtual-host-profile-to-Fedora.patch
deleted file mode 100644
index 8398495..0000000
--- a/0001-port-realtime-virtual-host-profile-to-Fedora.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-@@ -, +, @@
----
- profiles/realtime-virtual-host/run-tscdeadline-latency.sh | 4 ++--
- profiles/realtime-virtual-host/script.sh | 2 +-
- 2 files changed, 3 insertions(+), 3 deletions(-)
---- a/profiles/realtime-virtual-host/run-tscdeadline-latency.sh
-+++ a/profiles/realtime-virtual-host/run-tscdeadline-latency.sh
-@@ -1,6 +1,6 @@
- #!/bin/bash
-
--QEMU=/usr/libexec/qemu-kvm
-+QEMU=$(type -P qemu-kvm || echo /usr/libexec/qemu-kvm)
-
- if [ ! -f /sys/module/kvm/parameters/lapic_timer_advance_ns ]; then
- echo "/sys/module/kvm/parameters/lapic_timer_advance_ns not found"
-@@ -14,7 +14,7 @@ for i in `seq 1000 500 7000`; do
- chrt -f 1 taskset -c $1 $QEMU -enable-kvm -device pc-testdev \
- -device isa-debug-exit,iobase=0xf4,iosize=0x4 \
- -display none -serial stdio -device pci-testdev \
-- -kernel /usr/share/qemu-kvm/tscdeadline_latency.flat \
-+ -kernel /usr/share/tuned/tscdeadline_latency.flat \
- -cpu host | grep latency | cut -f 2 -d ":" > $dir/out
-
- A=0
---- a/profiles/realtime-virtual-host/script.sh
-+++ a/profiles/realtime-virtual-host/script.sh
-@@ -26,7 +26,7 @@ start() {
-
-
- if [ -f $ltanfile -a ! -f ./lapic_timer_adv_ns ]; then
-- if [ -f /usr/share/qemu-kvm/tscdeadline_latency.flat ]; then
-+ if [ -f /usr/share/tuned/tscdeadline_latency.flat ]; then
- tempdir=`mktemp -d`
- isolatedcpu=`echo "$TUNED_isolated_cores_expanded" | cut -f 1 -d
","`
- sh ./run-tscdeadline-latency.sh $isolatedcpu > $tempdir/lat.out
---
diff --git a/sources b/sources
index 4fba2c9..2da91ea 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (tuned-2.9.0.tar.gz) =
ece7e2f21cddccc6df6cbd72d88b2368e06ae16975820f29a3a435cf2609679fe539899d7b42a894b9cc70f6a9a007722c450798d532ba16315471c1215d5edf
+SHA512 (tuned-2.10.0.tar.gz) =
e0674533f17ac27cd3647808cda1f51d9905f563521af8cb3ffd1854098d6e2ca1adac82e542e6bdf86cce7e659303464eac50b8823167360783a75843d02a60
diff --git a/tuned-2.8.0-plugin-disk-traceback-fix.patch
b/tuned-2.8.0-plugin-disk-traceback-fix.patch
deleted file mode 100644
index ec75b10..0000000
--- a/tuned-2.8.0-plugin-disk-traceback-fix.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From b776b7420cca949bf1e1e128e2cbbc9348d2345c Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= <olysonek(a)redhat.com>
-Date: Mon, 24 Jul 2017 16:42:28 +0200
-Subject: [PATCH] disk: Fix traceback in dynamic tuning
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Signed-off-by: Ondřej Lysoněk <olysonek(a)redhat.com>
----
- tuned/plugins/plugin_disk.py | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/tuned/plugins/plugin_disk.py b/tuned/plugins/plugin_disk.py
-index f91bd4e..22721d5 100644
---- a/tuned/plugins/plugin_disk.py
-+++ b/tuned/plugins/plugin_disk.py
-@@ -180,6 +180,7 @@ def _instance_update_dynamic(self, instance, device):
- (rc, out) = self._cmd.execute(["hdparm", "-B%d" %
new_power_level, "/dev/%s" % device], no_errors = [errno.ENOENT])
- self._update_errcnt(rc, False)
- elif instance._spindown_change_delayed[device] and self._drive_spinning(device):
-+ new_spindown_level = self._spindown_levels[idle["level"]]
- self._change_spindown(instance, device, new_spindown_level)
-
- log.debug("%s load: read %0.2f, write %0.2f" % (device,
stats["read"], stats["write"]))
diff --git a/tuned.spec b/tuned.spec
index 946769d..1f53bfd 100644
--- a/tuned.spec
+++ b/tuned.spec
@@ -1,4 +1,27 @@
-%global _binaries_in_noarch_packages_terminate_build 0
+%if 0%{?fedora}
+%if 0%{?fedora} > 27
+%bcond_without python3
+%else
+%bcond_with python3
+%endif
+%else
+%if 0%{?rhel} && 0%{?rhel} < 8
+%bcond_with python3
+%else
+%bcond_without python3
+%endif
+%endif
+
+%if %{with python3}
+%global _py python3
+%else
+%{!?python2_sitelib:%global python2_sitelib %{python_sitelib}}
+%if 0%{?rhel} && 0%{?rhel} < 8
+%global _py python
+%else
+%global _py python2
+%endif
+%endif
#%%global prerelease rc
#%%global prereleasenum 2
@@ -8,27 +31,31 @@
Summary: A dynamic adaptive system tuning daemon
Name: tuned
-Version: 2.9.0
-Release: 9%{?prerel1}%{?dist}
+Version: 2.10.0
+Release: 1%{?prerel1}%{?dist}
License: GPLv2+
Source0:
https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prere...
URL:
http://www.tuned-project.org/
BuildArch: noarch
-BuildRequires: python2, systemd, desktop-file-utils
-BuildRequires: gcc-x86_64-linux-gnu
+BuildRequires: systemd, desktop-file-utils
Requires(post): systemd, virt-what
Requires(preun): systemd
Requires(postun): systemd
-Requires: python2-decorator, python2-dbus, python2-gobject-base, python2-pyudev
-Requires: virt-what, python2-configobj, ethtool, gawk, hdparm
-Requires: util-linux, python2-perf, dbus, polkit, python2-linux-procfs
-Requires: python2-schedutils
+BuildRequires: %{_py}, %{_py}-devel
+Requires: %{_py}-decorator, %{_py}-pyudev, %{_py}-configobj
+Requires: %{_py}-schedutils, %{_py}-linux-procfs, %{_py}-perf
+# requires for packages with inconsistent python2/3 names
+%if %{with python3}
+Requires: python3-dbus, python3-gobject-base
+%else
+Requires: dbus-python, pygobject3-base
+%endif
+Requires: virt-what, ethtool, gawk, hdparm
+Requires: util-linux, dbus, polkit
%if 0%{?fedora} > 22 || 0%{?rhel} > 7
Recommends: kernel-tools
%endif
-Patch1: 0001-port-realtime-virtual-host-profile-to-Fedora.patch
-
%description
The tuned package contains a daemon that tunes system settings dynamically.
It does so by monitoring the usage of several system components periodically.
@@ -47,7 +74,13 @@ network and ATA harddisk devices are implemented.
%package gtk
Summary: GTK GUI for tuned
Requires: %{name} = %{version}-%{release}
-Requires: powertop, python2-gobject-base, polkit
+Requires: powertop, polkit
+# requires for packages with inconsistent python2/3 names
+%if %{with python3}
+Requires: python3-gobject-base
+%else
+Requires: pygobject3-base
+%endif
%description gtk
GTK GUI that can control tuned and provides simple profile editor.
@@ -80,6 +113,13 @@ Requires: %{name} = %{version}
%description profiles-sap
Additional tuned profile(s) targeted to SAP NetWeaver loads.
+%package profiles-mssql
+Summary: Additional tuned profile(s) for MS SQL Server
+Requires: %{name} = %{version}
+
+%description profiles-mssql
+Additional tuned profile(s) for MS SQL Server.
+
%package profiles-oracle
Summary: Additional tuned profile(s) targeted to Oracle loads
Requires: %{name} = %{version}
@@ -122,8 +162,12 @@ Additional tuned profile(s) targeted to Network Function
Virtualization (NFV) gu
Summary: Additional tuned profile(s) targeted to Network Function Virtualization (NFV)
host
Requires: %{name} = %{version}
Requires: %{name}-profiles-realtime = %{version}
-Recommends: tuned-profiles-nfv-host-bin
Requires: tuna
+%if 0%{?rhel} == 7
+Requires: qemu-kvm-tools-rhev
+%else
+Recommends: tuned-profiles-nfv-host-bin
+%endif
%description profiles-nfv-host
Additional tuned profile(s) targeted to Network Function Virtualization (NFV) host.
@@ -155,12 +199,16 @@ It can be also used to fine tune your system for specific
scenarios.
%prep
%setup -q -n %{name}-%{version}%{?prerel2}
-%patch1 -p1
%build
%install
-make install DESTDIR=%{buildroot} DOCDIR=%{docdir}
+make install DESTDIR=%{buildroot} DOCDIR=%{docdir} \
+%if %{with python3}
+ PYTHON=python3
+%else
+ PYTHON=python2
+%endif
%if 0%{?rhel}
sed -i 's/\(dynamic_tuning[ \t]*=[ \t]*\).*/\10/'
%{buildroot}%{_sysconfdir}/tuned/tuned-main.conf
%endif
@@ -181,8 +229,6 @@ touch %{buildroot}%{_sysconfdir}/modprobe.d/kvm.rt.tuned.conf
# validate desktop file
desktop-file-validate %{buildroot}%{_datadir}/applications/tuned-gui.desktop
-mkdir -p %{buildroot}%{_sysconfdir}/tuned/recommend.d
-
%post
%systemd_post tuned.service
@@ -243,8 +289,13 @@ fi
%exclude %{docdir}/README.NFV
%doc %{docdir}
%{_datadir}/bash-completion/completions/tuned-adm
-%exclude %{python_sitelib}/tuned/gtk
-%{python_sitelib}/tuned
+%if %{with python3}
+%exclude %{python3_sitelib}/tuned/gtk
+%{python3_sitelib}/tuned
+%else
+%exclude %{python2_sitelib}/tuned/gtk
+%{python2_sitelib}/tuned
+%endif
%{_sbindir}/tuned
%{_sbindir}/tuned-adm
%exclude %{_sysconfdir}/tuned/realtime-variables.conf
@@ -262,6 +313,7 @@ fi
%exclude %{_prefix}/lib/tuned/sap-netweaver
%exclude %{_prefix}/lib/tuned/sap-hana
%exclude %{_prefix}/lib/tuned/sap-hana-vmware
+%exclude %{_prefix}/lib/tuned/mssql
%exclude %{_prefix}/lib/tuned/oracle
%exclude %{_prefix}/lib/tuned/atomic-host
%exclude %{_prefix}/lib/tuned/atomic-guest
@@ -296,7 +348,11 @@ fi
%files gtk
%defattr(-,root,root,-)
%{_sbindir}/tuned-gui
-%{python_sitelib}/tuned/gtk
+%if %{with python3}
+%{python3_sitelib}/tuned/gtk
+%else
+%{python2_sitelib}/tuned/gtk
+%endif
%{_datadir}/tuned/ui
%{_datadir}/polkit-1/actions/com.redhat.tuned.gui.policy
%{_datadir}/icons/hicolor/scalable/apps/tuned.svg
@@ -333,6 +389,11 @@ fi
%{_prefix}/lib/tuned/sap-hana-vmware
%{_mandir}/man7/tuned-profiles-sap-hana.7*
+%files profiles-mssql
+%defattr(-,root,root,-)
+%{_prefix}/lib/tuned/mssql
+%{_mandir}/man7/tuned-profiles-mssql.7*
+
%files profiles-oracle
%defattr(-,root,root,-)
%{_prefix}/lib/tuned/oracle
@@ -384,6 +445,44 @@ fi
%{_mandir}/man7/tuned-profiles-compat.7*
%changelog
+* Wed Jul 4 2018 Jaroslav Škarvada <jskarvad(a)redhat.com> - 2.10.0-1
+- new release
+ - rebased tuned to latest upstream
+ related: rhbz#1546598
+ - IRQ affinity handled by scheduler plugin
+ resolves: rhbz#1590937
+
+* Mon Jun 11 2018 Jaroslav Škarvada <jskarvad(a)redhat.com> - 2.10.0-0.1.rc1
+- new release
+ - rebased tuned to latest upstream
+ resolves: rhbz#1546598
+ - script: show stderr output in the log
+ resolves: rhbz#1536476
+ - realtime-virtual-host: script.sh: add error checking
+ resolves: rhbz#1461509
+ - man: improved tuned-profiles-cpu-partitioning.7
+ resolves: rhbz#1548148
+ - bootloader: check if grub2_cfg_file_name is None in _remove_grub2_tuning()
+ resolves: rhbz#1571403
+ - plugin_scheduler: whitelist/blacklist processed also for thread names
+ resolves: rhbz#1512295
+ - bootloader: patch all GRUB2 config files
+ resolves: rhbz#1556990
+ - profiles: added mssql profile
+ resolves: rhbz#1442122
+ - tuned-adm: print log excerpt when changing profile
+ resolves: rhbz#1538745
+ - cpu-partitioning: use no_balance_cores instead of no_rebalance_cores
+ resolves: rhbz#1550573
+ - sysctl: support assignment modifiers as other plugins do
+ resolves: rhbz#1564092
+ - oracle: fixed ip_local_port_range parity warning
+ resolves: rhbz#1527219
+ - Fix verifying cpumask on systems with more than 32 cores
+ resolves: rhbz#1528368
+ - oracle: updated the profile to be in sync with KCS 39188
+ resolves: rhbz#1447323
+
* Fri Mar 23 2018 Jaroslav Škarvada <jskarvad(a)redhat.com> - 2.9.0-9
- Used weak deps for tuned-profiles-nfv-host-bin
commit 2894163119bd01dcca34b9c4c07b7247e0786bbb
Author: Jaroslav Škarvada <jskarvad(a)redhat.com>
Date: Fri Mar 23 18:29:28 2018 +0100
Used weak deps for tuned-profiles-nfv-host-bin
diff --git a/tuned.spec b/tuned.spec
index c899723..946769d 100644
--- a/tuned.spec
+++ b/tuned.spec
@@ -9,7 +9,7 @@
Summary: A dynamic adaptive system tuning daemon
Name: tuned
Version: 2.9.0
-Release: 8%{?prerel1}%{?dist}
+Release: 9%{?prerel1}%{?dist}
License: GPLv2+
Source0:
https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prere...
URL:
http://www.tuned-project.org/
@@ -122,7 +122,7 @@ Additional tuned profile(s) targeted to Network Function
Virtualization (NFV) gu
Summary: Additional tuned profile(s) targeted to Network Function Virtualization (NFV)
host
Requires: %{name} = %{version}
Requires: %{name}-profiles-realtime = %{version}
-Requires: tuned-profiles-nfv-host-bin
+Recommends: tuned-profiles-nfv-host-bin
Requires: tuna
%description profiles-nfv-host
@@ -384,6 +384,9 @@ fi
%{_mandir}/man7/tuned-profiles-compat.7*
%changelog
+* Fri Mar 23 2018 Jaroslav Škarvada <jskarvad(a)redhat.com> - 2.9.0-9
+- Used weak deps for tuned-profiles-nfv-host-bin
+
* Wed Mar 21 2018 Jaroslav Škarvada <jskarvad(a)redhat.com> - 2.9.0-8
- Dropped tuned-profiles-nfv-host-bin, now provided by standalone package
commit f23680e975cf6e8694e5207ecd43fef1ee01b97b
Author: Jaroslav Škarvada <jskarvad(a)redhat.com>
Date: Wed Mar 21 10:31:28 2018 +0100
Dropped tuned-profiles-nfv-host-bin, now provided by standalone package
diff --git a/sources b/sources
index 6ee7356..4fba2c9 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
SHA512 (tuned-2.9.0.tar.gz) =
ece7e2f21cddccc6df6cbd72d88b2368e06ae16975820f29a3a435cf2609679fe539899d7b42a894b9cc70f6a9a007722c450798d532ba16315471c1215d5edf
-SHA512 (kvm-unit-tests-20171020.tar.gz) =
79cfd45d051b8fca87ff990c9ecaeddd85ffc7ebecd4839d508eabb1df775d4109c27c0b85beb7b201e6d26982cd1c2120abc14f1deb8916aa392db3f86d7bd9
diff --git a/tuned.spec b/tuned.spec
index 66080d9..c899723 100644
--- a/tuned.spec
+++ b/tuned.spec
@@ -9,10 +9,9 @@
Summary: A dynamic adaptive system tuning daemon
Name: tuned
Version: 2.9.0
-Release: 7%{?prerel1}%{?dist}
+Release: 8%{?prerel1}%{?dist}
License: GPLv2+
Source0:
https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prere...
-Source1:
https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git/snapshot/kvm-u...
URL:
http://www.tuned-project.org/
BuildArch: noarch
BuildRequires: python2, systemd, desktop-file-utils
@@ -123,19 +122,12 @@ Additional tuned profile(s) targeted to Network Function
Virtualization (NFV) gu
Summary: Additional tuned profile(s) targeted to Network Function Virtualization (NFV)
host
Requires: %{name} = %{version}
Requires: %{name}-profiles-realtime = %{version}
-Recommends: %{name}-profiles-nfv-host-bin = %{version}
+Requires: tuned-profiles-nfv-host-bin
Requires: tuna
%description profiles-nfv-host
Additional tuned profile(s) targeted to Network Function Virtualization (NFV) host.
-%package profiles-nfv-host-bin
-Summary: Binaries that are needed for the Network Function Virtualization (NFV) host
tuned profile
-Requires: %{name} = %{version}
-
-%description profiles-nfv-host-bin
-Binaries that are needed for the Network Function Virtualization (NFV) host tuned
profile.
-
# this is kept for backward compatibility, it should be dropped for RHEL-8
%package profiles-nfv
Summary: Additional tuned profile(s) targeted to Network Function Virtualization (NFV)
@@ -164,13 +156,8 @@ It can be also used to fine tune your system for specific scenarios.
%prep
%setup -q -n %{name}-%{version}%{?prerel2}
%patch1 -p1
-cd .. && tar xf %{SOURCE1}
%build
-cd ../kvm-unit-tests-20171020
-./configure --cross-prefix=x86_64-linux-gnu- --endian=little
-make x86/tscdeadline_latency.flat
-x86_64-linux-gnu-strip x86/tscdeadline_latency.flat
%install
make install DESTDIR=%{buildroot} DOCDIR=%{docdir}
@@ -184,8 +171,6 @@ mkdir -p %{buildroot}%{_datadir}/tuned/grub2
mv %{buildroot}%{_sysconfdir}/grub.d/00_tuned
%{buildroot}%{_datadir}/tuned/grub2/00_tuned
rmdir %{buildroot}%{_sysconfdir}/grub.d
-install -m 0644 ../kvm-unit-tests-20171020/x86/tscdeadline_latency.flat
%{buildroot}%{_datadir}/tuned
-
# ghost for persistent storage
mkdir -p %{buildroot}%{_var}/lib/tuned
@@ -377,10 +362,6 @@ fi
%{_prefix}/lib/tuned/realtime-virtual-host
%{_mandir}/man7/tuned-profiles-nfv-host.7*
-%files profiles-nfv-host-bin
-%defattr(-,root,root,-)
-%{_datadir}/tuned/tscdeadline_latency.flat
-
%files profiles-nfv
%defattr(-,root,root,-)
%doc %{docdir}/README.NFV
@@ -403,6 +384,9 @@ fi
%{_mandir}/man7/tuned-profiles-compat.7*
%changelog
+* Wed Mar 21 2018 Jaroslav Škarvada <jskarvad(a)redhat.com> - 2.9.0-8
+- Dropped tuned-profiles-nfv-host-bin, now provided by standalone package
+
* Fri Mar 2 2018 Jaroslav Škarvada <jskarvad(a)redhat.com> - 2.9.0-7
- Dropped exlusive arch in tuned-profiles-nfv-host-bin (it seems it
blocked all tuned packages on non x86 architectures)
commit 53b0c364cea30770664bd2855edb64966dc7f8d5
Author: Jaroslav Škarvada <jskarvad(a)redhat.com>
Date: Fri Mar 2 22:38:01 2018 +0100
Added explicit endianness to the cross compiler
Signed-off-by: Jaroslav Škarvada <jskarvad(a)redhat.com>
diff --git a/tuned.spec b/tuned.spec
index fea5baf..66080d9 100644
--- a/tuned.spec
+++ b/tuned.spec
@@ -130,7 +130,7 @@ Requires: tuna
Additional tuned profile(s) targeted to Network Function Virtualization (NFV) host.
%package profiles-nfv-host-bin
-Summary: Binaries that are needed for the Network Function Virtualization (NFV) host
tuned profile.
+Summary: Binaries that are needed for the Network Function Virtualization (NFV) host
tuned profile
Requires: %{name} = %{version}
%description profiles-nfv-host-bin
@@ -168,7 +168,7 @@ cd .. && tar xf %{SOURCE1}
%build
cd ../kvm-unit-tests-20171020
-./configure --cross-prefix=x86_64-linux-gnu-
+./configure --cross-prefix=x86_64-linux-gnu- --endian=little
make x86/tscdeadline_latency.flat
x86_64-linux-gnu-strip x86/tscdeadline_latency.flat
commit 9a74920c9a80e830331703751194ced770fcf61f
Author: Jaroslav Škarvada <jskarvad(a)redhat.com>
Date: Fri Mar 2 22:08:39 2018 +0100
Dropped exlusive arch in tuned-profiles-nfv-host-bin (it seems it
blocked all tuned packages on non x86 architectures)
diff --git a/tuned.spec b/tuned.spec
index 88b2c6d..fea5baf 100644
--- a/tuned.spec
+++ b/tuned.spec
@@ -9,7 +9,7 @@
Summary: A dynamic adaptive system tuning daemon
Name: tuned
Version: 2.9.0
-Release: 6%{?prerel1}%{?dist}
+Release: 7%{?prerel1}%{?dist}
License: GPLv2+
Source0:
https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prere...
Source1:
https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git/snapshot/kvm-u...
@@ -132,7 +132,6 @@ Additional tuned profile(s) targeted to Network Function
Virtualization (NFV) ho
%package profiles-nfv-host-bin
Summary: Binaries that are needed for the Network Function Virtualization (NFV) host
tuned profile.
Requires: %{name} = %{version}
-ExclusiveArch: %{ix86} x86_64
%description profiles-nfv-host-bin
Binaries that are needed for the Network Function Virtualization (NFV) host tuned
profile.
@@ -404,6 +403,10 @@ fi
%{_mandir}/man7/tuned-profiles-compat.7*
%changelog
+* Fri Mar 2 2018 Jaroslav Škarvada <jskarvad(a)redhat.com> - 2.9.0-7
+- Dropped exlusive arch in tuned-profiles-nfv-host-bin (it seems it
+ blocked all tuned packages on non x86 architectures)
+
* Fri Feb 09 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.9.0-6
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
commit ae92b83545b2d6942e68342097b462f83aa2d3fc
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Fri Feb 9 19:42:49 2018 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/tuned.spec b/tuned.spec
index 9049da0..88b2c6d 100644
--- a/tuned.spec
+++ b/tuned.spec
@@ -9,7 +9,7 @@
Summary: A dynamic adaptive system tuning daemon
Name: tuned
Version: 2.9.0
-Release: 5%{?prerel1}%{?dist}
+Release: 6%{?prerel1}%{?dist}
License: GPLv2+
Source0:
https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prere...
Source1:
https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git/snapshot/kvm-u...
@@ -404,6 +404,9 @@ fi
%{_mandir}/man7/tuned-profiles-compat.7*
%changelog
+* Fri Feb 09 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.9.0-6
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
* Mon Feb 05 2018 Iryna Shcherbina <ishcherb(a)redhat.com> - 2.9.0-5
- Update Python 2 dependency declarations to new packaging standards
(See
https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
commit 51683c39e334456c74c18e52c85a802995061c15
Author: Iryna Shcherbina <shcherbina.iryna(a)gmail.com>
Date: Mon Feb 5 01:29:05 2018 +0100
Update Python 2 dependency declarations to new packaging standards
diff --git a/tuned.spec b/tuned.spec
index 3dd4f65..9049da0 100644
--- a/tuned.spec
+++ b/tuned.spec
@@ -9,21 +9,21 @@
Summary: A dynamic adaptive system tuning daemon
Name: tuned
Version: 2.9.0
-Release: 4%{?prerel1}%{?dist}
+Release: 5%{?prerel1}%{?dist}
License: GPLv2+
Source0:
https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prere...
Source1:
https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git/snapshot/kvm-u...
URL:
http://www.tuned-project.org/
BuildArch: noarch
-BuildRequires: python, systemd, desktop-file-utils
+BuildRequires: python2, systemd, desktop-file-utils
BuildRequires: gcc-x86_64-linux-gnu
Requires(post): systemd, virt-what
Requires(preun): systemd
Requires(postun): systemd
-Requires: python-decorator, dbus-python, pygobject3-base, python-pyudev
-Requires: virt-what, python-configobj, ethtool, gawk, hdparm
-Requires: util-linux, python2-perf, dbus, polkit, python-linux-procfs
-Requires: python-schedutils
+Requires: python2-decorator, python2-dbus, python2-gobject-base, python2-pyudev
+Requires: virt-what, python2-configobj, ethtool, gawk, hdparm
+Requires: util-linux, python2-perf, dbus, polkit, python2-linux-procfs
+Requires: python2-schedutils
%if 0%{?fedora} > 22 || 0%{?rhel} > 7
Recommends: kernel-tools
%endif
@@ -48,7 +48,7 @@ network and ATA harddisk devices are implemented.
%package gtk
Summary: GTK GUI for tuned
Requires: %{name} = %{version}-%{release}
-Requires: powertop, pygobject3-base, polkit
+Requires: powertop, python2-gobject-base, polkit
%description gtk
GTK GUI that can control tuned and provides simple profile editor.
@@ -404,6 +404,10 @@ fi
%{_mandir}/man7/tuned-profiles-compat.7*
%changelog
+* Mon Feb 05 2018 Iryna Shcherbina <ishcherb(a)redhat.com> - 2.9.0-5
+- Update Python 2 dependency declarations to new packaging standards
+ (See
https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
+
* Wed Jan 31 2018 Jaroslav Škarvada <jskarvad(a)redhat.com> - 2.9.0-4
- Fixed perf requirement, explicitly require python2-perf
commit a7b8741c9b351331c6f5e1eaaa82c24a927c4465
Author: Jaroslav Škarvada <jskarvad(a)redhat.com>
Date: Wed Jan 31 10:43:51 2018 +0100
Fixed perf requirement, explicitly require python2-perf
diff --git a/tuned.spec b/tuned.spec
index 0b1d9f7..3dd4f65 100644
--- a/tuned.spec
+++ b/tuned.spec
@@ -9,7 +9,7 @@
Summary: A dynamic adaptive system tuning daemon
Name: tuned
Version: 2.9.0
-Release: 3%{?prerel1}%{?dist}
+Release: 4%{?prerel1}%{?dist}
License: GPLv2+
Source0:
https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prere...
Source1:
https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git/snapshot/kvm-u...
@@ -22,7 +22,7 @@ Requires(preun): systemd
Requires(postun): systemd
Requires: python-decorator, dbus-python, pygobject3-base, python-pyudev
Requires: virt-what, python-configobj, ethtool, gawk, hdparm
-Requires: util-linux, python-perf, dbus, polkit, python-linux-procfs
+Requires: util-linux, python2-perf, dbus, polkit, python-linux-procfs
Requires: python-schedutils
%if 0%{?fedora} > 22 || 0%{?rhel} > 7
Recommends: kernel-tools
@@ -404,6 +404,9 @@ fi
%{_mandir}/man7/tuned-profiles-compat.7*
%changelog
+* Wed Jan 31 2018 Jaroslav Škarvada <jskarvad(a)redhat.com> - 2.9.0-4
+- Fixed perf requirement, explicitly require python2-perf
+
* Sat Jan 06 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 2.9.0-3
- Remove obsolete scriptlets
commit caf756f64aef1ccdbc35f240c4e1e1010115c7a1
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Sat Jan 6 10:23:33 2018 +0100
Remove obsolete scriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
diff --git a/tuned.spec b/tuned.spec
index 8afd908..0b1d9f7 100644
--- a/tuned.spec
+++ b/tuned.spec
@@ -9,7 +9,7 @@
Summary: A dynamic adaptive system tuning daemon
Name: tuned
Version: 2.9.0
-Release: 2%{?prerel1}%{?dist}
+Release: 3%{?prerel1}%{?dist}
License: GPLv2+
Source0:
https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prere...
Source1:
https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git/snapshot/kvm-u...
@@ -252,21 +252,6 @@ if [ -d %{_sysconfdir}/grub.d ]; then
fi
-%post gtk
-/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
-
-
-%postun gtk
-if [ $1 -eq 0 ] ; then
- /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
- /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
-fi
-
-
-%posttrans gtk
-/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
-
-
%files
%defattr(-,root,root,-)
%exclude %{docdir}/README.utils
@@ -419,6 +404,9 @@ fi
%{_mandir}/man7/tuned-profiles-compat.7*
%changelog
+* Sat Jan 06 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 2.9.0-3
+- Remove obsolete scriptlets
+
* Mon Nov 13 2017 Jaroslav Škarvada <jskarvad(a)redhat.com> - 2.9.0-2
- added tscdeadline_latency.flat benchmark
resolves: rhbz#1504680
commit 32564e9836551ef8fc08af2b227f86b4d608f643
Author: Jaroslav Škarvada <jskarvad(a)redhat.com>
Date: Mon Nov 13 16:25:24 2017 +0100
added tscdeadline_latency.flat benchmark
resolves: rhbz#1504680
diff --git a/.gitignore b/.gitignore
index d4d489c..ac2293c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
tuned-*.tar.bz2
/tuned-2.9.0.rc1.tar.gz
/tuned-2.9.0.tar.gz
+/kvm-unit-tests-20171020.tar.gz
diff --git a/0001-port-realtime-virtual-host-profile-to-Fedora.patch
b/0001-port-realtime-virtual-host-profile-to-Fedora.patch
new file mode 100644
index 0000000..8398495
--- /dev/null
+++ b/0001-port-realtime-virtual-host-profile-to-Fedora.patch
@@ -0,0 +1,36 @@
+@@ -, +, @@
+---
+ profiles/realtime-virtual-host/run-tscdeadline-latency.sh | 4 ++--
+ profiles/realtime-virtual-host/script.sh | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+--- a/profiles/realtime-virtual-host/run-tscdeadline-latency.sh
++++ a/profiles/realtime-virtual-host/run-tscdeadline-latency.sh
+@@ -1,6 +1,6 @@
+ #!/bin/bash
+
+-QEMU=/usr/libexec/qemu-kvm
++QEMU=$(type -P qemu-kvm || echo /usr/libexec/qemu-kvm)
+
+ if [ ! -f /sys/module/kvm/parameters/lapic_timer_advance_ns ]; then
+ echo "/sys/module/kvm/parameters/lapic_timer_advance_ns not found"
+@@ -14,7 +14,7 @@ for i in `seq 1000 500 7000`; do
+ chrt -f 1 taskset -c $1 $QEMU -enable-kvm -device pc-testdev \
+ -device isa-debug-exit,iobase=0xf4,iosize=0x4 \
+ -display none -serial stdio -device pci-testdev \
+- -kernel /usr/share/qemu-kvm/tscdeadline_latency.flat \
++ -kernel /usr/share/tuned/tscdeadline_latency.flat \
+ -cpu host | grep latency | cut -f 2 -d ":" > $dir/out
+
+ A=0
+--- a/profiles/realtime-virtual-host/script.sh
++++ a/profiles/realtime-virtual-host/script.sh
+@@ -26,7 +26,7 @@ start() {
+
+
+ if [ -f $ltanfile -a ! -f ./lapic_timer_adv_ns ]; then
+- if [ -f /usr/share/qemu-kvm/tscdeadline_latency.flat ]; then
++ if [ -f /usr/share/tuned/tscdeadline_latency.flat ]; then
+ tempdir=`mktemp -d`
+ isolatedcpu=`echo "$TUNED_isolated_cores_expanded" | cut -f 1 -d
","`
+ sh ./run-tscdeadline-latency.sh $isolatedcpu > $tempdir/lat.out
+--
diff --git a/sources b/sources
index 4fba2c9..6ee7356 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
SHA512 (tuned-2.9.0.tar.gz) =
ece7e2f21cddccc6df6cbd72d88b2368e06ae16975820f29a3a435cf2609679fe539899d7b42a894b9cc70f6a9a007722c450798d532ba16315471c1215d5edf
+SHA512 (kvm-unit-tests-20171020.tar.gz) =
79cfd45d051b8fca87ff990c9ecaeddd85ffc7ebecd4839d508eabb1df775d4109c27c0b85beb7b201e6d26982cd1c2120abc14f1deb8916aa392db3f86d7bd9
diff --git a/tuned.spec b/tuned.spec
index 6d4a8e3..8afd908 100644
--- a/tuned.spec
+++ b/tuned.spec
@@ -1,3 +1,5 @@
+%global _binaries_in_noarch_packages_terminate_build 0
+
#%%global prerelease rc
#%%global prereleasenum 2
@@ -7,12 +9,14 @@
Summary: A dynamic adaptive system tuning daemon
Name: tuned
Version: 2.9.0
-Release: 1%{?prerel1}%{?dist}
+Release: 2%{?prerel1}%{?dist}
License: GPLv2+
-Source:
https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prere...
+Source0:
https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prere...
+Source1:
https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git/snapshot/kvm-u...
URL:
http://www.tuned-project.org/
BuildArch: noarch
BuildRequires: python, systemd, desktop-file-utils
+BuildRequires: gcc-x86_64-linux-gnu
Requires(post): systemd, virt-what
Requires(preun): systemd
Requires(postun): systemd
@@ -24,6 +28,8 @@ Requires: python-schedutils
Recommends: kernel-tools
%endif
+Patch1: 0001-port-realtime-virtual-host-profile-to-Fedora.patch
+
%description
The tuned package contains a daemon that tunes system settings dynamically.
It does so by monitoring the usage of several system components periodically.
@@ -117,12 +123,20 @@ Additional tuned profile(s) targeted to Network Function
Virtualization (NFV) gu
Summary: Additional tuned profile(s) targeted to Network Function Virtualization (NFV)
host
Requires: %{name} = %{version}
Requires: %{name}-profiles-realtime = %{version}
+Recommends: %{name}-profiles-nfv-host-bin = %{version}
Requires: tuna
-Recommends: qemu-kvm-tools-rhev
%description profiles-nfv-host
Additional tuned profile(s) targeted to Network Function Virtualization (NFV) host.
+%package profiles-nfv-host-bin
+Summary: Binaries that are needed for the Network Function Virtualization (NFV) host
tuned profile.
+Requires: %{name} = %{version}
+ExclusiveArch: %{ix86} x86_64
+
+%description profiles-nfv-host-bin
+Binaries that are needed for the Network Function Virtualization (NFV) host tuned
profile.
+
# this is kept for backward compatibility, it should be dropped for RHEL-8
%package profiles-nfv
Summary: Additional tuned profile(s) targeted to Network Function Virtualization (NFV)
@@ -150,10 +164,14 @@ It can be also used to fine tune your system for specific
scenarios.
%prep
%setup -q -n %{name}-%{version}%{?prerel2}
-
+%patch1 -p1
+cd .. && tar xf %{SOURCE1}
%build
-
+cd ../kvm-unit-tests-20171020
+./configure --cross-prefix=x86_64-linux-gnu-
+make x86/tscdeadline_latency.flat
+x86_64-linux-gnu-strip x86/tscdeadline_latency.flat
%install
make install DESTDIR=%{buildroot} DOCDIR=%{docdir}
@@ -167,6 +185,8 @@ mkdir -p %{buildroot}%{_datadir}/tuned/grub2
mv %{buildroot}%{_sysconfdir}/grub.d/00_tuned
%{buildroot}%{_datadir}/tuned/grub2/00_tuned
rmdir %{buildroot}%{_sysconfdir}/grub.d
+install -m 0644 ../kvm-unit-tests-20171020/x86/tscdeadline_latency.flat
%{buildroot}%{_datadir}/tuned
+
# ghost for persistent storage
mkdir -p %{buildroot}%{_var}/lib/tuned
@@ -373,6 +393,10 @@ fi
%{_prefix}/lib/tuned/realtime-virtual-host
%{_mandir}/man7/tuned-profiles-nfv-host.7*
+%files profiles-nfv-host-bin
+%defattr(-,root,root,-)
+%{_datadir}/tuned/tscdeadline_latency.flat
+
%files profiles-nfv
%defattr(-,root,root,-)
%doc %{docdir}/README.NFV
@@ -395,6 +419,10 @@ fi
%{_mandir}/man7/tuned-profiles-compat.7*
%changelog
+* Mon Nov 13 2017 Jaroslav Škarvada <jskarvad(a)redhat.com> - 2.9.0-2
+- added tscdeadline_latency.flat benchmark
+ resolves: rhbz#1504680
+
* Sun Oct 29 2017 Jaroslav Škarvada <jskarvad(a)redhat.com> - 2.9.0-1
- new release
- rebased tuned to latest upstream