From 6c80d9907bf8eb4bc7a5de02489d6f24eb79f29f Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Tue, 6 Feb 2024 23:44:30 +0800 Subject: [PATCH] feat: luks - disable workqueue for increased SSD performance --- hosts/12kingdoms_shoukei/hardware-configuration.nix | 5 +++++ hosts/idols_ai/hardware-configuration.nix | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/hosts/12kingdoms_shoukei/hardware-configuration.nix b/hosts/12kingdoms_shoukei/hardware-configuration.nix index 18ccd804..db30eb96 100644 --- a/hosts/12kingdoms_shoukei/hardware-configuration.nix +++ b/hosts/12kingdoms_shoukei/hardware-configuration.nix @@ -53,6 +53,11 @@ # whether to allow TRIM requests to the underlying device. # it's less secure, but faster. allowDiscards = true; + # Whether to bypass dm-crypt’s internal read and write workqueues. + # Enabling this should improve performance on SSDs; + # https://wiki.archlinux.org/index.php/Dm-crypt/Specialties#Disable_workqueue_for_increased_solid_state_drive_(SSD)_performance + bypassWorkqueues = true; + }; }; diff --git a/hosts/idols_ai/hardware-configuration.nix b/hosts/idols_ai/hardware-configuration.nix index 584acc5e..e7cdc8f7 100644 --- a/hosts/idols_ai/hardware-configuration.nix +++ b/hosts/idols_ai/hardware-configuration.nix @@ -56,6 +56,10 @@ # whether to allow TRIM requests to the underlying device. # it's less secure, but faster. allowDiscards = true; + # Whether to bypass dm-crypt’s internal read and write workqueues. + # Enabling this should improve performance on SSDs; + # https://wiki.archlinux.org/index.php/Dm-crypt/Specialties#Disable_workqueue_for_increased_solid_state_drive_(SSD)_performance + bypassWorkqueues = true; }; };