commit tuned for openSUSE:Factory
Hello community, here is the log from the commit of package tuned for openSUSE:Factory checked in at 2019-07-02 10:39:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tuned (Old) and /work/SRC/openSUSE:Factory/.tuned.new.4615 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "tuned" Tue Jul 2 10:39:19 2019 rev:21 rq:712885 version:2.12.0 Changes: -------- --- /work/SRC/openSUSE:Factory/tuned/tuned.changes 2019-06-12 13:12:24.580935559 +0200 +++ /work/SRC/openSUSE:Factory/.tuned.new.4615/tuned.changes 2019-07-02 10:39:19.646666874 +0200 @@ -1,0 +2,6 @@ +Mon Jul 1 15:10:26 UTC 2019 - trenn@suse.de + +- Upgrade to latest 2.12.0 version(git commit b514cda168878c330b70416676) + - Removes sap-hana-vmware profile + +------------------------------------------------------------------- Old: ---- tuned-2.11.0+git20190405.b4d9dfc.tar.xz New: ---- tuned-2.12.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tuned.spec ++++++ --- /var/tmp/diff_new_pack.vJgWDE/_old 2019-07-02 10:39:20.162667658 +0200 +++ /var/tmp/diff_new_pack.vJgWDE/_new 2019-07-02 10:39:20.166667664 +0200 @@ -18,7 +18,7 @@ %{!?_tmpfilesdir:%global _tmpfilesdir %{_libexecdir}/tmpfiles.d} Name: tuned -Version: 2.11.0+git20190405.b4d9dfc +Version: 2.12.0 Release: 0 Summary: A dynamic adaptive system tuning daemon License: GPL-2.0-or-later @@ -207,7 +207,6 @@ %exclude %{_libexecdir}/tuned/realtime-virtual-host %exclude %{_libexecdir}/tuned/sap-netweaver %exclude %{_libexecdir}/tuned/sap-hana -%exclude %{_libexecdir}/tuned/sap-hana-vmware %exclude %{_mandir}/man7/tuned-profiles-sap*.7.gz %exclude %{_libexecdir}/tuned/atomic-host %exclude %{_libexecdir}/tuned/atomic-guest @@ -222,7 +221,6 @@ %config(noreplace) %{_sysconfdir}/tuned/cpu-partitioning-variables.conf %config(noreplace) %{_sysconfdir}/tuned/tuned-main.conf %config(noreplace) %{_sysconfdir}/tuned/profile_mode -%config(noreplace) %{_sysconfdir}/tuned/sap-hana-vmware-variables.conf %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/bootcmdline %dir %{_sysconfdir}/dbus-1 %dir %{_sysconfdir}/dbus-1/system.d @@ -258,7 +256,6 @@ %files profiles-sap-hana %{_libexecdir}/tuned/sap-hana -%{_libexecdir}/tuned/sap-hana-vmware %{_mandir}/man7/tuned-profiles-sap-hana.7%{?ext_man} %endif ++++++ _service ++++++ --- /var/tmp/diff_new_pack.vJgWDE/_old 2019-07-02 10:39:20.198667713 +0200 +++ /var/tmp/diff_new_pack.vJgWDE/_new 2019-07-02 10:39:20.198667713 +0200 @@ -2,10 +2,11 @@ <service name="tar_scm" mode="disabled"> <param name="scm">git</param> <param name="url">https://github.com/redhat-performance/tuned</param> - <param name="versionformat">2.11.0+git%cd.%h</param> <!-- - <param name="versionformat">2.11.0</param> + <param name="versionformat">2.12.0+git%cd.%h</param> --> + <param name="versionformat">2.12.0</param> + <param name="changesgenerate">disable</param> </service> <service name="recompress" mode="disabled"> <param name="file">tuned*.tar</param> ++++++ tuned-2.11.0+git20190405.b4d9dfc.tar.xz -> tuned-2.12.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/Makefile new/tuned-2.12.0/Makefile --- old/tuned-2.11.0+git20190405.b4d9dfc/Makefile 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/Makefile 2019-06-27 17:08:55.000000000 +0200 @@ -175,8 +175,6 @@ $(DESTDIR)$(SYSCONFDIR)/tuned/realtime-virtual-host-variables.conf mv $(DESTDIR)$(TUNED_PROFILESDIR)/cpu-partitioning/cpu-partitioning-variables.conf \ $(DESTDIR)$(SYSCONFDIR)/tuned/cpu-partitioning-variables.conf - mv $(DESTDIR)$(TUNED_PROFILESDIR)/sap-hana-vmware/sap-hana-vmware-variables.conf \ - $(DESTDIR)$(SYSCONFDIR)/tuned/sap-hana-vmware-variables.conf install -pm 0644 recommend.conf $(DESTDIR)$(TUNED_RECOMMEND_DIR)/50-tuned.conf # bash completion diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/com.redhat.tuned.policy new/tuned-2.12.0/com.redhat.tuned.policy --- old/tuned-2.11.0+git20190405.b4d9dfc/com.redhat.tuned.policy 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/com.redhat.tuned.policy 2019-06-27 17:08:55.000000000 +0200 @@ -181,8 +181,8 @@ <description>Get plugins which Tuned daemon can acces</description> <message>Authentication is required to get Tuned plugins</message> <defaults> - <allow_any>yes</allow_any> - <allow_inactive>yes</allow_inactive> + <allow_any>auth_admin</allow_any> + <allow_inactive>auth_admin</allow_inactive> <allow_active>yes</allow_active> </defaults> </action> @@ -191,8 +191,8 @@ <description>Get documentation of tuned plugin</description> <message>Authentication is required to get documentation of tuned plugin</message> <defaults> - <allow_any>yes</allow_any> - <allow_inactive>yes</allow_inactive> + <allow_any>auth_admin</allow_any> + <allow_inactive>auth_admin</allow_inactive> <allow_active>yes</allow_active> </defaults> </action> @@ -201,8 +201,8 @@ <description>Get hints for parameters of Tuned plugin</description> <message>Authentication is required to get hints for parameters of Tuned plugin</message> <defaults> - <allow_any>yes</allow_any> - <allow_inactive>yes</allow_inactive> + <allow_any>auth_admin</allow_any> + <allow_inactive>auth_admin</allow_inactive> <allow_active>yes</allow_active> </defaults> </action> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/doc/manual/README.adoc new/tuned-2.12.0/doc/manual/README.adoc --- old/tuned-2.11.0+git20190405.b4d9dfc/doc/manual/README.adoc 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/doc/manual/README.adoc 2019-06-27 17:08:55.000000000 +0200 @@ -16,3 +16,18 @@ The `master.adoc` file is the main entry point for the documentation. It _includes_ (or, imports, loads) _assembly_ files from the `assemblies/` directory, which represent user stories. These assembly files then include _modules_ located in `modules/performance/`. Modules are reusable sections of content representing a concept, a procedure, or a reference. +== Naming conventions + +Use the following naming conventions when referring to Tuned and its components in the documentation: + +* "the *Tuned* application", referring to the complete set of software, including executables, profiles, scripts, documentation, artwork, etc. Written as `the \*Tuned* application` in AsciiDoc, because application names are in bold text. + +* "the Tuned project", referring to the developers and contributors, the web pages, repositories, planning, etc. + +* "the `tuned` service", referring to the `tuned.service` systemd unit and the `tuned` executable + +* "the `tuned-adm` utility", referring to the `tuned-adm` executable + +* "the `tuned` and `tuned-adm` commands", referring to the text typed into the terminal to run components of Tuned + +This is consistent with other naming schemes. For example, consider "the Firefox application" vs. "the `firefox` command". diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/doc/manual/assemblies/assembly_getting-started-with-tuned.adoc new/tuned-2.12.0/doc/manual/assemblies/assembly_getting-started-with-tuned.adoc --- old/tuned-2.11.0+git20190405.b4d9dfc/doc/manual/assemblies/assembly_getting-started-with-tuned.adoc 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/doc/manual/assemblies/assembly_getting-started-with-tuned.adoc 2019-06-27 17:08:55.000000000 +0200 @@ -5,7 +5,7 @@ :context: getting-started-with-tuned -As a system administrator, you can use the *Tuned* service to optimize the performance profile of your system for a variety of use cases. +As a system administrator, you can use the *Tuned* application to optimize the performance profile of your system for a variety of use cases. // [id='prerequisites-{context}'] // == Prerequisites @@ -19,7 +19,7 @@ include::modules/performance/con_tuned-profiles.adoc[leveloffset=+1] -include::modules/performance/ref_tuned-profiles-distributed-with-red-hat-enterprise-linux.adoc[leveloffset=+1] +include::modules/performance/ref_tuned-profiles-distributed-with-rhel.adoc[leveloffset=+1] include::modules/performance/con_static-and-dynamic-tuning-in-tuned.adoc[leveloffset=+1] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/doc/manual/master.adoc new/tuned-2.12.0/doc/manual/master.adoc --- old/tuned-2.11.0+git20190405.b4d9dfc/doc/manual/master.adoc 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/doc/manual/master.adoc 2019-06-27 17:08:55.000000000 +0200 @@ -19,7 +19,7 @@ // Abstract (Preamble): -This documentation explains how to use the *Tuned* service to monitor and optimize the throughput, latency, and power consumption of your system in different scenarios. +This documentation explains how to use the *Tuned* application to monitor and optimize the throughput, latency, and power consumption of your system in different scenarios. // The following is copied from the standard Red Hat legal notice // as used in all Red Hat documentation. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/doc/manual/modules/performance/proc_installing-and-enabling-tuned.adoc new/tuned-2.12.0/doc/manual/modules/performance/proc_installing-and-enabling-tuned.adoc --- old/tuned-2.11.0+git20190405.b4d9dfc/doc/manual/modules/performance/proc_installing-and-enabling-tuned.adoc 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/doc/manual/modules/performance/proc_installing-and-enabling-tuned.adoc 2019-06-27 17:08:55.000000000 +0200 @@ -1,7 +1,7 @@ [id="installing-and-enabling-tuned_{context}"] = Installing and enabling Tuned -This procedure installs and enables the *Tuned* service, installs *Tuned* profiles, and presets a default *Tuned* profile for your system. +This procedure installs and enables the *Tuned* application, installs *Tuned* profiles, and presets a default *Tuned* profile for your system. // [discrete] // == Prerequisites @@ -25,11 +25,10 @@ # systemctl enable --now tuned ---- -. Optionally, install *Tuned* profiles for real-time systems or for {RHEL} Atomic Host: +. Optionally, install *Tuned* profiles for real-time systems: + ---- -# yum install tuned-profiles-realtime tuned-profiles-nfv \ - tuned-profiles-atomic +# yum install tuned-profiles-realtime tuned-profiles-nfv ---- . Verify that a *Tuned* profile is active and applied: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/doc/manual/modules/performance/ref_available-tuned-plug-ins.adoc new/tuned-2.12.0/doc/manual/modules/performance/ref_available-tuned-plug-ins.adoc --- old/tuned-2.11.0+git20190405.b4d9dfc/doc/manual/modules/performance/ref_available-tuned-plug-ins.adoc 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/doc/manual/modules/performance/ref_available-tuned-plug-ins.adoc 2019-06-27 17:08:55.000000000 +0200 @@ -85,15 +85,32 @@ Enables or disables barriers for mounts according to the Boolean value of the [option]`disable_barriers` option. `script`:: -Can be used for the execution of an external script that is run when the profile is loaded or unloaded. +Executes an external script or binary when the profile is loaded or unloaded. You can choose an arbitrary executable. + -The script is called by one argument which can be `start` or `stop`, depending on whether the script is called during the profile load or unload. The script file name can be specified by the `script` parameter. +IMPORTANT: The `script` plug-in is provided mainly for compatibility with earlier releases. Prefer other *Tuned* plug-ins if they cover the required functionality. + -You need to correctly implement the stop action in your script and revert all settings that you changed during the start action. Otherwise, the roll-back step after changing your *Tuned* profile will not work. +*Tuned* calls the executable with one of the following arguments: + -The `functions` Bash helper script is installed by default and enables you to import and use various functions defined in it. +-- +** `start` when loading the profile +** `stop` when unloading the profile +-- + -Note that this plug-in is provided mainly for backwards compatibility, and it is recommended that you use it as the last resort and prefer other plug-ins if they cover the required settings. +You need to correctly implement the `stop` action in your executable and revert all settings that you changed during the `start` action. Otherwise, the roll-back step after changing your *Tuned* profile will not work. ++ +Bash scripts can import the [filename]`/usr/lib/tuned/functions` Bash library and use the functions defined there. Use these functions only for functionality that is not natively provided by *Tuned*. If a function name starts with an underscore, such as `_wifi_set_power_level`, consider the function private and do not use it in your scripts, because it might change in the future. ++ +Specify the path to the executable using the `script` parameter in the plug-in configuration. ++ +.Running a Bash script from a profile +==== +To run a Bash script named `script.sh` that is located in the profile directory, use: + +---- +[script] +script=${i:PROFILE_DIR}/script.sh +---- +==== `sysfs`:: Sets various `sysfs` settings specified by the plug-in options. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/doc/manual/modules/performance/ref_built-in-functions-available-in-tuned-profiles.adoc new/tuned-2.12.0/doc/manual/modules/performance/ref_built-in-functions-available-in-tuned-profiles.adoc --- old/tuned-2.11.0+git20190405.b4d9dfc/doc/manual/modules/performance/ref_built-in-functions-available-in-tuned-profiles.adoc 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/doc/manual/modules/performance/ref_built-in-functions-available-in-tuned-profiles.adoc 2019-06-27 17:08:55.000000000 +0200 @@ -1,7 +1,7 @@ [id="built-in-functions-available-in-tuned-profiles_{context}"] = Built-in functions available in Tuned profiles -The following built-in functions are available in all Tuned profiles: +The following built-in functions are available in all *Tuned* profiles: `PROFILE_DIR`:: Returns the directory path where the profile and the `tuned.conf` file are located. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/doc/manual/modules/performance/ref_tuned-profiles-distributed-with-red-hat-enterprise-linux.adoc new/tuned-2.12.0/doc/manual/modules/performance/ref_tuned-profiles-distributed-with-red-hat-enterprise-linux.adoc --- old/tuned-2.11.0+git20190405.b4d9dfc/doc/manual/modules/performance/ref_tuned-profiles-distributed-with-red-hat-enterprise-linux.adoc 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/doc/manual/modules/performance/ref_tuned-profiles-distributed-with-red-hat-enterprise-linux.adoc 1970-01-01 01:00:00.000000000 +0100 @@ -1,104 +0,0 @@ -[id="tuned-profiles-distributed-with-red-hat-enterprise-linux_{context}"] -= Tuned profiles distributed with Red Hat Enterprise Linux - -The following is a list of profiles that are installed with *Tuned* on {RHEL}: - -NOTE: There might be more product-specific or third-party *Tuned* profiles available. Such profiles are usually provided by separate RPM packages. - - -`balanced`:: -The default power-saving profile. It is intended to be a compromise between performance and power consumption. It uses auto-scaling and auto-tuning whenever possible. The only drawback is the increased latency. In the current *Tuned* release, it enables the CPU, disk, audio, and video plugins, and activates the `conservative` CPU governor. The `radeon_powersave` option uses the `dpm-balanced` value if it is supported, otherwise it is set to `auto`. - -`powersave`:: -A profile for maximum power saving performance. It can throttle the performance in order to minimize the actual power consumption. In the current *Tuned* release it enables USB autosuspend, WiFi power saving, and Aggressive Link Power Management (ALPM) power savings for SATA host adapters. It also schedules multi-core power savings for systems with a low wakeup rate and activates the `ondemand` governor. It enables AC97 audio power saving or, depending on your system, HDA-Intel power savings with a 10 seconds timeout. If your system contains a supported Radeon graphics card with enabled KMS, the profile configures it to automatic power saving. On ASUS Eee PCs, a dynamic Super Hybrid Engine is enabled. -+ -[NOTE] --- -In certain cases, the `balanced` profile is more efficient compared to the `powersave` profile. - -Consider there is a defined amount of work that needs to be done, for example a video file that needs to be transcoded. Your machine might consume less energy if the transcoding is done on the full power, because the task is finished quickly, the machine starts to idle, and it can automatically step-down to very efficient power save modes. On the other hand, if you transcode the file with a throttled machine, the machine consumes less power during the transcoding, but the process takes longer and the overall consumed energy can be higher. - -That is why the `balanced` profile can be generally a better option. --- - -`throughput-performance`:: -A server profile optimized for high throughput. It disables power savings mechanisms and enables `sysctl` settings that improve the throughput performance of the disk and network IO. CPU governor is set to `performance`. - -`latency-performance`:: -A server profile optimized for low latency. It disables power savings mechanisms and enables `sysctl` settings that improve latency. CPU governor is set to `performance` and the CPU is locked to the low C states (by PM QoS). - -`network-latency`:: -A profile for low latency network tuning. It is based on the `latency-performance` profile. It additionally disables transparent huge pages and NUMA balancing, and tunes several other network-related `sysctl` parameters. - -`network-throughput`:: -A profile for throughput network tuning. It is based on the `throughput-performance` profile. It additionally increases kernel network buffers. - -`virtual-guest`:: -A profile designed for virtual guests based on the `throughput-performance` profile that, among other tasks, decreases virtual memory swappiness and increases disk readahead values. It does not disable disk barriers. - -`virtual-host`:: -A profile designed for virtual hosts based on the `throughput-performance` profile that, among other tasks, decreases virtual memory swappiness, increases disk readahead values, and enables a more aggressive value of dirty pages writeback. - -`oracle`:: -A profile optimized for Oracle databases loads based on `throughput-performance` profile. It additionally disables transparent huge pages and modifies other performance-related kernel parameters. This profile is provided by the [package]`tuned-profiles-oracle` package. - -`desktop`:: -A profile optimized for desktops, based on the `balanced` profile. It additionally enables scheduler autogroups for better response of interactive applications. - -// The below section is commented out for the reason: the package is about to be dropped https://docs.google.com/document/d/1sC0aqHdvNj1sCPMJjWQKTxmfZ_CFDxAZZCTcoiJ5... -//// -[discrete] -== Compat profiles - -// Additional predefined profiles can be installed with the [package]`tuned-profiles-compat` package available in the Optional channel. These profiles are intended for backward compatibility and are no longer developed. -Additional predefined profiles can be installed with the [package]`tuned-profiles-compat` package. These profiles are intended for backward compatibility and are no longer developed. - -The generalized profiles from the base package mostly perform the same or better. If you do not have a specific reason for using them, please prefer the above mentioned profiles from the base package. - -The compat profiles are following: - -`default`:: -This has the lowest impact on power saving of the available profiles and only enables CPU and disk plugins of *Tuned*. - -`desktop-powersave`:: -A power-saving profile directed at desktop systems. Enables ALPM power saving for SATA host adapters as well as the CPU, Ethernet, and disk plug-ins of *Tuned*. - -`laptop-ac-powersave`:: -A medium-impact power-saving profile directed at laptops running on AC. Enables ALPM power saving for SATA host adapters, Wi-Fi power saving, as well as the CPU, Ethernet, and disk plug-ins of *Tuned*. - -`laptop-battery-powersave`:: -A high-impact power-saving profile directed at laptops running on battery. In the current *Tuned* implementation, it is an alias for the `powersave` profile. - -`spindown-disk`:: -A power-saving profile for machines with classic HDDs to minimize the spindown timeout. It enables USB autosuspend, disables Bluetooth, enables Wi-Fi power saving, disables logs syncing, increases disk write-back time, and lowers disk swappiness. All partitions are remounted with the `noatime` option. - -`enterprise-storage`:: -A server profile directed at enterprise-class storage, maximizing I/O throughput. It activates the same settings as the `throughput-performance` profile, multiplies readahead settings, and disables barriers on non-root and non-boot partitions. -//// - -[discrete] -== Profiles for {RHEL} Atomic Host - -Profiles optimized for {RHEL} Atomic Host are provided by the [package]`tuned-profiles-atomic` package. The *Tuned* profiles for {RHEL} Atomic Host are: - -`atomic-host`:: -A profile optimized for {RHEL} Atomic Host, when used as a host system on a bare-metal server, based on the `throughput-performance` profile. It additionally increases SELinux AVC cache, PID limit, and tunes `netfilter` connections tracking. - -`atomic-guest`:: -A profile optimized for {RHEL} Atomic Host, when used as a guest system based on the `virtual-guest` profile. It additionally increases SELinux AVC cache, PID limit, and tunes `netfilter` connections tracking. - -Use the `atomic-host` profile on physical machines, and the `atomic-guest` profile on virtual machines. - -[discrete] -== Real-time profiles - -// TODO: What are these? Profiles for real-time-enabled systems? Profiles that make your system real-time? - -The following real-time profiles are available: - -`realtime`:: -Available from the [package]`tuned-profiles-realtime` package. - -`realtime-virtual-host` and `realtime-virtual-guest`:: -Available from the [package]`tuned-profiles-nfv` package. - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/doc/manual/modules/performance/ref_tuned-profiles-distributed-with-rhel.adoc new/tuned-2.12.0/doc/manual/modules/performance/ref_tuned-profiles-distributed-with-rhel.adoc --- old/tuned-2.11.0+git20190405.b4d9dfc/doc/manual/modules/performance/ref_tuned-profiles-distributed-with-rhel.adoc 1970-01-01 01:00:00.000000000 +0100 +++ new/tuned-2.12.0/doc/manual/modules/performance/ref_tuned-profiles-distributed-with-rhel.adoc 2019-06-27 17:08:55.000000000 +0200 @@ -0,0 +1,70 @@ +[id="tuned-profiles-distributed-with-rhel_{context}"] += Tuned profiles distributed with RHEL + +The following is a list of profiles that are installed with *Tuned* on {RHEL}. + +NOTE: There might be more product-specific or third-party *Tuned* profiles available. Such profiles are usually provided by separate RPM packages. + + +`balanced`:: +The default power-saving profile. It is intended to be a compromise between performance and power consumption. It uses auto-scaling and auto-tuning whenever possible. The only drawback is the increased latency. In the current *Tuned* release, it enables the CPU, disk, audio, and video plugins, and activates the `conservative` CPU governor. The `radeon_powersave` option uses the `dpm-balanced` value if it is supported, otherwise it is set to `auto`. + +`powersave`:: +A profile for maximum power saving performance. It can throttle the performance in order to minimize the actual power consumption. In the current *Tuned* release it enables USB autosuspend, WiFi power saving, and Aggressive Link Power Management (ALPM) power savings for SATA host adapters. It also schedules multi-core power savings for systems with a low wakeup rate and activates the `ondemand` governor. It enables AC97 audio power saving or, depending on your system, HDA-Intel power savings with a 10 seconds timeout. If your system contains a supported Radeon graphics card with enabled KMS, the profile configures it to automatic power saving. On ASUS Eee PCs, a dynamic Super Hybrid Engine is enabled. ++ +[NOTE] +-- +In certain cases, the `balanced` profile is more efficient compared to the `powersave` profile. + +Consider there is a defined amount of work that needs to be done, for example a video file that needs to be transcoded. Your machine might consume less energy if the transcoding is done on the full power, because the task is finished quickly, the machine starts to idle, and it can automatically step-down to very efficient power save modes. On the other hand, if you transcode the file with a throttled machine, the machine consumes less power during the transcoding, but the process takes longer and the overall consumed energy can be higher. + +That is why the `balanced` profile can be generally a better option. +-- + +`throughput-performance`:: +A server profile optimized for high throughput. It disables power savings mechanisms and enables `sysctl` settings that improve the throughput performance of the disk and network IO. CPU governor is set to `performance`. + +`latency-performance`:: +A server profile optimized for low latency. It disables power savings mechanisms and enables `sysctl` settings that improve latency. CPU governor is set to `performance` and the CPU is locked to the low C states (by PM QoS). + +`network-latency`:: +A profile for low latency network tuning. It is based on the `latency-performance` profile. It additionally disables transparent huge pages and NUMA balancing, and tunes several other network-related `sysctl` parameters. + +`network-throughput`:: +A profile for throughput network tuning. It is based on the `throughput-performance` profile. It additionally increases kernel network buffers. + +`virtual-guest`:: +A profile designed for virtual guests based on the `throughput-performance` profile that, among other tasks, decreases virtual memory swappiness and increases disk readahead values. It does not disable disk barriers. + +`virtual-host`:: +A profile designed for virtual hosts based on the `throughput-performance` profile that, among other tasks, decreases virtual memory swappiness, increases disk readahead values, and enables a more aggressive value of dirty pages writeback. + +`oracle`:: +A profile optimized for Oracle databases loads based on `throughput-performance` profile. It additionally disables transparent huge pages and modifies other performance-related kernel parameters. This profile is provided by the [package]`tuned-profiles-oracle` package. + +`desktop`:: +A profile optimized for desktops, based on the `balanced` profile. It additionally enables scheduler autogroups for better response of interactive applications. + + +[discrete] +== Real-time profiles + +Real-time profiles are intended for systems running the real-time kernel. Without a special kernel build, they do not configure the system to be real-time. On RHEL, the profiles are available from additional repositories. + +The following real-time profiles are available: + +`realtime`:: +Use on bare-metal real-time systems. ++ +Provided by the [package]`tuned-profiles-realtime` package, which is available from the RT or NFV repositories. + +`realtime-virtual-host`:: +Use in a virtualization host configured for real-time. ++ +Provided by the [package]`tuned-profiles-nfv-host` package, which is available from the NFV repository. + +`realtime-virtual-guest`:: +Use in a virtualization guest configured for real-time. ++ +Provided by the [package]`tuned-profiles-nfv-guest` package, which is available from the NFV repository. + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/man/tuned-gui.8 new/tuned-2.12.0/man/tuned-gui.8 --- old/tuned-2.11.0+git20190405.b4d9dfc/man/tuned-gui.8 1970-01-01 01:00:00.000000000 +0100 +++ new/tuned-2.12.0/man/tuned-gui.8 2019-06-27 17:08:55.000000000 +0200 @@ -0,0 +1,53 @@ +.\"/*. +.\" * All rights reserved +.\" * Copyright (C) 2019 Red Hat, Inc. +.\" * Authors: Tomáš Korbař +.\" * +.\" * This program is free software; you can redistribute it and/or +.\" * modify it under the terms of the GNU General Public License +.\" * as published by the Free Software Foundation; either version 2 +.\" * of the License, or (at your option) any later version. +.\" * +.\" * This program is distributed in the hope that it will be useful, +.\" * but WITHOUT ANY WARRANTY; without even the implied warranty of +.\" * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.\" * GNU General Public License for more details. +.\" * +.\" * You should have received a copy of the GNU General Public License +.\" * along with this program; if not, write to the Free Software +.\" * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +.\" */ +.\". +.TH "tuned-gui" "8" "22 Mar 2019" "Fedora Power Management SIG" "Tuned" +.SH NAME +tuned\-gui - graphical interface for configuration of Tuned +.SH SYNOPSIS +\fBtuned\-gui\fP +.SH DESCRIPTION +\fBtuned-gui\fP is graphical interface for configuration of Tuned daemon. GUI +allows user to easily create, remove or update Tuned profiles and load those +profiles into Tuned. It is also possible to explore all available plugins and +information about them, like their description or help for their configuration +parameters. +.SH "TABS" +.TP +.B SUMMARY +Display current active profile and configuration of plugins used by it. +.TP +.B PROFILES +Display available profiles and their origin (System | User). Profiles can be +managed by 'create new profile', 'Edit' and 'Remove' buttons. +.TP +.B PLUGINS +Display available plugins and all accessible information about them. +.SH "SEE ALSO" +.LP +tuned(8) +tuned\-adm(8) +.SH AUTHOR +.nf +Jaroslav Škarvada <jskarvad@redhat.com> +Marek Stana +Tomáš Korbař <tkorbar@redhat.com> +.SH REPORTING BUGS +Report bugs to https://bugzilla.redhat.com/. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/man/tuned-profiles-sap-hana.7 new/tuned-2.12.0/man/tuned-profiles-sap-hana.7 --- old/tuned-2.11.0+git20190405.b4d9dfc/man/tuned-profiles-sap-hana.7 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/man/tuned-profiles-sap-hana.7 2019-06-27 17:08:55.000000000 +0200 @@ -35,14 +35,6 @@ transparent hugepages, locks CPU to the low C states (by PM QoS) and tunes sysctl regarding semaphores. -.TP -.BI "sap\-hana\-vmware" -A performance optimized profile for the SAP HANA applications on VMware. -It is based on throughput\-performance profile. It additionally disables -transparent hugepages, locks CPU to the low C states (by PM QoS) and tunes sysctl -regarding semaphores. It decreases virtual memory swappiness and disables large -receive offload for the network adapter. - .SH "FILES" .nf .I /etc/tuned/* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/profiles/realtime-virtual-host/script.sh new/tuned-2.12.0/profiles/realtime-virtual-host/script.sh --- old/tuned-2.11.0+git20190405.b4d9dfc/profiles/realtime-virtual-host/script.sh 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/profiles/realtime-virtual-host/script.sh 2019-06-27 17:08:55.000000000 +0200 @@ -23,7 +23,7 @@ -device isa-debug-exit,iobase=0xf4,iosize=0x4 \ -display none -serial stdio -device pci-testdev \ -kernel "$TSCDEADLINE_LATENCY" \ - -cpu host \ + -cpu host,tsc-deadline=on \ -mon chardev=char0,mode=readline \ -chardev socket,id=char0,nowait,path=$unixpath,server | grep latency | cut -f 2 -d ":" > $dir/out & diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/profiles/sap-hana/tuned.conf new/tuned-2.12.0/profiles/sap-hana/tuned.conf --- old/tuned-2.11.0+git20190405.b4d9dfc/profiles/sap-hana/tuned.conf 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/profiles/sap-hana/tuned.conf 2019-06-27 17:08:55.000000000 +0200 @@ -13,5 +13,5 @@ transparent_hugepages=never [sysctl] -kernel.sem = 1250 256000 100 8192 +kernel.sem = 32000 1024000000 500 32000 kernel.numa_balancing = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/profiles/sap-hana-vmware/sap-hana-vmware-variables.conf new/tuned-2.12.0/profiles/sap-hana-vmware/sap-hana-vmware-variables.conf --- old/tuned-2.11.0+git20190405.b4d9dfc/profiles/sap-hana-vmware/sap-hana-vmware-variables.conf 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/profiles/sap-hana-vmware/sap-hana-vmware-variables.conf 1970-01-01 01:00:00.000000000 +0100 @@ -1,3 +0,0 @@ -# Set this to the network interfaces which should have -# large receive offload disabled -sap_hana_vmware_nic=!* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/profiles/sap-hana-vmware/tuned.conf new/tuned-2.12.0/profiles/sap-hana-vmware/tuned.conf --- old/tuned-2.11.0+git20190405.b4d9dfc/profiles/sap-hana-vmware/tuned.conf 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/profiles/sap-hana-vmware/tuned.conf 1970-01-01 01:00:00.000000000 +0100 @@ -1,27 +0,0 @@ -# -# tuned configuration -# - -[main] -summary=Optimize for SAP HANA running inside a VMware guest -include=throughput-performance - -[variables] -# User is responsible for setting sap_hana_vmware_nic -# in sap-hana-vmware-variables.conf -include=/etc/tuned/sap-hana-vmware-variables.conf - -[cpu] -force_latency=70 - -[vm] -transparent_hugepages=never - -[sysctl] -vm.swappiness = 30 -kernel.sem = 1250 256000 100 8192 -kernel.numa_balancing = 0 - -[net] -devices=${sap_hana_vmware_nic} -features=lro off diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/profiles/sap-netweaver/script.sh new/tuned-2.12.0/profiles/sap-netweaver/script.sh --- old/tuned-2.11.0+git20190405.b4d9dfc/profiles/sap-netweaver/script.sh 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/profiles/sap-netweaver/script.sh 1970-01-01 01:00:00.000000000 +0100 @@ -1,40 +0,0 @@ -#!/bin/bash - -# SAP ktune script -# -# TODO: drop this script and implement native support -# into plugins - -. /usr/lib/tuned/functions - -start() { - # The following lines are for autodetection of SAP settings - SAP_MAIN_MEMORY_TOTAL=`awk '/MemTotal:/ {print $2}' /proc/meminfo` - SAP_SWAP_SPACE_TOTAL=`awk '/SwapTotal:/ {print $2}' /proc/meminfo` - # Rounding to full Gigabytes - SAP_VIRT_MEMORY_TOTAL=$(( ( $SAP_MAIN_MEMORY_TOTAL + $SAP_SWAP_SPACE_TOTAL + 1048576 ) / 1048576 )) - - # kernel.shmall is in 4 KB pages; minimum 20 GB (SAP Note 941735) - SAP_SHMALL=$(( $SAP_VIRT_MEMORY_TOTAL * 1024 * 1024 / 4 )) - # kernel.shmmax is in Bytes; minimum 20 GB (SAP Note 941735) - SAP_SHMMAX=$(( $SAP_VIRT_MEMORY_TOTAL * 1024 * 1024 * 1024 )) - CURR_SHMALL=`sysctl -n kernel.shmall` - CURR_SHMMAX=`sysctl -n kernel.shmmax` - save_value kernel.shmall "$CURR_SHMALL" - save_value kernel.shmmax "$CURR_SHMMAX" - (( $SAP_SHMALL > $CURR_SHMALL )) && sysctl -w kernel.shmall="$SAP_SHMALL" - (( $SAP_SHMMAX > $CURR_SHMMAX )) && sysctl -w kernel.shmmax="$SAP_SHMMAX" - - return 0 -} - -stop() { - SHMALL=`restore_value kernel.shmall` - SHMMAX=`restore_value kernel.shmmax` - [ "$SHMALL" ] && sysctl -w kernel.shmall="$SHMALL" - [ "$SHMMAX" ] && sysctl -w kernel.shmmax="$SHMMAX" - - return 0 -} - -process $@ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/profiles/sap-netweaver/tuned.conf new/tuned-2.12.0/profiles/sap-netweaver/tuned.conf --- old/tuned-2.11.0+git20190405.b4d9dfc/profiles/sap-netweaver/tuned.conf 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/profiles/sap-netweaver/tuned.conf 2019-06-27 17:08:55.000000000 +0200 @@ -7,8 +7,7 @@ include=throughput-performance [sysctl] -kernel.sem = 1250 256000 100 8192 +kernel.sem = 32000 1024000000 500 32000 +kernel.shmall = 18446744073692774399 +kernel.shmmax = 18446744073692774399 vm.max_map_count = 2000000 - -[script] -script=${i:PROFILE_DIR}/script.sh diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/profiles/virtual-host/tuned.conf new/tuned-2.12.0/profiles/virtual-host/tuned.conf --- old/tuned-2.11.0+git20190405.b4d9dfc/profiles/virtual-host/tuned.conf 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/profiles/virtual-host/tuned.conf 2019-06-27 17:08:55.000000000 +0200 @@ -16,5 +16,6 @@ # (system default is 500000, i.e. 0.5 ms) kernel.sched_migration_cost_ns = 5000000 +[cpu] # Setting C3 state sleep mode/power savings force_latency=70 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/tuned/plugins/plugin_sysctl.py new/tuned-2.12.0/tuned/plugins/plugin_sysctl.py --- old/tuned-2.11.0+git20190405.b4d9dfc/tuned/plugins/plugin_sysctl.py 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/tuned/plugins/plugin_sysctl.py 2019-06-27 17:08:55.000000000 +0200 @@ -76,7 +76,7 @@ curr_val = _read_sysctl(option) value = self._process_assignment_modifiers(self._variables.expand(value), curr_val) if value is not None: - if self._verify_value(option, self._cmd.remove_ws(value), curr_val, ignore_missing) == False: + if self._verify_value(option, self._cmd.remove_ws(value), self._cmd.remove_ws(curr_val), ignore_missing) == False: ret = False return ret @@ -90,7 +90,7 @@ for d in SYSCTL_CONFIG_DIRS: try: flist = os.listdir(d) - except: + except OSError: continue for fname in flist: if not fname.endswith(".conf"): @@ -133,7 +133,7 @@ % (path, lineno)) return value = value.strip() - _write_sysctl(option, value) + _write_sysctl(option, value, ignore_missing = True) def _get_sysctl_path(option): return "/proc/sys/%s" % option.replace(".", "/") @@ -161,7 +161,7 @@ % (option, str(e))) return None -def _write_sysctl(option, value): +def _write_sysctl(option, value, ignore_missing = False): path = _get_sysctl_path(option) if os.path.basename(path) in DEPRECATED_SYSCTL_OPTIONS: log.error("Refusing to set deprecated sysctl option %s" @@ -175,7 +175,8 @@ return True except (OSError, IOError) as e: if e.errno == errno.ENOENT: - log.error("Failed to set sysctl parameter '%s' to '%s', the parameter does not exist" + log_func = log.debug if ignore_missing else log.error + log_func("Failed to set sysctl parameter '%s' to '%s', the parameter does not exist" % (option, value)) else: log.error("Failed to set sysctl parameter '%s' to '%s': %s" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/tuned/profiles/functions/function_cpulist_online.py new/tuned-2.12.0/tuned/profiles/functions/function_cpulist_online.py --- old/tuned-2.11.0+git20190405.b4d9dfc/tuned/profiles/functions/function_cpulist_online.py 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/tuned/profiles/functions/function_cpulist_online.py 2019-06-27 17:08:55.000000000 +0200 @@ -19,4 +19,4 @@ return None cpus = self._cmd.cpulist_unpack(",".join(args)) online = self._cmd.cpulist_unpack(self._cmd.read_file("/sys/devices/system/cpu/online")) - return ",".join(str(v) for v in set(cpus).intersection(set(online))) + return ",".join(str(v) for v in cpus if v in online) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/tuned/version.py new/tuned-2.12.0/tuned/version.py --- old/tuned-2.11.0+git20190405.b4d9dfc/tuned/version.py 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/tuned/version.py 2019-06-27 17:08:55.000000000 +0200 @@ -1,3 +1,3 @@ TUNED_VERSION_MAJOR = 2 -TUNED_VERSION_MINOR = 11 +TUNED_VERSION_MINOR = 12 TUNED_VERSION_PATCH = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tuned-2.11.0+git20190405.b4d9dfc/tuned.spec new/tuned-2.12.0/tuned.spec --- old/tuned-2.11.0+git20190405.b4d9dfc/tuned.spec 2019-04-05 10:49:17.000000000 +0200 +++ new/tuned-2.12.0/tuned.spec 2019-06-27 17:08:55.000000000 +0200 @@ -43,7 +43,7 @@ Summary: A dynamic adaptive system tuning daemon Name: tuned -Version: 2.11.0 +Version: 2.12.0 Release: 1%{?prerel1}%{?with_snapshot:.%{git_suffix}}%{?dist} License: GPLv2+ Source0: https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prerel2}/%{name}-%{version}%{?prerel2}.tar.gz @@ -345,7 +345,6 @@ %exclude %{_sysconfdir}/tuned/realtime-virtual-guest-variables.conf %exclude %{_sysconfdir}/tuned/realtime-virtual-host-variables.conf %exclude %{_sysconfdir}/tuned/cpu-partitioning-variables.conf -%exclude %{_sysconfdir}/tuned/sap-hana-vmware-variables.conf %exclude %{_prefix}/lib/tuned/default %exclude %{_prefix}/lib/tuned/desktop-powersave %exclude %{_prefix}/lib/tuned/laptop-ac-powersave @@ -355,7 +354,6 @@ %exclude %{_prefix}/lib/tuned/spindown-disk %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 @@ -427,9 +425,7 @@ %files profiles-sap-hana %defattr(-,root,root,-) -%config(noreplace) %{_sysconfdir}/tuned/sap-hana-vmware-variables.conf %{_prefix}/lib/tuned/sap-hana -%{_prefix}/lib/tuned/sap-hana-vmware %{_mandir}/man7/tuned-profiles-sap-hana.7* %files profiles-mssql @@ -488,6 +484,34 @@ %{_mandir}/man7/tuned-profiles-compat.7* %changelog +* Thu Jun 27 2019 Jaroslav Škarvada <jskarvad@redhat.com> - 2.12.0-1 +- new release + - rebased tuned to latest upstream + related: rhbz#1685585 + +* Wed Jun 12 2019 Jaroslav Škarvada <jskarvad@redhat.com> - 2.12.0-0.1.rc1 +- new release + - rebased tuned to latest upstream + resolves: rhbz#1685585 + - sap-netweaver: changed values of kernel.shmall and kernel.shmmax to RHEL-8 defaults + resolves: rhbz#1708418 + - sap-netweaver: changed value of kernel.sem to RHEL-8 default + resolves: rhbz#1701394 + - sap-hana-vmware: dropped profile + resolves: rhbz#1715541 + - s2kb function: fixed to be compatible with python3 + resolves: rhbz#1684122 + - do fallback to the powersave governor (balanced and powersave profiles) + resolves: rhbz#1679205 + - added support for negation of CPU list + resolves: rhbz#1676588 + - switched from sysctl tool to own implementation + resolves: rhbz#1666678 + - realtime-virtual-host: added tsc-deadline=on to qemu cmdline + resolves: rhbz#1554458 + - fixed handling of devices that have been removed and re-attached + resolves: rhbz#1677730 + * Thu Mar 21 2019 Jaroslav Škarvada <jskarvad@redhat.com> - 2.11.0-1 - new release - rebased tuned to latest upstream
participants (1)
-
root