summary refs log tree commit diff
diff options
context:
space:
mode:
authorjrp2014 <jrp2014@users.noreply.github.com>2019-08-03 12:34:30 +0100
committerDaniel Schaefer <git@danielschaefer.me>2020-02-09 19:50:13 +0100
commit788d8769f78d74b9491526c9d34849e525942c42 (patch)
tree31654432a2aa7ae0c600bcc220dd8a05bc29f373
parent17c9b7912e7caccdeb2b5ea0a357bd40a2e59cd8 (diff)
downloadnixpkgs-788d8769f78d74b9491526c9d34849e525942c42.tar
nixpkgs-788d8769f78d74b9491526c9d34849e525942c42.tar.gz
nixpkgs-788d8769f78d74b9491526c9d34849e525942c42.tar.bz2
nixpkgs-788d8769f78d74b9491526c9d34849e525942c42.tar.lz
nixpkgs-788d8769f78d74b9491526c9d34849e525942c42.tar.xz
nixpkgs-788d8769f78d74b9491526c9d34849e525942c42.tar.zst
nixpkgs-788d8769f78d74b9491526c9d34849e525942c42.zip
nixos/virtualisation.hypervGuest: use elevator=noop
Microsoft recommends the NOOP I/O scheduler for disk performance in HYPER-V:

https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/best-practices-for-running-linux-on-hyper-v

> NOOP is a first-in first-out queue that passes the schedule decision
> to be made by the hypervisor. It is recommended to use NOOP as the
> scheduler when running Linux virtual machine on Hyper-V.
-rw-r--r--nixos/modules/virtualisation/hyperv-guest.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/hyperv-guest.nix b/nixos/modules/virtualisation/hyperv-guest.nix
index 0f1f052880c..adc2810a993 100644
--- a/nixos/modules/virtualisation/hyperv-guest.nix
+++ b/nixos/modules/virtualisation/hyperv-guest.nix
@@ -32,7 +32,7 @@ in {
       ];
 
       kernelParams = [
-        "video=hyperv_fb:${cfg.videoMode}"
+        "video=hyperv_fb:${cfg.videoMode} elevator=noop"
       ];
     };