summary refs log tree commit diff
diff options
context:
space:
mode:
authorwolfboxpen <98444921+wolfboxpen@users.noreply.github.com>2022-12-09 05:07:29 +0000
committerLeah Neukirchen <leah@vuxu.org>2022-12-14 16:18:04 +0100
commitccdfcb744d7f8858baff2f1aab2fdb352cc4d33f (patch)
tree5e50569d78db585696a2650302a8edfa40077dbf
parent28f849335eed5db4787d3b7dc342dd4066b7183f (diff)
downloadrunit-void-ccdfcb744d7f8858baff2f1aab2fdb352cc4d33f.tar.gz
runit-void-ccdfcb744d7f8858baff2f1aab2fdb352cc4d33f.tar.xz
runit-void-ccdfcb744d7f8858baff2f1aab2fdb352cc4d33f.zip
cryptsetup,crypttab - Optional performance enhacement for fast ssds
Reference: https://wiki.archlinux.org/title/Dm-crypt/Specialties#Disable_workqueue_for_increased_solid_state_drive_(SSD)_performance

adds no-read-workqueue,no-write-workqueue options.
-rw-r--r--crypt.awk2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypt.awk b/crypt.awk
index c84761d..b29c87c 100644
--- a/crypt.awk
+++ b/crypt.awk
@@ -35,6 +35,8 @@ NF>4 { print "a valid crypttab has max 4 cols not " NF >"/dev/stderr"; next }
             val=para[2];
             if ( par == "readonly" || par == "read-only") commonopts=commonopts "-r ";
             else if ( par == "discard" ) commonopts=commonopts "--allow-discards ";
+            else if ( par == "no-read-workqueue" ) commonopts=commonopts "--perf-no_read_workqueue ";
+            else if ( par == "no-write-workqueue" ) commonopts=commonopts "--perf-no_write_workqueue ";
             else if ( par == "tries" ) commonopts=commonopts "-T " val " ";
             else if ( par == "swap" ) makeswap="y";
             else if ( par == "cipher" ) swapopts=swapopts "-c " val " ";