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