ba319a
Summary: A dynamic adaptive system tuning daemon
ba319a
Name: tuned
ba319a
Version: 2.3.0
ba319a
Release: 3%{?dist}
ba319a
License: GPLv2+
ba319a
Source: https://fedorahosted.org/releases/t/u/tuned/tuned-%{version}.tar.bz2
ba319a
URL: https://fedorahosted.org/tuned/
ba319a
BuildArch: noarch
ba319a
BuildRequires: python, systemd
ba319a
Requires(post): systemd, virt-what
ba319a
Requires(preun): systemd
ba319a
Requires(postun): systemd
ba319a
Requires: python-decorator, dbus-python, pygobject3-base, python-pyudev
ba319a
Requires: virt-what, python-configobj, ethtool, gawk
ba319a
Patch0: tuned-2.3.0-fix-race.patch
ba319a
Patch1: tuned-2.3.0-timing-improvements.patch
ba319a
ba319a
%description
ba319a
The tuned package contains a daemon that tunes system settings dynamically.
ba319a
It does so by monitoring the usage of several system components periodically.
ba319a
Based on that information components will then be put into lower or higher
ba319a
power saving modes to adapt to the current usage. Currently only ethernet
ba319a
network and ATA harddisk devices are implemented.
ba319a
ba319a
%package utils
ba319a
Requires: %{name} = %{version}-%{release}
ba319a
Summary: Various tuned utilities
ba319a
Requires: powertop
ba319a
ba319a
%description utils
ba319a
This package contains utilities that can help you to fine tune and
ba319a
debug your system and manage tuned profiles.
ba319a
ba319a
%package utils-systemtap
ba319a
Summary: Disk and net statistic monitoring systemtap scripts
ba319a
Requires: %{name} = %{version}-%{release}
ba319a
Requires: systemtap
ba319a
ba319a
%description utils-systemtap
ba319a
This package contains several systemtap scripts to allow detailed
ba319a
manual monitoring of the system. Instead of the typical IO/sec it collects
ba319a
minimal, maximal and average time between operations to be able to
ba319a
identify applications that behave power inefficient (many small operations
ba319a
instead of fewer large ones).
ba319a
ba319a
%package profiles-compat
ba319a
Summary: Additional tuned profiles mainly for backward compatibility with tuned 1.0
ba319a
Requires: %{name} = %{version}-%{release}
ba319a
ba319a
%description profiles-compat
ba319a
Additional tuned profiles mainly for backward compatibility with tuned 1.0.
ba319a
It can be also used to fine tune your system for specific scenarios.
ba319a
ba319a
%prep
ba319a
%setup -q
ba319a
%patch0 -p1
ba319a
%patch1 -p1
ba319a
ba319a
ba319a
%build
ba319a
ba319a
ba319a
%install
ba319a
make install DESTDIR=%{buildroot}
ba319a
%if 0%{?rhel}
ba319a
sed -i 's/\(dynamic_tuning[ \t]*=[ \t]*\).*/\10/' %{buildroot}%{_sysconfdir}/tuned/tuned-main.conf
ba319a
%endif
ba319a
ba319a
ba319a
%post
ba319a
%systemd_post tuned.service
ba319a
ba319a
# try to autodetect the best profile for the system in case there is none preset
ba319a
if [ ! -f /etc/tuned/active_profile -o -z "`cat /etc/tuned/active_profile 2>/dev/null`" ]
ba319a
then
ba319a
	PROFILE=`/usr/sbin/tuned-adm recommend 2>/dev/null`
ba319a
	[ "$PROFILE" ] || PROFILE=balanced
ba319a
	/usr/sbin/tuned-adm profile "$PROFILE" 2>/dev/null || echo -n "$PROFILE" > /etc/tuned/active_profile
ba319a
fi
ba319a
ba319a
# convert active_profile from full path to name (if needed)
ba319a
sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile
ba319a
ba319a
ba319a
%preun
ba319a
%systemd_preun tuned.service
ba319a
ba319a
ba319a
%postun
ba319a
%systemd_postun_with_restart tuned.service
ba319a
ba319a
ba319a
%triggerun -- tuned < 2.0-0
ba319a
# remove ktune from old tuned, now part of tuned
ba319a
/usr/sbin/service ktune stop &>/dev/null || :
ba319a
/usr/sbin/chkconfig --del ktune &>/dev/null || :
ba319a
ba319a
ba319a
%files
ba319a
%defattr(-,root,root,-)
ba319a
%doc AUTHORS
ba319a
%doc COPYING
ba319a
%doc README
ba319a
%doc doc/TIPS.txt
ba319a
%{_sysconfdir}/bash_completion.d
ba319a
%{python_sitelib}/tuned
ba319a
%{_sbindir}/tuned
ba319a
%{_sbindir}/tuned-adm
ba319a
%exclude %{_prefix}/lib/tuned/default
ba319a
%exclude %{_prefix}/lib/tuned/desktop-powersave
ba319a
%exclude %{_prefix}/lib/tuned/laptop-ac-powersave
ba319a
%exclude %{_prefix}/lib/tuned/server-powersave
ba319a
%exclude %{_prefix}/lib/tuned/laptop-battery-powersave
ba319a
%exclude %{_prefix}/lib/tuned/enterprise-storage
ba319a
%exclude %{_prefix}/lib/tuned/spindown-disk
ba319a
%{_prefix}/lib/tuned
ba319a
%dir %{_sysconfdir}/tuned
ba319a
%config(noreplace) %{_sysconfdir}/tuned/active_profile
ba319a
%config(noreplace) %{_sysconfdir}/tuned/tuned-main.conf
ba319a
%{_sysconfdir}/tmpfiles.d
ba319a
%{_sysconfdir}/dbus-1/system.d/com.redhat.tuned.conf
ba319a
%{_unitdir}/tuned.service
ba319a
%dir %{_localstatedir}/log/tuned
ba319a
%dir /run/tuned
ba319a
%{_mandir}/man5/tuned*
ba319a
%{_mandir}/man8/tuned*
ba319a
ba319a
%files utils
ba319a
%defattr(-,root,root,-)
ba319a
%doc COPYING
ba319a
%{_bindir}/powertop2tuned
ba319a
%{_libexecdir}/tuned/pmqos-static*
ba319a
ba319a
%files utils-systemtap
ba319a
%defattr(-,root,root,-)
ba319a
%doc doc/README.utils
ba319a
%doc doc/README.scomes
ba319a
%doc COPYING
ba319a
%{_sbindir}/varnetload
ba319a
%{_sbindir}/netdevstat
ba319a
%{_sbindir}/diskdevstat
ba319a
%{_sbindir}/scomes
ba319a
%{_mandir}/man8/varnetload.*
ba319a
%{_mandir}/man8/netdevstat.*
ba319a
%{_mandir}/man8/diskdevstat.*
ba319a
%{_mandir}/man8/scomes.*
ba319a
ba319a
%files profiles-compat
ba319a
%defattr(-,root,root,-)
ba319a
%{_prefix}/lib/tuned/default
ba319a
%{_prefix}/lib/tuned/desktop-powersave
ba319a
%{_prefix}/lib/tuned/laptop-ac-powersave
ba319a
%{_prefix}/lib/tuned/server-powersave
ba319a
%{_prefix}/lib/tuned/laptop-battery-powersave
ba319a
%{_prefix}/lib/tuned/enterprise-storage
ba319a
%{_prefix}/lib/tuned/spindown-disk
ba319a
ba319a
%changelog
ba319a
* Fri Nov  8 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 2.3.0-3
ba319a
- defuzzified patches
ba319a
  related: rhbz#1028119, rhbz#1028122
ba319a
ba319a
* Fri Nov  8 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 2.3.0-2
ba319a
- fixed race condition in the start/stop code
ba319a
  resolves: rhbz#1028119
ba319a
- improved tuned responsiveness
ba319a
  resolves: rhbz#1028122
ba319a
ba319a
* Wed Nov  6 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 2.3.0-1
ba319a
- new-release
ba319a
  resolves: rhbz#1020743
ba319a
  - audio plugin: fixed audio settings in standard profiles
ba319a
  - video plugin: fixed tunings
ba319a
  - daemon: fixed crash if preset profile is not available
ba319a
  - man: various updates and corrections
ba319a
  - functions: fixed usb and bluetooth handling
ba319a
  - tuned: switched to lightweighted pygobject3-base
ba319a
  - daemon: added global config for dynamic_tuning
ba319a
  - utils: added pmqos-static script for debug purposes
ba319a
  - throughput-performance: various fixes
ba319a
  - tuned: added global option update_interval
ba319a
  - plugin_cpu: added support for x86_energy_perf_policy
ba319a
    resolves: rhbz#1015675
ba319a
  - dbus: fixed KeyboardInterrupt handling
ba319a
  - plugin_cpu: added support for intel_pstate
ba319a
    resolves: rhbz#996722
ba319a
  - profiles: various fixes
ba319a
  - profiles: added desktop profile
ba319a
    resolves: rhbz#996723
ba319a
  - tuned-adm: implemented non DBus fallback control
ba319a
  - profiles: added sap profile
ba319a
  - tuned: lowered CPU usage due to python bug
ba319a
ba319a
* Wed Oct 16 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 2.2.2-4
ba319a
- lock CPU to C1 instead of C0 in latency-performance profile
ba319a
  resolves: rhbz#1013085
ba319a
- readahed multiply set to 4 in throughput-performance profile
ba319a
  resolves: rhbz#987570
ba319a
- packaged pmqos-static script for debugging purposes
ba319a
  resolves: rhbz#1015676
ba319a
- added global configuration file with the possibility to globally
ba319a
  disable the dynamic tuning and it is by default disabled on RHEL
ba319a
  resolves: rhbz#1006427
ba319a
ba319a
* Thu Jul 25 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 2.2.2-3
ba319a
- do not package backup file
ba319a
  related: rhbz#986468
ba319a
ba319a
* Thu Jul 25 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 2.2.2-2
ba319a
- used pygobject3-base instead of pygobject2
ba319a
  resolves: rhbz#986468
ba319a
ba319a
* Tue Mar 19 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 2.2.2-1
ba319a
- new-release:
ba319a
  - cpu plugin: fixed cpupower workaround
ba319a
  - cpu plugin: fixed crash if cpupower is installed
ba319a
ba319a
* Fri Mar  1 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 2.2.1-1
ba319a
- new release:
ba319a
  - audio plugin: fixed error handling in _get_timeout
ba319a
  - removed cpupower dependency, added sysfs fallback
ba319a
  - powertop2tuned: fixed parser crash on binary garbage
ba319a
    resolves: rhbz#914933
ba319a
  - cpu plugin: dropped multicore_powersave as kernel upstream already did
ba319a
  - plugins: options manipulated by dynamic tuning are now correctly saved and restored
ba319a
  - powertop2tuned: added alias -e for --enable option
ba319a
  - powertop2tuned: new option -m, --merge-profile to select profile to merge
ba319a
  - prefer transparent_hugepage over redhat_transparent_hugepage
ba319a
  - recommend: use recommend.conf not autodetect.conf
ba319a
  - tuned.service: switched to dbus type service
ba319a
    resolves: rhbz#911445
ba319a
  - tuned: new option --pid, -P to write PID file
ba319a
  - tuned, tuned-adm: added new option --version, -v to show version
ba319a
  - disk plugin: use APM value 254 for cleanup / APM disable instead of 255
ba319a
    resolves: rhbz#905195
ba319a
  - tuned: new option --log, -l to select log file
ba319a
  - powertop2tuned: avoid circular deps in include (one level check only)
ba319a
  - powertop2tuned: do not crash if powertop is not installed
ba319a
  - net plugin: added support for wake_on_lan static tuning
ba319a
    resolves: rhbz#885504
ba319a
  - loader: fixed error handling
ba319a
  - spec: used systemd-rpm macros
ba319a
    resolves: rhbz#850347
ba319a
ba319a
* Mon Jan 28 2013 Jan Vcelak <jvcelak@redhat.com> 2.2.0-1
ba319a
- new release:
ba319a
  - remove nobarrier from virtual-guest (data loss prevention)
ba319a
  - devices enumeration via udev, instead of manual retrieval
ba319a
  - support for dynamically inserted devices (currently disk plugin)
ba319a
  - dropped rfkill plugins (bluetooth and wifi), the code didn't work
ba319a
ba319a
* Wed Jan  2 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 2.1.2-1
ba319a
- new release:
ba319a
  - systemtap {disk,net}devstat: fix typo in usage
ba319a
  - switched to configobj parser
ba319a
  - latency-performance: disabled THP
ba319a
  - fixed fd leaks on subprocesses
ba319a
ba319a
* Thu Dec 06 2012 Jan Vcelak <jvcelak@redhat.com> 2.1.1-1
ba319a
- fix: powertop2tuned execution
ba319a
- fix: ownership of /etc/tuned
ba319a
ba319a
* Mon Dec 03 2012 Jan Vcelak <jvcelak@redhat.com> 2.1.0-1
ba319a
- new release:
ba319a
  - daemon: allow running without selected profile
ba319a
  - daemon: fix profile merging, allow only safe characters in profile names
ba319a
  - daemon: implement missing methods in DBus interface
ba319a
  - daemon: implement profile recommendation
ba319a
  - daemon: improve daemonization, PID file handling
ba319a
  - daemon: improved device matching in profiles, negation possible
ba319a
  - daemon: various internal improvements
ba319a
  - executables: check for EUID instead of UID
ba319a
  - executables: run python with -Es to increase security
ba319a
  - plugins: cpu - fix cpupower execution
ba319a
  - plugins: disk - fix option setting
ba319a
  - plugins: mounts - new, currently supports only barriers control
ba319a
  - plugins: sysctl - fix a bug preventing settings application
ba319a
  - powertop2tuned: speedup, fix crashes with non-C locales
ba319a
  - powertop2tuned: support for powertop 2.2 output
ba319a
  - profiles: progress on replacing scripts with plugins
ba319a
  - tuned-adm: bash completion - suggest profiles from all supported locations
ba319a
  - tuned-adm: complete switch to D-bus
ba319a
  - tuned-adm: full control to users with physical access
ba319a
ba319a
* Mon Oct 08 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 2.0.2-1
ba319a
- New version
ba319a
- Systemtap scripts moved to utils-systemtap subpackage
ba319a
ba319a
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-4
ba319a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ba319a
ba319a
* Tue Jun 12 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 2.0.1-3
ba319a
- another powertop-2.0 compatibility fix
ba319a
  Resolves: rhbz#830415
ba319a
ba319a
* Tue Jun 12 2012 Jan Kaluza <jkaluza@redhat.com> - 2.0.1-2
ba319a
- fixed powertop2tuned compatibility with powertop-2.0
ba319a
ba319a
* Tue Apr 03 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 2.0.1-1
ba319a
- new version
ba319a
ba319a
* Fri Mar 30 2012 Jan Vcelak <jvcelak@redhat.com> 2.0-1
ba319a
- first stable release