Bug 503430 - Connecting my AOSP smartphone causes all filesystem operations to significantly slow
Summary: Connecting my AOSP smartphone causes all filesystem operations to significant...
Status: RESOLVED WORKSFORME
Alias: None
Product: kde
Classification: I don't know
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL: https://discussion.fedoraproject.org/...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-27 11:33 UTC by Roke Julian Lockhart Beedell
Modified: 2025-05-10 14:20 UTC (History)
1 user (show)

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


Attachments
An Archive Of Unprocessed Performance Data After Connection (2.44 MB, application/x-7z-compressed)
2025-04-27 11:33 UTC, Roke Julian Lockhart Beedell
Details
An Archive Of Unprocessed Performance Data Before Connection (1.99 MB, application/x-7z-compressed)
2025-04-27 11:33 UTC, Roke Julian Lockhart Beedell
Details
An Archive Of Processed Performance Data (1.59 MB, application/x-xz)
2025-04-27 11:33 UTC, Roke Julian Lockhart Beedell
Details
An Archive Of Flamegraphs (417.71 KB, application/x-7z-compressed)
2025-04-27 11:34 UTC, Roke Julian Lockhart Beedell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roke Julian Lockhart Beedell 2025-04-27 11:33:10 UTC
Created attachment 180700 [details]
An Archive Of Unprocessed Performance Data After Connection

SUMMARY

Connecting my smartphone to my PC causes filesystem slowdown for all KDE applications I've tried. That is, Dolphin, Gwenview, and the File Picker KDE Portal (via Gittyup's Flatpak). This behaviour is new.

STEPS TO REPRODUCE

To reproduce the exact configuration I have (IDK how much applies):

1. Connect a SITECOM CN-386 4-port USB-C hub to the MB's TB4 port.
2. Connect a XAOSUN TB4 cable to the hub.
3. Connect a Fairphone 5 5G to the cable. On my smartphone, I have USB debugging enabled.

OBSERVED RESULT

Every application which interacts with the filesystem slows to an unreasonable amount.

EXPECTED RESULT

It shouldn't slow. It never did, until now.

SOFTWARE/OS VERSIONS

I've explicitly verified that this *affects* `xdg-desktop-portal-kde-6.3.4-2.fc42.x86_64`, `dolphin-25.04.0-3.fc42.x86_64`, and `gwenview-25.04.0-2.fc42.x86_64` (and, strangely, `android-tools-35.0.2-3.fc42.x86_64` and `sudo-1.9.15-7.p5.fc42.x86_64`). The DE and OS are undermentioned:

> Operating System: Fedora Linux 42
> KDE Plasma Version: 6.3.4
> KDE Frameworks Version: 6.13.0
> Qt Version: 6.9.0
> Kernel Version: 6.14.3-300.fc42.x86_64 (64-bit)
> Graphics Platform: Wayland

> Manufacturer: ASRock
> Product Name: X670E Taichi

I've also verified that this *doesn't* affect `xdg-desktop-portal-gtk-1.15.3-1.fc42.x86_64`.

ADDITIONAL INFORMATION

I'll add some files with the undermentioned data contained:

> .
> ├── Flamegraphs
> │   ├── bad-adb.avif
> │   ├── bad-dolphin.avif
> │   ├── bad-gwenview.avif
> │   ├── good-adb.avif
> │   ├── good-dolphin.avif
> │   └── good-gwenview.avif
> └── Performance Data
>     ├── Processed
>     │   ├── bad-adb.data.perfparser
>     │   ├── bad-dolphin.data.perfparser
>     │   ├── bad-gwenview.data.perfparser
>     │   ├── good-adb.data.perfparser
>     │   ├── good-dolphin.data.perfparser
>     │   └── good-gwenview.data.perfparser
>     └── Unprocessed
>         ├── bad-adb.data
>         ├── bad-dolphin.data
>         ├── bad-gwenview.data
>         ├── good-adb.data
>         ├── good-dolphin.data
>         └── good-gwenview.data
> 
> 5 directories, 18 files

This was originally reported at https://discussion.fedoraproject.org/t/connecting-my-smartphone-to-my-pc-via-a-hub-causes-filesystem-slowdown/150633/4?u=rokejulianlockhart#:~:text=:speech_balloon:,a%20hub)%20causes%20filesystem%20slowdown.
Comment 1 Roke Julian Lockhart Beedell 2025-04-27 11:33:35 UTC
Created attachment 180701 [details]
An Archive Of Unprocessed Performance Data Before Connection
Comment 2 Roke Julian Lockhart Beedell 2025-04-27 11:33:51 UTC
Created attachment 180702 [details]
An Archive Of Processed Performance Data
Comment 3 Roke Julian Lockhart Beedell 2025-04-27 11:34:07 UTC
Created attachment 180703 [details]
An Archive Of Flamegraphs
Comment 4 Roke Julian Lockhart Beedell 2025-04-27 12:05:11 UTC
(In reply to Roke Julian Lockhart Beedell from comment #0)

The post at Fedora's Discourse instance contains this information and more (BZ can only do so much), including YouTube videos that undeniably demonstrate this problem. Please at least skim it, triage owner.
Comment 5 Roke Julian Lockhart Beedell 2025-04-28 09:33:18 UTC
*** Bug 503427 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2025-04-28 16:11:53 UTC
No idea how to even begin to debug this.
Comment 7 Roke Julian Lockhart Beedell 2025-04-28 16:48:16 UTC
(In reply to Nate Graham from comment #6)

I'll keep trying to take a stab at it. I'm damn lucky that it's so consistently reproducible and that the effect is so profound. I'm going to try all kinds of ports and cable combinations next, then try to ascertain whether SystemD slows with the smartphone connected on boot. Per Firefox's apparent unaffectedness, I also need to test more GTK applications that don't support the FreeDesktop File Portal, but they're difficult to locate nowadays.
Comment 8 Roke Julian Lockhart Beedell 2025-05-10 14:20:08 UTC
(In reply to Roke Julian Lockhart Beedell from comment #7)

Just like https://github.com/MediaArea/MediaInfo/issues/1111#issuecomment-2853896160, this doesn't appear to reproduce anymore, and I've come to the conclusion that a DLL in `kio-extras` might have caused some system-wide problems, but has now been remediated. It was probably the fault of the distribution, in that case.