Bug 493710 - baloo_file_extractor should pause while on battery
Summary: baloo_file_extractor should pause while on battery
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: baloo-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-26 20:04 UTC by Bruno Pitrus
Modified: 2024-11-16 03:46 UTC (History)
1 user (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 Bruno Pitrus 2024-09-26 20:04:57 UTC
STEPS TO REPRODUCE
1. Have a lot of unindexed files
2. Unplug your laptop fromAC

OBSERVED RESULT
baloo_file_extractor still consumes an entire core at idle anddischarges the battery

EXPECTED RESULT
No idle tasks run

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed
KDE Plasma Version: 6.1.90
KDE Frameworks Version: 6.6.0 
Qt Version: 6.7.2
Comment 1 tagwerk19 2024-09-29 21:41:34 UTC
(In reply to Bruno Pitrus from comment #0)
> OBSERVED RESULT
> baloo_file_extractor still consumes an entire core at idle and discharges the
> battery
Do you know that the system has Power Management installed... I reference
     https://bugs.kde.org/show_bug.cgi?id=488439#c8
     https://bugs.kde.org/show_bug.cgi?id=446071#c22
which talk about Nixos and Debian.

Maybe you need an equivalent install on Tumbleweed to provide the "is this machine on mains or battery" service
Comment 2 Bruno Pitrus 2024-09-29 21:44:45 UTC
> Maybe you need an equivalent install on Tumbleweed to provide the "is this
> machine on mains or battery" service

Plasma clearly knows whether the system is on battery, since the tray icon displays the battery status correctly. Is this the service you're talking about?
Comment 3 tagwerk19 2024-09-30 06:32:09 UTC
(In reply to Bruno Pitrus from comment #2)
> Plasma clearly knows whether the system is on battery, since the tray icon
> displays the battery status correctly. Is this the service you're talking
> about?
Alas this is outside my area of expertise (and only have VMs to test on) but I'd say it would make sense if the the tray icon and Baloo refer to the same info...

It might be worth adding the baloo debug options described in
    https://bugs.kde.org/show_bug.cgi?id=446071#c23
That should show whether Baloo thinks it is "onBattery".

In parallel... 

It would be worth running "balooctl monitor" to see what Baloo is indexing, whether you see a stream of filenames.

How big is your ~/.local/share/baloo/index file?

And see what "systemctl --user status kde-baloo" shows you. You are looking to see whether Baloo is hitting the memory limits set in the unit file (by default it is allowed 512 MB, which can be really small and Baloo will slow down considerably when it hits the limit)
Comment 4 tagwerk19 2024-10-17 05:29:04 UTC
Did you discover anything?
Comment 5 Bug Janitor Service 2024-11-01 03:47:11 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 2024-11-16 03:46:52 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.