cryptsetup - supporting no_read_workqueue/no_write_workqueue on SSDs


 Share

1 1

Recommended Posts

Dear Armbian community,

 

although I'm using Armbian a lot, I never had to submit anything to this forum (fortunately, because it works so well :-)),

 

On my PC I've experienced lags on heavy IO operations. After a short dig into available information,

I found a useful Cloudflare article on Kernel queues together with dm-crypt.

 

A good & short summary on possible actions for users can be found here:

 

https://wiki.archlinux.org/index.php/Dm-crypt/Specialties#Disable_workqueue_for_increased_solid_state_drive_(SSD)_performance

 

Enabling the no-read-workqueue & no-write-workqueue options helped a lot!

 

 

As I'm using a RockPi4 with the NVMe SSD with encryption, I thought this should apply to my SBC as well.

 

Unfortunately, Armbian/Debian Buster uses cryptsetup v2.1.0

 

which does NOT support these options.

According to the changelog, this option was introduced in v2.3.4:

https://gitlab.com/cryptsetup/cryptsetup/-/blob/master/docs/v2.3.4-ReleaseNotes

 

As Armbian uses a kernel > 5.9, the kernel infrastructure should be available.

 

Fortunately, crypsetup v2.3.4 exists in the buster-backports repo:

https://packages.debian.org/buster-backports/cryptsetup

 

Solution:

 

# sudo apt install cryptsetup/buster-backports


 

Link to post
Share on other sites

Armbian is a community driven open source project. Do you like to contribute your code?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

1 1