Ansible/templates/io-scheduler.j2

8 lines
492 B
Plaintext
Raw Permalink Normal View History

2024-02-12 18:48:45 +00:00
# set scheduler for NVMe
ACTION=="add|change", KERNEL=="nvme[0-9]*", ATTR{queue/scheduler}="{{ iosched_nvme }}"
# set scheduler for SSD and eMMC
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="{{ iosched_ssd }}"
ACTION=="add|change", KERNEL=="mmcblk[0-9]*", ATTR{queue/scheduler}="{{ iosched_mmc }}"
# set scheduler for rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="{{ iosched_hdd }}"