Bug 451197 - Poor performance of encrypted device when opened by kded
Summary: Poor performance of encrypted device when opened by kded
Status: RESOLVED UPSTREAM
Alias: None
Product: frameworks-kded
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.86.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-06 15:09 UTC by Iacopo Piumi
Modified: 2022-05-29 21:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
The pop-up asking for the password (39.71 KB, image/png)
2022-03-06 15:09 UTC, Iacopo Piumi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Iacopo Piumi 2022-03-06 15:09:19 UTC
Created attachment 147330 [details]
The pop-up asking for the password

SUMMARY
If an external device which has a luks encrypted partition is plugged in, a pop-up asking for the password shows up. After typing the password the partition is decrypted and the file system is mounted, but file transfers suffer of poor performance.
I can experience the same lack of performance when opening the encrypted device manually by doing the following:
    cryptsetup open /dev/sdXY luks-device
If I open the encrypted device with the following options, I can experience better performance and better latency during operations:
    cryptsetup open --perf-no_write_workqueue --perf-no_read_workqueue /dev/sdXY luks-device



STEPS TO REPRODUCE
1. Plug in a device with a luks encrypted partition;
2. Wait for the pop-up asking for the password to show up;
3. Type the password and click "OK";
4. Start any file transfer toward or from the encrypted device.

OBSERVED RESULT
Poor file transfer performance, during both read and write operations.
Same poor results can be achieved if the device is opened manually with:
    cryptsetup open /dev/sdXY luks-device

EXPECTED RESULT
The same performance I would get if I opened the device manually with:
    cryptsetup open --perf-no_write_workqueue --perf-no_read_workqueue /dev/sdXY luks-device



SOFTWARE/OS VERSIONS
OS: Kubuntu 21.10
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2

ADDITIONAL INFORMATIONS
The writings on the attached picture reads as follow:
"WD Elements 2621" needs a password to access it. Please insert a password."
Comment 1 Ahmad Samir 2022-05-29 21:41:52 UTC
Solid (which is the library used by KDE software to handle storage devices) uses udisks.

This bug report/request should be filed at udisks bug tracker.