$ cryptsetup --perf-no_read_workqueue \
--perf-no_write_workqueue \
open /dev/disk name
With crypttab, add these options:
> no-read-workqueue
> no-write-workqueue
#Performance #Linux
In the Linux kernel๐ง, the cryptographic subsystem was designed with asynchronous cryptographic hardware in mind. These days, most CPUs offer powerful instructions to implement cryptographic algorithms at the CPU level. ๐ป๐ Additionally, storage devices are becoming faster and faster. Therefore, we suggest configuring Linux disk encryption, dm-crypt, into synchronous mode to avoid too much scheduling overhead if you’re not using offloading chips. ๐๐ฅ๏ธ