Bug 499028 - Copying files to Dolphin run as root is slow
Summary: Copying files to Dolphin run as root is slow
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 24.12.1
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-22 21:03 UTC by igor.zuk
Modified: 2025-02-06 21:54 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description igor.zuk 2025-01-22 21:03:02 UTC
SUMMARY


STEPS TO REPRODUCE
1. Open a root-owned directory in Dolphin with the "Open as Admin" option.
2. Open a regular directory in another instance of Dolphin.
3. Copy a file from the regular directory to the root-owned.

OBSERVED RESULT
The file is copied at the consistent speed of 2.0 MiB/s.

EXPECTED RESULT
The file is copied at least 1000 times faster.

SOFTWARE/OS VERSIONS
OS: Fedora 41 x64
Linux kernel: 6.12.9-200.fc41.x86_64 (64-bit)
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION

I have the Samsung 990 pro SSD. The files are copied between directories on this drive. I'm using LUKS.
Comment 1 fanzhuyifan 2025-01-23 00:05:00 UTC
Do you observe the same slow down for non-root owned directories on the same filesystem and physical drive?
Comment 2 igor.zuk 2025-01-23 09:27:52 UTC
I haven't experienced this problem during regular non-root usage.

I've managed to boil the problem down a little bit more. It doesn't matter who owns the directory, it's only about copying a file from a non-root Dolphin instance to a root instance. I did a few more experiments:

1. I tried copying a file from a non-root owned directory opened as non-root to another non-root owned directory opened as root. It was slow.
2. I tried copying it back. It was fast.
3. I tried the same, but with both directories opened as root. It was fast.
4. I tried copying a file using a single instance of Dolphin opened as root. It was fast.
Comment 3 igor.zuk 2025-01-28 13:22:05 UTC
(In reply to fanzhuyifan from comment #1)
> Do you observe the same slow down for non-root owned directories on the same
> filesystem and physical drive?

Hi fanzhuyifan@gmail.com, are your questions answered? Do you have more? Should we remove the "NEEDSINFO WAITINGFORINFO" status?
Comment 4 TraceyC 2025-02-06 21:54:30 UTC
Note: "Open as Admin" requires that kio-admin be installed
I am able to reproduce this on git-master using the original testing steps

I chose a 400MiB file
Copying the file from ~/ to /root/temp : 4-5 MiB/s. This was taking a while
Copying the same file from ~/ to ~/temp was completed immediately