From 6e2f93478bb9f72f547c75884afa8919004d26da Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sun, 3 Dec 2023 14:02:35 +0100 Subject: [PATCH] Disable dm-crypt workqueues for better SSD performance --- machines/morpheus.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/machines/morpheus.nix b/machines/morpheus.nix index bb5d77d..7cb48df 100644 --- a/machines/morpheus.nix +++ b/machines/morpheus.nix @@ -73,7 +73,12 @@ inputs.nixpkgs.lib.nixosSystem { #availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ]; 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" ]; # use latest kernel