30

Speedup dm-crypt
and Disable Workqueues

With cryptsetup:

$ 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. ๐Ÿš€๐Ÿ–ฅ๏ธ
Icon with a waving hand

Get in touch

sigma star gmbh
Eduard-Bodem-Gasse 6, 1st floor
6020 Innsbruck | Austria

sigma star gmbh logo