summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--profiles/base/packages1
-rw-r--r--sys-kernel/bfq-scheduler/bfq-scheduler-1.0-r1.ebuild16
-rw-r--r--sys-kernel/bfq-scheduler/files/60-bfq-sd.rules1
3 files changed, 18 insertions, 0 deletions
diff --git a/profiles/base/packages b/profiles/base/packages
index 02f0494..12466f2 100644
--- a/profiles/base/packages
+++ b/profiles/base/packages
@@ -20,6 +20,7 @@ sys-fs/inotify-tools
sys-apps/multiconfig
app-metrics/collectd
net-misc/whois
+sys-kernel/bfq-scheduler
# System tools
sys-process/lsof
diff --git a/sys-kernel/bfq-scheduler/bfq-scheduler-1.0-r1.ebuild b/sys-kernel/bfq-scheduler/bfq-scheduler-1.0-r1.ebuild
new file mode 100644
index 0000000..fa8213e
--- /dev/null
+++ b/sys-kernel/bfq-scheduler/bfq-scheduler-1.0-r1.ebuild
@@ -0,0 +1,16 @@
+EAPI=6
+
+DESCRIPTION="udev rules to enable BFQ scheduler on all /dev/sd* drives"
+HOMEPAGE="http://git.cynerd.cz/gentoo-personal-overlay/"
+S="${WORKDIR}"
+
+LICENSE="GPL-3.0+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND="virtual/udev"
+
+src_install() {
+ insinto /lib64/udev/rules.d
+ doins "${FILESDIR}/60-bfq-sd.rules"
+}
diff --git a/sys-kernel/bfq-scheduler/files/60-bfq-sd.rules b/sys-kernel/bfq-scheduler/files/60-bfq-sd.rules
new file mode 100644
index 0000000..7799518
--- /dev/null
+++ b/sys-kernel/bfq-scheduler/files/60-bfq-sd.rules
@@ -0,0 +1 @@
+ACTION=="add|change", KERNEL=="sd*[!0-9]", ATTR{queue/scheduler}="bfq"