Failed to optimize the host with tuned.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

On Ubuntu 22.04.4 LTS, I try to install qemu/kvm according to the
guidance here [1]. In this step [2], I try to optimize the host with
tuned as follows:

```shell
$ sudo systemctl enable --now tuned
$ tuned-adm active
$ sudo tuned-adm profile virtual-host
$ tuned-adm verify
```
But the last step failed as follows:

```shell
werner@x13dai-t:~$ sudo 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.

werner@x13dai-t:~$ tail /var/log/tuned/tuned.log
2024-07-01 22:39:07,549 INFO     tuned.plugins.base: verify: passed:
device cpu71: 'governor' = 'performance'
2024-07-01 22:39:07,553 ERROR    tuned.plugins.plugin_sysctl: Failed
to read sysctl parameter 'kernel.sched_min_granularity_ns', the
parameter does not exist
2024-07-01 22:39:07,553 ERROR    tuned.plugins.base: verify: failed:
'kernel.sched_min_granularity_ns' = 'None', expected '10000000'
2024-07-01 22:39:07,553 ERROR    tuned.plugins.plugin_sysctl: Failed
to read sysctl parameter 'kernel.sched_wakeup_granularity_ns', the
parameter does not exist
2024-07-01 22:39:07,553 ERROR    tuned.plugins.base: verify: failed:
'kernel.sched_wakeup_granularity_ns' = 'None', expected '15000000'
2024-07-01 22:39:07,553 INFO     tuned.plugins.base: verify: passed:
'vm.dirty_ratio' = '40'
2024-07-01 22:39:07,553 INFO     tuned.plugins.base: verify: passed:
'vm.dirty_background_ratio' = '5'
2024-07-01 22:39:07,553 INFO     tuned.plugins.base: verify: passed:
'vm.swappiness' = '10'
2024-07-01 22:39:07,553 ERROR    tuned.plugins.plugin_sysctl: Failed
to read sysctl parameter 'kernel.sched_migration_cost_ns', the
parameter does not exist
2024-07-01 22:39:07,553 ERROR    tuned.plugins.base: verify: failed:
'kernel.sched_migration_cost_ns' = 'None', expected '5000000'
```

Do you have any tips/comments for fixing this problem?

[1] https://sysguides.com/install-kvm-on-linux
[2] https://sysguides.com/install-kvm-on-linux#6-07-optimize-the-host-with-tuned

Regards,
Zhao
-- 
Assoc. Prof. Hongsheng Zhao <hongyi.zhao@xxxxxxxxx>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux