about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2014-11-20 05:01:10 +0100
committeraszlig <aszlig@redmoonstudios.org>2014-11-20 05:01:48 +0100
commit39dc6c446dcf9393f2569a2e206a4e61cec057ec (patch)
treeaaea3dd439abc5c5040c78918074802e6d92d9a6 /machines
parentf20bc75d791c36379af9dd65a0c4981c03852d13 (diff)
tishtushi: Add and enable BFQ scheduler patch.
I hate it to not being able to use my system while there is heavy I/O
load :-/

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'machines')
-rw-r--r--machines/tishtushi.nix19
1 files changed, 17 insertions, 2 deletions
diff --git a/machines/tishtushi.nix b/machines/tishtushi.nix
index 97a081a9..45f92389 100644
--- a/machines/tishtushi.nix
+++ b/machines/tishtushi.nix
@@ -10,8 +10,23 @@ let
 in {
   imports = singleton ../common-workstation.nix;
 
-  boot = {
-    kernelPackages = pkgs.linuxPackages_latest;
+  boot = rec {
+    kernelPackages = let
+      origKernel = pkgs.linux_testing;
+      bfqsched = pkgs.vuizvuiKernelPatches.bfqsched // {
+        extraConfig = ''
+          IOSCHED_BFQ y
+          CGROUP_BFQIO y
+          DEFAULT_BFQ y
+          DEFAULT_CFQ n
+          DEFAULT_IOSCHED "bfq"
+        '';
+      };
+      kernel = origKernel.override {
+        kernelPatches = origKernel.kernelPatches ++ singleton bfqsched;
+      };
+    in pkgs.linuxPackagesFor kernel kernelPackages;
+
     initrd.kernelModules = [ "fbcon" "usb_storage" ];
     loader.grub.device = "/dev/disk/by-id/${diskID}";
     loader.grub.timeout = 0;