2009-03-03 09:56:17 +00:00
|
|
|
Summary: A dynamic adaptive system tuning daemon
|
|
|
|
Name: tuned
|
2013-03-19 15:47:24 +00:00
|
|
|
Version: 2.2.2
|
2013-07-25 16:41:00 +00:00
|
|
|
Release: 2%{?dist}
|
2012-12-03 10:39:22 +00:00
|
|
|
License: GPLv2+
|
2012-12-06 10:15:57 +00:00
|
|
|
Source: https://fedorahosted.org/releases/t/u/tuned/tuned-%{version}.tar.bz2
|
2009-09-23 10:53:48 +00:00
|
|
|
URL: https://fedorahosted.org/tuned/
|
2009-03-03 09:56:17 +00:00
|
|
|
BuildArch: noarch
|
2013-03-01 11:20:24 +00:00
|
|
|
BuildRequires: python, systemd
|
|
|
|
Requires(post): systemd, virt-what
|
|
|
|
Requires(preun): systemd
|
|
|
|
Requires(postun): systemd
|
2013-07-25 16:41:00 +00:00
|
|
|
Requires: python-decorator, dbus-python, pygobject3-base, python-pyudev
|
2013-03-01 11:20:24 +00:00
|
|
|
Requires: virt-what, python-configobj, ethtool
|
2013-07-25 16:41:00 +00:00
|
|
|
Patch0: tuned-2.2.2-pygobject-base.patch
|
2012-03-20 13:34:25 +00:00
|
|
|
|
2009-03-03 09:56:17 +00:00
|
|
|
%description
|
|
|
|
The tuned package contains a daemon that tunes system settings dynamically.
|
|
|
|
It does so by monitoring the usage of several system components periodically.
|
|
|
|
Based on that information components will then be put into lower or higher
|
|
|
|
power saving modes to adapt to the current usage. Currently only ethernet
|
|
|
|
network and ATA harddisk devices are implemented.
|
|
|
|
|
|
|
|
%package utils
|
2012-10-10 21:28:25 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Summary: Various tuned utilities
|
2013-03-01 11:20:24 +00:00
|
|
|
Requires: powertop
|
2012-10-10 21:28:25 +00:00
|
|
|
|
|
|
|
%description utils
|
|
|
|
This package contains utilities that can help you to fine tune your
|
|
|
|
system and manage tuned profiles.
|
|
|
|
|
|
|
|
%package utils-systemtap
|
2009-03-03 09:56:17 +00:00
|
|
|
Summary: Disk and net statistic monitoring systemtap scripts
|
2012-10-10 21:28:25 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2009-03-06 09:44:59 +00:00
|
|
|
Requires: systemtap
|
2009-03-03 09:56:17 +00:00
|
|
|
|
2012-10-10 21:28:25 +00:00
|
|
|
%description utils-systemtap
|
|
|
|
This package contains several systemtap scripts to allow detailed
|
2009-03-03 09:56:17 +00:00
|
|
|
manual monitoring of the system. Instead of the typical IO/sec it collects
|
|
|
|
minimal, maximal and average time between operations to be able to
|
|
|
|
identify applications that behave power inefficient (many small operations
|
|
|
|
instead of fewer large ones).
|
|
|
|
|
2012-03-30 12:43:02 +00:00
|
|
|
%package profiles-compat
|
|
|
|
Summary: Additional tuned profiles mainly for backward compatibility with tuned 1.0
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description profiles-compat
|
|
|
|
Additional tuned profiles mainly for backward compatibility with tuned 1.0.
|
|
|
|
It can be also used to fine tune your system for specific scenarios.
|
|
|
|
|
2009-03-03 09:56:17 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2012-10-10 21:28:25 +00:00
|
|
|
|
2013-07-25 17:26:55 +00:00
|
|
|
%patch0 -p1
|
2009-03-03 09:56:17 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
2012-03-30 12:43:02 +00:00
|
|
|
|
2009-03-03 09:56:17 +00:00
|
|
|
%install
|
2013-07-25 17:26:55 +00:00
|
|
|
make install DESTDIR=%{buildroot} VERSIONED_NAME=tuned
|
2010-11-29 11:16:30 +00:00
|
|
|
|
2009-03-03 09:56:17 +00:00
|
|
|
|
|
|
|
%post
|
2013-03-01 11:20:24 +00:00
|
|
|
%systemd_post tuned.service
|
2009-03-03 09:56:17 +00:00
|
|
|
|
2012-12-03 10:39:22 +00:00
|
|
|
# try to autodetect the best profile for the system in case there is none preset
|
|
|
|
if [ ! -f /etc/tuned/active_profile -o -z "`cat /etc/tuned/active_profile 2>/dev/null`" ]
|
|
|
|
then
|
|
|
|
PROFILE=`/usr/sbin/tuned-adm recommend 2>/dev/null`
|
|
|
|
[ "$PROFILE" ] || PROFILE=balanced
|
|
|
|
/usr/sbin/tuned-adm profile "$PROFILE" 2>/dev/null || echo -n "$PROFILE" > /etc/tuned/active_profile
|
|
|
|
fi
|
|
|
|
|
|
|
|
# convert active_profile from full path to name (if needed)
|
|
|
|
sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile
|
2012-03-20 13:01:13 +00:00
|
|
|
|
2013-03-01 11:20:24 +00:00
|
|
|
|
2012-03-30 12:43:02 +00:00
|
|
|
%preun
|
2013-03-01 11:20:24 +00:00
|
|
|
%systemd_preun tuned.service
|
2009-03-03 09:56:17 +00:00
|
|
|
|
2012-03-30 12:43:02 +00:00
|
|
|
|
2009-03-03 09:56:17 +00:00
|
|
|
%postun
|
2013-03-01 11:20:24 +00:00
|
|
|
%systemd_postun_with_restart tuned.service
|
2009-03-03 09:56:17 +00:00
|
|
|
|
2012-03-30 12:43:02 +00:00
|
|
|
|
|
|
|
%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 || :
|
|
|
|
|
|
|
|
|
2009-03-03 09:56:17 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2012-03-30 12:43:02 +00:00
|
|
|
%doc AUTHORS
|
|
|
|
%doc COPYING
|
|
|
|
%doc README
|
|
|
|
%doc doc/TIPS.txt
|
2010-07-13 18:32:43 +00:00
|
|
|
%{_sysconfdir}/bash_completion.d
|
2012-03-30 12:43:02 +00:00
|
|
|
%{python_sitelib}/tuned
|
2009-03-03 09:56:17 +00:00
|
|
|
%{_sbindir}/tuned
|
2009-08-04 15:43:24 +00:00
|
|
|
%{_sbindir}/tuned-adm
|
2012-03-30 12:43:02 +00:00
|
|
|
%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
|
|
|
|
%{_prefix}/lib/tuned
|
2012-12-06 10:15:57 +00:00
|
|
|
%dir %{_sysconfdir}/tuned
|
2012-03-30 12:43:02 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/tuned/active_profile
|
2010-11-29 11:16:30 +00:00
|
|
|
%{_sysconfdir}/tmpfiles.d
|
2012-10-10 21:28:25 +00:00
|
|
|
%{_sysconfdir}/dbus-1/system.d/com.redhat.tuned.conf
|
2012-03-20 13:01:13 +00:00
|
|
|
%{_unitdir}/tuned.service
|
2012-03-30 12:43:02 +00:00
|
|
|
%dir %{_localstatedir}/log/tuned
|
2012-12-03 10:39:22 +00:00
|
|
|
%dir /run/tuned
|
2012-03-30 12:43:02 +00:00
|
|
|
%{_mandir}/man5/tuned*
|
|
|
|
%{_mandir}/man8/tuned*
|
2009-03-03 09:56:17 +00:00
|
|
|
|
|
|
|
%files utils
|
|
|
|
%defattr(-,root,root,-)
|
2012-10-10 21:28:25 +00:00
|
|
|
%doc COPYING
|
|
|
|
%{_bindir}/powertop2tuned
|
|
|
|
|
|
|
|
%files utils-systemtap
|
|
|
|
%defattr(-,root,root,-)
|
2009-03-03 09:56:17 +00:00
|
|
|
%doc doc/README.utils
|
2009-08-04 15:43:24 +00:00
|
|
|
%doc doc/README.scomes
|
2010-07-13 18:32:43 +00:00
|
|
|
%doc COPYING
|
2009-08-04 15:43:24 +00:00
|
|
|
%{_sbindir}/varnetload
|
2009-03-03 09:56:17 +00:00
|
|
|
%{_sbindir}/netdevstat
|
|
|
|
%{_sbindir}/diskdevstat
|
2009-07-13 15:27:50 +00:00
|
|
|
%{_sbindir}/scomes
|
2011-03-18 11:02:18 +00:00
|
|
|
%{_mandir}/man8/varnetload.*
|
|
|
|
%{_mandir}/man8/netdevstat.*
|
|
|
|
%{_mandir}/man8/diskdevstat.*
|
|
|
|
%{_mandir}/man8/scomes.*
|
2009-08-04 15:43:24 +00:00
|
|
|
|
2012-03-30 12:43:02 +00:00
|
|
|
%files profiles-compat
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_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
|
2009-03-03 09:56:17 +00:00
|
|
|
|
|
|
|
%changelog
|
2013-07-25 16:41:00 +00:00
|
|
|
* Thu Jul 25 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 2.2.2-2
|
|
|
|
- used pygobject3-base instead of pygobject2
|
|
|
|
|
2013-03-19 15:47:24 +00:00
|
|
|
* Tue Mar 19 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 2.2.2-1
|
|
|
|
- new-release:
|
|
|
|
- cpu plugin: fixed cpupower workaround
|
|
|
|
- cpu plugin: fixed crash if cpupower is installed
|
2013-03-08 08:23:06 +00:00
|
|
|
|
2013-03-01 11:20:24 +00:00
|
|
|
* Fri Mar 1 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 2.2.1-1
|
|
|
|
- new release:
|
|
|
|
- audio plugin: fixed error handling in _get_timeout
|
|
|
|
- removed cpupower dependency, added sysfs fallback
|
|
|
|
- powertop2tuned: fixed parser crash on binary garbage
|
|
|
|
resolves: rhbz#914933
|
|
|
|
- cpu plugin: dropped multicore_powersave as kernel upstream already did
|
|
|
|
- plugins: options manipulated by dynamic tuning are now correctly saved and restored
|
|
|
|
- powertop2tuned: added alias -e for --enable option
|
|
|
|
- powertop2tuned: new option -m, --merge-profile to select profile to merge
|
|
|
|
- prefer transparent_hugepage over redhat_transparent_hugepage
|
|
|
|
- recommend: use recommend.conf not autodetect.conf
|
|
|
|
- tuned.service: switched to dbus type service
|
|
|
|
resolves: rhbz#911445
|
|
|
|
- tuned: new option --pid, -P to write PID file
|
|
|
|
- tuned, tuned-adm: added new option --version, -v to show version
|
|
|
|
- disk plugin: use APM value 254 for cleanup / APM disable instead of 255
|
|
|
|
resolves: rhbz#905195
|
|
|
|
- tuned: new option --log, -l to select log file
|
|
|
|
- powertop2tuned: avoid circular deps in include (one level check only)
|
|
|
|
- powertop2tuned: do not crash if powertop is not installed
|
|
|
|
- net plugin: added support for wake_on_lan static tuning
|
|
|
|
resolves: rhbz#885504
|
|
|
|
- loader: fixed error handling
|
|
|
|
- spec: used systemd-rpm macros
|
|
|
|
resolves: rhbz#850347
|
|
|
|
|
2013-01-28 17:21:58 +00:00
|
|
|
* Mon Jan 28 2013 Jan Vcelak <jvcelak@redhat.com> 2.2.0-1
|
|
|
|
- new release:
|
|
|
|
- remove nobarrier from virtual-guest (data loss prevention)
|
|
|
|
- devices enumeration via udev, instead of manual retrieval
|
|
|
|
- support for dynamically inserted devices (currently disk plugin)
|
|
|
|
- dropped rfkill plugins (bluetooth and wifi), the code didn't work
|
|
|
|
|
2013-01-02 15:51:58 +00:00
|
|
|
* Wed Jan 2 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 2.1.2-1
|
|
|
|
- new release:
|
|
|
|
- systemtap {disk,net}devstat: fix typo in usage
|
|
|
|
- switched to configobj parser
|
|
|
|
- latency-performance: disabled THP
|
|
|
|
- fixed fd leaks on subprocesses
|
|
|
|
|
2012-12-06 10:15:57 +00:00
|
|
|
* Thu Dec 06 2012 Jan Vcelak <jvcelak@redhat.com> 2.1.1-1
|
|
|
|
- fix: powertop2tuned execution
|
|
|
|
- fix: ownership of /etc/tuned
|
|
|
|
|
2012-12-03 10:39:22 +00:00
|
|
|
* Mon Dec 03 2012 Jan Vcelak <jvcelak@redhat.com> 2.1.0-1
|
|
|
|
- new release:
|
|
|
|
- daemon: allow running without selected profile
|
|
|
|
- daemon: fix profile merging, allow only safe characters in profile names
|
|
|
|
- daemon: implement missing methods in DBus interface
|
|
|
|
- daemon: implement profile recommendation
|
|
|
|
- daemon: improve daemonization, PID file handling
|
|
|
|
- daemon: improved device matching in profiles, negation possible
|
|
|
|
- daemon: various internal improvements
|
|
|
|
- executables: check for EUID instead of UID
|
|
|
|
- executables: run python with -Es to increase security
|
|
|
|
- plugins: cpu - fix cpupower execution
|
|
|
|
- plugins: disk - fix option setting
|
|
|
|
- plugins: mounts - new, currently supports only barriers control
|
|
|
|
- plugins: sysctl - fix a bug preventing settings application
|
|
|
|
- powertop2tuned: speedup, fix crashes with non-C locales
|
|
|
|
- powertop2tuned: support for powertop 2.2 output
|
|
|
|
- profiles: progress on replacing scripts with plugins
|
|
|
|
- tuned-adm: bash completion - suggest profiles from all supported locations
|
|
|
|
- tuned-adm: complete switch to D-bus
|
|
|
|
- tuned-adm: full control to users with physical access
|
|
|
|
|
2012-10-10 21:28:25 +00:00
|
|
|
* Mon Oct 08 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 2.0.2-1
|
|
|
|
- New version
|
|
|
|
- Systemtap scripts moved to utils-systemtap subpackage
|
|
|
|
|
2012-07-22 00:58:27 +00:00
|
|
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-12 15:24:37 +00:00
|
|
|
* Tue Jun 12 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 2.0.1-3
|
|
|
|
- another powertop-2.0 compatibility fix
|
|
|
|
Resolves: rhbz#830415
|
|
|
|
|
2012-06-12 10:46:06 +00:00
|
|
|
* Tue Jun 12 2012 Jan Kaluza <jkaluza@redhat.com> - 2.0.1-2
|
|
|
|
- fixed powertop2tuned compatibility with powertop-2.0
|
|
|
|
|
2012-04-03 17:33:59 +00:00
|
|
|
* Tue Apr 03 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 2.0.1-1
|
|
|
|
- new version
|
|
|
|
|
2012-03-30 12:43:02 +00:00
|
|
|
* Fri Mar 30 2012 Jan Vcelak <jvcelak@redhat.com> 2.0-1
|
|
|
|
- first stable release
|