|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
From 464a73411c13596a130a7a8f0ac00ca728e5f69e Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
Date: Wed, 14 Aug 2019 15:57:42 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
Subject: [PATCH] udev: use bfq as the default scheduler
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
As requested in https://bugzilla.redhat.com/show_bug.cgi?id=1738828.
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
Test results are that bfq seems to behave better and more consistently on
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
typical hardware. The kernel does not have a configuration option to set
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
the default scheduler, and it currently needs to be set by userspace.
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
See the bug for more discussion and links.
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
rules/60-block-scheduler.rules | 5 +++++
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
rules/meson.build | 1 +
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
2 files changed, 6 insertions(+)
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
create mode 100644 rules/60-block-scheduler.rules
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
diff --git a/rules/60-block-scheduler.rules b/rules/60-block-scheduler.rules
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
new file mode 100644
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
index 00000000000..480b941761f
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
--- /dev/null
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
+++ b/rules/60-block-scheduler.rules
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
@@ -0,0 +1,5 @@
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
+# do not edit this file, it will be overwritten on update
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
+ACTION=="add", SUBSYSTEM=="block", \
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
+ KERNEL=="mmcblk*[0-9]|msblk*[0-9]|mspblk*[0-9]|sd*[!0-9]|sr*", \
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
+ ATTR{queue/scheduler}="bfq"
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
diff --git a/rules/meson.build b/rules/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
index b6a32ba77e2..1da958b4d46 100644
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
--- a/rules/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
+++ b/rules/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
@@ -2,6 +2,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
rules = files('''
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
60-block.rules
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
+ 60-block-scheduler.rules
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
60-cdrom_id.rules
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
60-drm.rules
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
60-evdev.rules
|