|
Zbigniew Jędrzejewski-Szmek |
55abe5 |
From 223ea50950f97ed4e67311dfcffed7ffc27a7cd3 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 |
55abe5 |
rules.d/60-block-scheduler.rules | 5 +++++
|
|
Zbigniew Jędrzejewski-Szmek |
55abe5 |
rules.d/meson.build | 1 +
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
2 files changed, 6 insertions(+)
|
|
Zbigniew Jędrzejewski-Szmek |
55abe5 |
create mode 100644 rules.d/60-block-scheduler.rules
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
|
|
Zbigniew Jędrzejewski-Szmek |
a74696 |
diff --git a/rules.d/60-block-scheduler.rules b/rules.d/60-block-scheduler.rules
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
new file mode 100644
|
|
Zbigniew Jędrzejewski-Szmek |
55abe5 |
index 0000000000..480b941761
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
--- /dev/null
|
|
Zbigniew Jędrzejewski-Szmek |
a74696 |
+++ b/rules.d/60-block-scheduler.rules
|
|
Zbigniew Jędrzejewski-Szmek |
45c8a6 |
@@ -0,0 +1,6 @@
|
|
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 |
45c8a6 |
+ ENV{DEVTYPE}=="disk", \
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
+ ATTR{queue/scheduler}="bfq"
|
|
Zbigniew Jędrzejewski-Szmek |
a74696 |
diff --git a/rules.d/meson.build b/rules.d/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
55abe5 |
index ca4445d774..38d6aa6970 100644
|
|
Zbigniew Jędrzejewski-Szmek |
a74696 |
--- a/rules.d/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
a74696 |
+++ b/rules.d/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
55abe5 |
@@ -3,6 +3,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
d7b2d4 |
rules = files('''
|
|
Zbigniew Jędrzejewski-Szmek |
55abe5 |
60-autosuspend.rules
|
|
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
|