Skip to content

Commit

Permalink
nixos/virtualisation.hypervGuest: use elevator=noop
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrp2014 authored and JohnAZoidberg committed Feb 9, 2020
1 parent 17c9b79 commit 788d876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/virtualisation/hyperv-guest.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ in {
];

kernelParams = [
"video=hyperv_fb:${cfg.videoMode}"
"video=hyperv_fb:${cfg.videoMode} elevator=noop"
];
};

Expand Down

0 comments on commit 788d876

Please sign in to comment.