|
Zbigniew Jędrzejewski-Szmek |
d906ff |
From e0af3560ca9b1515e0680919733a09914d3325ab 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 |
d906ff |
@@ -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 |
a74696 |
diff --git a/rules.d/meson.build b/rules.d/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
d906ff |
index e6533e001a..bfa26904d0 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 |
d906ff |
@@ -7,6 +7,7 @@ install_data(
|
|
Zbigniew Jędrzejewski-Szmek |
d906ff |
rules = files(
|
|
Zbigniew Jędrzejewski-Szmek |
d906ff |
'60-autosuspend.rules',
|
|
Zbigniew Jędrzejewski-Szmek |
d906ff |
'60-block.rules',
|
|
Zbigniew Jędrzejewski-Szmek |
d906ff |
+ '60-block-scheduler.rules',
|
|
Zbigniew Jędrzejewski-Szmek |
d906ff |
'60-cdrom_id.rules',
|
|
Zbigniew Jędrzejewski-Szmek |
d906ff |
'60-drm.rules',
|
|
Zbigniew Jędrzejewski-Szmek |
d906ff |
'60-evdev.rules',
|