Package: tuned
Version: 2.10.0-1
Severity: important
Dear Maintainer,
* What led up to the situation?
Applying a profile via tuned
* What exactly did you do (or not do) that was effective (or
ineffective)?
# tuned-adm profile cpu-partitioning
# tuned-adm-verify
* What was the outcome of this action?
# tuned-adm verify
Verification failed, current system settings differ from the preset profile.
You can mostly fix this by restarting the Tuned daemon, e.g.:
systemctl restart tuned
or
service tuned restart
Sometimes (if some plugins like bootloader are used) a reboot may be required.
See tuned log file ('/var/log/tuned/tuned.log') for details.
Looking at the tuned.log file, I can see:
2019-06-04 11:36:13,170 INFO tuned.plugins.plugin_script: calling script
'/usr/lib/tuned/cpu-partitioning/script.sh' with arguments '['verify']'
2019-06-04 11:36:13,178 ERROR tuned.plugins.plugin_script: script
'/usr/lib/tuned/cpu-partitioning/script.sh' error output:
'/usr/lib/tuned/cpu-partitioning/script.sh: 612: /usr/lib/tuned/
cpu-partitioning/script.sh: verify: not found
/usr/lib/tuned/cpu-partitioning/script.sh: 610:
/usr/lib/tuned/cpu-partitioning/script.sh: declare: not found'
2019-06-04 11:36:13,178 ERROR tuned.plugins.plugin_script: script
'/usr/lib/tuned/cpu-partitioning/script.sh' returned error code: 127
2019-06-04 11:36:13,178 ERROR tuned.plugins.plugin_script: verify: failed:
'['/usr/lib/tuned/cpu-partitioning/script.sh']'
The root cause is that this is a bash script and Debian10 uses Dash by default
which does not know about 'declare' statement.
* What outcome did you expect instead?
Verification successful
-- System Information:
Debian Release: 10.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-5-amd64 (SMP w/16 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages tuned depends on:
ii dbus 1.12.12-1
ii ethtool 1:4.19-1
ii gawk 1:4.2.1+dfsg-1
ii hdparm 9.58+ds-1
ii policykit-1 0.105-25
ii procps 2:3.3.15-2
ii python3 3.7.3-1
ii python3-configobj 5.0.6-3
ii python3-dbus 1.2.8-3
ii python3-decorator 4.3.0-1.1
ii python3-gi 3.30.4-1
ii python3-pyudev 0.21.0-1
ii virt-what 1.19-1
Versions of packages tuned recommends:
ii linux-cpupower 4.19.37-3
tuned suggests no packages.
-- Configuration Files:
/etc/tuned/active_profile changed:
cpu-partitioning
/etc/tuned/bootcmdline changed:
TUNED_BOOT_CMDLINE="skew_tick=1 nohz=on nohz_full=2-15 rcu_nocbs=2-15
tuned.non_isolcpus=00000003 intel_pstate=disable nosoftlockup"
TUNED_BOOT_INITRD_ADD="/tuned-initrd.img"
/etc/tuned/cpu-partitioning-variables.conf changed:
isolated_cores=2-15
/etc/tuned/profile_mode changed:
manual
-- no debconf information