summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <christoph@cullmann.io>2024-08-24 18:42:03 +0200
committerChristoph Cullmann <christoph@cullmann.io>2024-08-24 18:42:03 +0200
commita31b37a6904397192ff025d7af0dd342322103ff (patch)
tree6eb38b993d215a376f2ccf0c8acee5396676b7e6
parenta83ad0f2eb709fbcf6860c746654dca35ab42661 (diff)
ssd tuning
see https://wiki.archlinux.org/title/Dm-crypt/Specialties#Disable_workqueue_for_increased_solid_state_drive_(SSD)_performance
-rw-r--r--beta/hardware-configuration.nix1
-rw-r--r--mini/hardware-configuration.nix2
-rw-r--r--neko/hardware-configuration.nix3
3 files changed, 6 insertions, 0 deletions
diff --git a/beta/hardware-configuration.nix b/beta/hardware-configuration.nix
index 215e221..af480f1 100644
--- a/beta/hardware-configuration.nix
+++ b/beta/hardware-configuration.nix
@@ -22,6 +22,7 @@
boot.initrd.luks.devices."crypt0" = {
device = "/dev/disk/by-id/nvme-SAMSUNG_MZVLB1T0HBLR-000L2_S4DZNX0R362286-part2";
allowDiscards = true;
+ bypassWorkqueues = true;
};
fileSystems."/nix" =
{ device = "/dev/mapper/crypt0";
diff --git a/mini/hardware-configuration.nix b/mini/hardware-configuration.nix
index 2f837f3..ed48edd 100644
--- a/mini/hardware-configuration.nix
+++ b/mini/hardware-configuration.nix
@@ -22,10 +22,12 @@
boot.initrd.luks.devices."crypt0" = {
device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part2";
allowDiscards = true;
+ bypassWorkqueues = true;
};
boot.initrd.luks.devices."crypt1" = {
device = "/dev/disk/by-id/ata-CT2000MX500SSD1_2138E5D5061F";
allowDiscards = true;
+ bypassWorkqueues = true;
};
fileSystems."/nix" =
{ device = "/dev/mapper/crypt0";
diff --git a/neko/hardware-configuration.nix b/neko/hardware-configuration.nix
index 86705cb..567654b 100644
--- a/neko/hardware-configuration.nix
+++ b/neko/hardware-configuration.nix
@@ -22,14 +22,17 @@
boot.initrd.luks.devices."crypt0" = {
device = "/dev/disk/by-id/nvme-Seagate_FireCuda_530_ZP4000GM30013_7VS01VBM-part2";
allowDiscards = true;
+ bypassWorkqueues = true;
};
boot.initrd.luks.devices."crypt1" = {
device = "/dev/disk/by-id/nvme-CT2000P5PSSD8_213330E4ED05";
allowDiscards = true;
+ bypassWorkqueues = true;
};
boot.initrd.luks.devices."crypt2" = {
device = "/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_2TB_S69ENF0R846614L";
allowDiscards = true;
+ bypassWorkqueues = true;
};
fileSystems."/nix" =
{ device = "/dev/mapper/crypt0";