teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame use-bfq-scheduler.patch

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