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

Multiple disk instances targetting same devices with different rules does not work #749

Open
italogv opened this issue Feb 11, 2025 · 1 comment

Comments

@italogv
Copy link

italogv commented Feb 11, 2025

I configured a profile with multiple instances of the disk plugin:

[disk-apm]
type=disk
devices=sda,sdb,sdc
apm=255

[disk-spindown]
type=disk
devices=sda,sdb,sdc,sdd
spindown=0

The problem is only sdd gets the spindown=0 applied.
I tried using replace=1 and the same happens.

The log always show:

2025-02-11 18:56:54,708 INFO     tuned.plugins.base: instance disk-apm (disk): assigning devices sda,sdb,sdc
2025-02-11 18:56:54,722 INFO     tuned.plugins.base: instance disk-spindown (disk): assigning devices sdd

Is there a way to apply different instance rules to same devices?

tuneD: 2.15.0
system: Linux 6.6.0-1-amd64 Debian 6.6.52-1

@yarda
Copy link
Contributor

yarda commented Feb 12, 2025

This is not supported, each device can be handled by max one instance, you can set it e.g.:

[disk-powersave]
type=disk
devices=sda,sdb,sdc
apm=255

[disk-powersave-spindown]
type=disk
devices=sdd
apm=255
spindown=0

In todo we have "instance include" which should work similarly like the profile include, but on instances and would allow you to write it the following way:

[disk-apm]
type=disk
devices=sda,sdb,sdc
apm=255

[disk-spindown]
include=disk-apm
devices=sdd
spindown=0

But it isn't implemented yet.

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