Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message from Log #655

Open
stevefxp1 opened this issue Jul 1, 2024 · 7 comments
Open

Message from Log #655

stevefxp1 opened this issue Jul 1, 2024 · 7 comments

Comments

@stevefxp1
Copy link

Hello all,

I am seeing some warning and error messages in my TuneD log. What do these mean and should I be concerned:

1) WARNING tuned.plugins.plugin_cpu: unable to run x86_energy_perf_policy tool, ignoring CPU energy performance bias, is the tool installed?
2) Do you not support NVMe controllers in Ubuntu: INFO tuned.plugins.base: instance disk: assigning devices sda, loop7, loop3, loop2, sdc, loop1, loop4, dm-0, loop9, dm-3, dm-1, loop8, loop6, dm-2, loop0, sdb, loop5
3) ERROR tuned.plugins.plugin_sysctl: Failed to read sysctl parameter 'kernel.sched_min_granularity_ns', the parameter does not exist
4) ERROR tuned.plugins.plugin_sysctl: Failed to read sysctl parameter 'kernel.sched_wakeup_granularity_ns', the parameter does not exist

Thanks,
Steve

@yarda
Copy link
Contributor

yarda commented Jul 1, 2024

  1. WARNING tuned.plugins.plugin_cpu: unable to run x86_energy_perf_policy tool, ignoring CPU energy performance bias, is the tool installed?

Is the ' x86_energy_perf_policy' tool installed? It's usually in the kernel-tools package and is built from the kernel sources.

  1. Do you not support NVMe controllers in Ubuntu: INFO tuned.plugins.base: instance disk: assigning devices sda, loop7, loop3, loop2, sdc, loop1, loop4, dm-0, loop9, dm-3, dm-1, loop8, loop6, dm-2, loop0, sdb, loop5

NVMe should be supported, could you provide output of:

$ udevadm info /dev/YOUR_NVME_DEVICE
  1. ERROR tuned.plugins.plugin_sysctl: Failed to read sysctl parameter 'kernel.sched_min_granularity_ns', the parameter does not exist
  2. ERROR tuned.plugins.plugin_sysctl: Failed to read sysctl parameter 'kernel.sched_wakeup_granularity_ns', the parameter does not exist

Which TuneD profile triggers it? Recent upstream TuneD profiles use scheduler plugin, not sysctl plugin and it shouldn't trigger this error with recent kernels, e.g.:

[scheduler]
sched_latency_ns=60000000
sched_migration_cost_ns=500000
sched_min_granularity_ns=15000000
sched_wakeup_granularity_ns=2000000

@stevefxp1
Copy link
Author

stevefxp1 commented Jul 3, 2024 via email

@yarda
Copy link
Contributor

yarda commented Jul 3, 2024

  1. Sorry, which tools need to be installed?? I am on Ubuntu 22.04.4.

Probably linux-tools-common as from: https://packages.ubuntu.com/jammy/all/linux-tools-common/filelist

  1. Attached is the output of the command you asked for.

LGTM, maybe your TuneD version is too old. NVMe support was added into tuned-2.18.0. If you run Ubuntu 22.04.4 the version in the repo seems to be quite ancient tuned-2.15.0 as from: https://packages.ubuntu.com/jammy/all/tuned
The latest TuneD version is tuned-2.23.0 (https://github.com/redhat-performance/tuned/releases/). This would also explain why you trigger the sysctl errors.

@stevefxp1
Copy link
Author

stevefxp1 commented Jul 3, 2024 via email

@yarda
Copy link
Contributor

yarda commented Jul 3, 2024

Version bump and rebuilt of the Ubuntu package should probably work as with other Ubuntu packages. Or rebuilt of the TuneD package from the newer Ubuntu version. Instructions how to built/rebuilt packages are probably somewhere in the Ubuntu/Debian doc/wiki. Unfortunately, I don't have Ubuntu, thus I cannot provide detailed instructions.

Installation from sources should also work, you can unpack TuneD archive and run make install. But it isn't recommended to mix upstream tarballs with distro packages.

@yarda
Copy link
Contributor

yarda commented Jul 3, 2024

E.g.: https://help.ubuntu.com/community/UpdatingADeb

But I cannot test the instructions.

@stevefxp1
Copy link
Author

stevefxp1 commented Jul 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants