tuned-2.4.0 released
by Jaroslav Skarvada
This is to announce tuned-2.4.0, a stable release.
Tuned is a tool that performs monitoring and adaptive configuration
of the system according to selected profile.
The 2.4.0 contains many bug fixes and also introduces new features.
Noteworthy changes since previous release:
- fixed traceback if profile cannot be loaded (rhbz#953128)
- powertop2tuned: fixed traceback if rewriting file instead of directory (rhbz#963441)
- daemon: fixed race condition in start/stop
- improved timings, it can be fine tuned in /etc/tuned/tuned-main.conf (rhbz#1028122)
- throughput-performance: altered dirty ratios for better performance (rhbz#1043533)
- latency-performance: leaving THP on its default (rhbz#1064510)
- used throughput-performance profile on server by default (rhbz#1063481)
- network-latency: added new profile (rhbz#1052418)
- network-throughput: added new profile (rhbz#1052421)
- recommend.conf: fixed config file (rhbz#1069123)
- spec: added kernel-tools requirement (rhbz#1073008)
- systemd: added cpupower.service conflict (rhbz#1073392)
- balanced: used medium_power ALPM policy
- added support for >, < assignment modifiers in tuned.conf
- handled root block devices
- balanced: used conservative CPU governor (rhbz#1124125)
- plugins: added selinux plugin
- plugin_net: added nf_conntrack_hashsize parameter
- profiles: added atomic-host profile (rhbz#1091977)
- profiles: added atomic-guest profile (rhbz#1091979)
- moved profile autodetection from post install script to tuned daemon (rhbz#1144067)
- profiles: included sap-hana and sap-hana-vmware profiles
- man: structured profiles manual pages according to sub-packages
- added missing hdparm dependency (rhbz#1144858)
- improved error handling of switch_profile (rhbz#1068699)
- tuned-adm: active: detect whether tuned deamon is running (rhbz#1068699)
- spec: removed active_profile from RPM verification (rhbz#1104126)
- plugin_disk: readahead value can be now specified in sectors (rhbz#1127127)
- plugins: added bootloader plugin (rhbz#1044111)
- plugin_disk: added error counter to hdparm calls
- plugins: added scheduler plugin (rhbz#1100826)
- added tuned-gui with profile editor
Download:
http://fedorahosted.org/releases/t/u/tuned/tuned-2.4.0.tar.bz2
Upstream homepage:
http://fedorahosted.org/tuned/
6 years, 6 months
[PATCH] Python traces are seen when tuned-adm verifiy -i is executed for cpu-partitioning profile.
by Seeteena Thoufeek
Steps to reproduce :
============
1. yum install tuned.
2. yum install tuned-profiles-cpu-partitioning.noarch
3. tuned-adm profile cpu-partitioning
4. tuned-adm verify -i
Verification failed, current system settings differ from the preset profile.
You can mostly fix this by Tuned restart, e.g.:
service tuned restart
Sometimes (if some plugins like bootloader are used) also reboot is required.
See tuned log file ('/var/log/tuned/tuned.log') for details.
Python traces are logged in /var/log/tuned/tuned.log file
INFO tuned.plugins.plugin_script: calling script '/usr/lib/tuned/cpu-partitioning/script.sh' with arguments '['verify', 'ignore_missing']'
ERROR tuned.plugins.plugin_script: script '/usr/lib/tuned/cpu-partitioning/script.sh' error: 1, 'Traceback (most recent call last):
File "/usr/libexec/tuned/defirqaffinity.py", line 102, in <module>
verify(mask)
File "/usr/libexec/tuned/defirqaffinity.py", line 64, in verify
interruptdirs.remove("2")
ValueError: list.remove(x): x not in list'
ERROR tuned.plugins.plugin_script: verify: failed: '[u'/usr/lib/tuned/cpu-partitioning/script.sh']'
If the value 2 is not in the list, call interruptdirs.remove("2") will throw ValueError: list.remove(x): x not in list'.
Fix the code to properly handle ValueError.
Signed-off-by: Seeteena Thoufeek <s1seetee(a)linux.vnet.ibm.com>
---
libexec/defirqaffinity.py | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/libexec/defirqaffinity.py b/libexec/defirqaffinity.py
index 6be06aa..d8910e8 100755
--- a/libexec/defirqaffinity.py
+++ b/libexec/defirqaffinity.py
@@ -61,10 +61,15 @@ def verify(shouldbemask):
# now verify each /proc/irq/$num/smp_affinity
interruptdirs = [ f for f in os.listdir(irqpath) if os.path.isdir(os.path.join(irqpath,f)) ]
# IRQ 2 - cascaded signals from IRQs 8-15 (any devices configured to use IRQ 2 will actually be using IRQ 9)
- interruptdirs.remove("2")
+ try:
+ interruptdirs.remove("2")
+ except ValueError:
+ pass
# IRQ 0 - system timer (cannot be changed)
- interruptdirs.remove("0")
-
+ try:
+ interruptdirs.remove("0")
+ except ValueError:
+ pass
for i in interruptdirs:
inplacemask = 0
fname = irqpath + i + "/smp_affinity"
--
1.8.3.1
6 years, 9 months