Summary: | High CPU usage with "size of contents" option when trying to analyze "/proc" folder | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Yevhen Popok <xalt7x.service> |
Component: | view-engine: details mode | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | elvis.angelaccio, fabian, kde.h8bcay, kfm-devel, meven.car, meven29, nate, postix, tagwerk19 |
Priority: | NOR | ||
Version: | 20.12.3 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/system/dolphin/commit/a81b287e7af7db24ff26a659fe599e5a8b290bd1 | Version Fixed In: | |
Sentry Crash Report: |
Description
Yevhen Popok
2021-03-07 23:11:18 UTC
FYI the folder size counting takes into account folder hiding, i.e with hidden folders hidden you wouldn't experience this issue. Activating option "Size of contents, up to 10 levels deep", leads to 100% cpu usage in a seemingly infinite loop (can last hours). Some dirs also report a much overestimated size. On one example, a dir (15 levels, 1045 dir, 41233 files, `du` size of 169 GiB) is reported as 512.2 TiB. Selecting a lower number of levels (2-3) does not trigger the problem (size is underestimated, as expected). The tree might contain circular symbolic links. fs is brtfs. I have not tried browsing /proc and did not create symbolic links there. Mentioned here: https://old.reddit.com/r/kde/comments/100uo69/dolphin_uses_100_of_each_cpu_core_one_after/ A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/485 Git commit 491068a4405f93ce66d4f49fa5ba5dee29e9546b by Fabian Vogt. Committed on 08/01/2023 at 17:18. Pushed by fvogt into branch 'release/22.12'. Don't recurse into symlinks when counting directory contents Symlink contents should not be visited for the purpose of displaying sizes. Not only is potentially misleading because the storage is actually used elsewhere (the target location), it can be completely wrong as contents can be visited multiple times, even recursively. M +3 -9 src/kitemviews/private/kdirectorycontentscounterworker.cpp https://invent.kde.org/system/dolphin/commit/491068a4405f93ce66d4f49fa5ba5dee29e9546b Git commit a81b287e7af7db24ff26a659fe599e5a8b290bd1 by Fabian Vogt. Committed on 09/01/2023 at 15:21. Pushed by fvogt into branch 'master'. Don't recurse into symlinks when counting directory contents Symlink contents should not be visited for the purpose of displaying sizes. Not only is potentially misleading because the storage is actually used elsewhere (the target location), it can be completely wrong as contents can be visited multiple times, even recursively. (cherry picked from commit 491068a4405f93ce66d4f49fa5ba5dee29e9546b) M +3 -9 src/kitemviews/private/kdirectorycontentscounterworker.cpp https://invent.kde.org/system/dolphin/commit/a81b287e7af7db24ff26a659fe599e5a8b290bd1 |