Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#61389 - [linux-zen] Changing IO schedulers on Linux 4.20 doesn't work.

Attached to Project: Arch Linux
Opened by Gabor Hauzer (cysp74) - Sunday, 13 January 2019, 22:54 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 13 January 2019, 22:56 GMT
Task Type Bug Report
Category Kernel
Status Unconfirmed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:

Changing IO schedulers on Linux 4.20 doesn't work neither from command line nor through udevd.

Additional info:
4.20.2-zen1-1-zen #1 ZEN SMP PREEMPT Sun Jan 13 17:49:59 UTC 2019 x86_64 GNU/Linux
* config and/or log files etc.

[root@**** queue]# more /etc/udev/rules.d/own.rules
ACTION=="add|change", KERNEL=="nvme[0-9]*n[0-9]", ATTR{queue/scheduler}="none"
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{removable}=="0", ATTR{queue/scheduler}="none"


Steps to reproduce:

[root@**** queue]# uname -a
Linux **** 4.20.2-zen1-1-zen #1 ZEN SMP PREEMPT Sun Jan 13 17:49:59 UTC 2019 x86_64 GNU/Linux
[root@**** queue]# pwd
/sys/block/nvme0n1/queue
[root@**** queue]# ls -l scheduler
-rw-r--r-- 1 root root 4096 Jan 13 23:45 scheduler
[root@**** queue]# cat scheduler
mq-deadline kyber [bfq] none
[root@**** queue]# echo none > scheduler
[root@**** queue]# cat scheduler
mq-deadline kyber [bfq] none
[root@**** queue]# echo deadbeef > scheduler
[root@**** queue]# cat scheduler
mq-deadline kyber [bfq] none
[root@**** queue]# echo kyber > scheduler
[root@**** queue]# cat scheduler
mq-deadline kyber [bfq] none
[root@**** queue]#
This task depends upon

2019-01-21: A task closure has been requested. Reason for request: Solved
Comment by Dave Reisner (falconindy) - Sunday, 13 January 2019, 22:56 GMT
Works just fine on core/linux.
Comment by loqs (loqs) - Sunday, 13 January 2019, 23:24 GMT Comment by loqs (loqs) - Monday, 21 January 2019, 02:54 GMT Comment by Gabor Hauzer (cysp74) - Monday, 21 January 2019, 10:03 GMT
Thanks for your efforts, works as expected, pls see below:

[root@**** ~]# cat /sys/block/sda/queue/scheduler
[none] mq-deadline kyber bfq
[root@**** ~]# echo bfq > /sys/block/sda/queue/scheduler
[root@**** ~]# cat /sys/block/sda/queue/scheduler
mq-deadline kyber [bfq] none
[root@**** ~]# echo none > /sys/block/sda/queue/scheduler
[root@**** ~]# cat /sys/block/sda/queue/scheduler
[none] mq-deadline kyber bfq
[root@**** ~]#


Rgds,
hg



Loading...