Bug 2154817

Summary: Set no_read_workqueue and no_write_workqueue options for dm-crypt on SSD
Product: [Fedora] Fedora Reporter: Timothée Ravier <travier>
Component: python-blivetAssignee: Blivet Maintenance Team <blivet-maint-list>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 40CC: anaconda-maint-list, blivet-maint-list, dlehman, japokorn, jlebon, miabbott, mkolman, rvykydal, vponcova, vslavik, vtrefny, w
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-16 07:41:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Timothée Ravier 2022-12-19 10:58:15 UTC
Description of problem:

dm-crypt devices located on SSD storage should have the `no_read_workqueue` and `no_write_workqueue` set by default when the devices are created the first time in the installer.

See the following discussions:
- https://wiki.archlinux.org/title/Dm-crypt/Specialties#Disable_workqueue_for_increased_solid_state_drive_(SSD)_performance
- https://github.com/fedora-silverblue/issue-tracker/issues/388
- https://blog.cloudflare.com/speeding-up-linux-disk-encryption/
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/md/dm-crypt.c?id=39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877

Version-Release number of selected component (if applicable):

Latest Fedora

How reproducible:

Always

Steps to Reproduce:
1. Install Fedora 37/Rawhide with an encrypted disk
2. `cryptsetup luksDump /dev/sdaX | grep Flags` returns `Flags: <empty>`

Actual results:

Low disk read/write performance with `Flags: <empty>`

Expected results:

Fast disk read/write performance with `Flags:          no-read-workqueue no-write-workqueue`

Comment 1 Vendula Poncova 2023-01-10 14:29:48 UTC
It looks like something that should be handled in out storage library. Reassigning to blivet.

Comment 2 Ben Cotton 2023-02-07 15:01:13 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 3 Aoife Moloney 2024-02-15 22:55:49 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 4 Aoife Moloney 2025-04-25 10:04:25 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '40'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 40 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 5 Aoife Moloney 2025-05-16 07:41:02 UTC
Fedora Linux 40 entered end-of-life (EOL) status on 2025-05-13.

Fedora Linux 40 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.