* Use the CFQ I/O scheduler, rather than the ‘none’ scheduler. This

was already the case on Linux 2.6.32, but in newer kernels the CFQ
  scheduler is built as a module, so all block devices got the ‘none’
  scheduler instead.

svn path=/nixos/trunk/; revision=28972
This commit is contained in:
Eelco Dolstra 2011-09-02 13:19:45 +00:00
parent 8138feb630
commit 8b3fd3ed49

View File

@ -49,7 +49,7 @@ let kernel = config.boot.kernelPackages.kernel; in
default = true;
example = false;
description = ''
Whether to activate VESA video mode on boot
Whether to activate VESA video mode on boot.
'';
};
@ -91,8 +91,7 @@ let kernel = config.boot.kernelPackages.kernel; in
};
boot.initrd.kernelModules = mkOption {
default = [
];
default = [];
description = "List of modules that are always loaded by the initrd.";
};
@ -121,7 +120,10 @@ let kernel = config.boot.kernelPackages.kernel; in
system.modulesTree = [ kernel ] ++ config.boot.extraModulePackages;
boot.kernelParams =
[ "splash=verbose" ] ++
[ "splash=verbose"
# Force the Completely Fair Scheduler to be used by default.
"elevator=cfq"
] ++
optional config.boot.vesa "vga=0x317";
boot.kernelModules = [ "loop" ];
@ -163,6 +165,9 @@ let kernel = config.boot.kernelPackages.kernel; in
# Unix domain sockets (needed by udev).
"unix"
# Provide the CFQ scheduler in the initrd.
"cfq_iosched"
# Misc. stuff.
"pcips2" "serio" "atkbd" "xtkbd"
];
@ -170,7 +175,8 @@ let kernel = config.boot.kernelPackages.kernel; in
boot.initrd.kernelModules =
[ # For LVM.
"dm_mod"
# For usual AT keyboards
# For usual AT keyboards.
"i8042"
];