Bug 498363 - Baloo starts up every session and stays stuck at 100% disk usage
Summary: Baloo starts up every session and stays stuck at 100% disk usage
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: baloo-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-07 22:29 UTC by Pyx
Modified: 2025-03-17 03:47 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pyx 2025-01-07 22:29:25 UTC
SUMMARY

The `baloo_file` process starts on ym computer every time I login. It does not go away and will pin my SSD to 100% usage forever and eat up 300mb of memory.

STEPS TO REPRODUCE
1. Log in. 

OBSERVED RESULT
Baloo will start and never stop indexing regardless of what happens

EXPECTED RESULT
Baloo does not start, and if it does it will stop within a reasonable time

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.12.8-zen1 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.9.0 
Qt Version: 6.8.1

ADDITIONAL INFORMATION
Comment 1 tagwerk19 2025-01-08 06:21:06 UTC
(In reply to Pyx from comment #0)
> ... pin my SSD to 100% usage forever and eat up 300mb of memory.
Three possibilities here...

One that you've added/changed a large number of files. That should not be an issue since the BTRFS bug was fixed (quite some time ago, https://invent.kde.org/frameworks/baloo/-/merge_requests/131). However, if you are using BTRFS, have not reindexed since then and your index is larger than your RAM (as a rough indicator), then kill Baloo, purge and reindex.

Second, if you are I/O bound and Baloo is using *only* 300 MB is a bit strange. When run under systemd, the unit file for Baloo rather strictly limits RAM use to 512MB (you can check with "systemctl status --user kde-baloo"). That can be low and Baloo ends up repeatedly re-reading info from the index rather than having it "there", cached in memory. That I/O might be reads... but...

Third, if you've recently deleted a large number of files. Baloo doesn't batch up deletes in the same way as it batches up indexing requests (it normally indexed 40 files in a go and commits the results to the index). When you delete files, they are removed from the index one by one which can be a lot of work. Again, it might be worth looking at the size of the index (the file is under ~/.local/share/baloo)
Comment 2 tagwerk19 2025-01-20 11:20:44 UTC
(In reply to tagwerk19 from comment #1)
> ... Three possibilities here ...
Did any of the three fit with your situation?

It would be interesting to know if you purged and restarted the indexing you got any further. Following on from the second possibility (that Baloo is too strictly limited by the systemd Ram limits in the unit file), you can quite safely increase this, have a look at:
    https://bugs.kde.org/show_bug.cgi?id=470382#c2
You can try 25% first (rather than 512M) and see if it makes a difference.
Comment 3 Bug Janitor Service 2025-02-04 03:46:56 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Pyx 2025-02-15 19:08:47 UTC
(In reply to tagwerk19 from comment #2)
> (In reply to tagwerk19 from comment #1)
> > ... Three possibilities here ...
> Did any of the three fit with your situation?
> 
> It would be interesting to know if you purged and restarted the indexing you
> got any further. Following on from the second possibility (that Baloo is too
> strictly limited by the systemd Ram limits in the unit file), you can quite
> safely increase this, have a look at:
>     https://bugs.kde.org/show_bug.cgi?id=470382#c2
> You can try 25% first (rather than 512M) and see if it makes a difference.

Sorry, lost the email to this for a bit. I haven't seen it happen for a bit so I'm assuming it was a weird bug which got fixed by now.
Comment 5 Bug Janitor Service 2025-03-02 03:46:34 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2025-03-17 03:47:10 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.