Disable dm-crypt workqueues for better SSD performance

This commit is contained in:
Valentin Brandl 2023-12-03 14:02:35 +01:00
parent 2cc97bf138
commit 6e2f93478b
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9

View File

@ -73,7 +73,12 @@ inputs.nixpkgs.lib.nixosSystem {
#availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; #availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ]; availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ];
kernelModules = [ ]; kernelModules = [ ];
luks.devices."system".device = "/dev/disk/by-uuid/06549d22-b96c-44f2-bb27-45200d5feda5"; luks.devices."system" = {
device = "/dev/disk/by-uuid/06549d22-b96c-44f2-bb27-45200d5feda5";
# better SSD performance
# https://wiki.archlinux.org/title/Dm-crypt/Specialties#Disable_workqueue_for_increased_solid_state_drive_(SSD)_performance
bypassWorkqueues = true;
};
}; };
kernelModules = [ "kvm-amd" ]; kernelModules = [ "kvm-amd" ];
# use latest kernel # use latest kernel