Summary: | baloo_file - using 100% cpu | ||
---|---|---|---|
Product: | [Unmaintained] Baloo | Reporter: | Vishesh Handa <me> |
Component: | Baloo File Daemon | Assignee: | Vishesh Handa <me> |
Status: | RESOLVED FIXED | ||
Severity: | critical | CC: | asturm, cfcohen77, dimitrisfx, fabriziomarcotulli, hotmusicfan, hrvoje.senjan, kamiox, luca.p.fama, lukas, mail, matt, olivier, PVince81, wengxt |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 5.4 | |
Sentry Crash Report: | |||
Attachments: | Crash when re-enabling baloo_file |
Description
Vishesh Handa
2014-12-05 15:47:36 UTC
*** Bug 343011 has been marked as a duplicate of this bug. *** *** Bug 343798 has been marked as a duplicate of this bug. *** *** Bug 344037 has been marked as a duplicate of this bug. *** I can confirm that baloo_file process uses 100% CPU and when i restart, baloo_file process gets stuck at some random indexed file: balooctl status Baloo File Indexer is running Indexed 3085 / 34791 files @Luca: Thanks for the info. This happens because the underlying database is getting corrupted. The only way to avoid it is to recreate the entire baloo index. You can do this via - $ balooctl disable $ balooctl enable We're working on making the database more resistant to corruptions. Created attachment 91966 [details]
Crash when re-enabling baloo_file
... and it crashes when I disable and reenable baloo_file with this backtrace
This is (In reply to Lukáš Tinkl from comment #6) > Created attachment 91966 [details] > Crash when re-enabling baloo_file > > ... and it crashes when I disable and reenable baloo_file with this backtrace This bug is due to database corruption. The only way around it to reset your database - $ balooctl disable $ balooclt enable That's exactly what I did to make it crash :) (In reply to Lukáš Tinkl from comment #8) > That's exactly what I did to make it crash :) Sorry. I should read it properly. Is this reproducible, if you disable/enable it again? Actually not, seems to have started fine this time. I'll report back if I see it crash or consume CPU again Clean installation of Kubuntu 15.04. I am downloading the Android SDK when I notice the CPU fan spinning loudly. KSysGuard shows one CPU core at 100%. I assumed it was the download process. I leave the PC open and go to sleep. The other day the CPU is still working constantly at 100%. This time I check the process list and it is baloo! I don't know what is going on. Thankfully we now have an option to disable the file search! du -h .local/share/baloo/ 20K .local/share/baloo/notes 20K .local/share/baloo/contacts 20K .local/share/baloo/calendars 20K .local/share/baloo/emailContacts 4,0K .local/share/baloo/file 20K .local/share/baloo/email 108K .local/share/baloo/ Not sure if it's the same thing I'm seeing on my env, here is what I see: - before the ugprade I had Plasma 5.2.99 (Suse RPM) and baloo_file wasn't noticeable - after the upgrade to Plasma 5.3 (and KDE 5.9 possibly, it was a system update), I now see baloo_file using 100% CPU (one core) after logging in Possibly a regression. I killed it now. Next time it happens I'll try to provide more info using the commands suggested above. Top reported "10035 cory 39 19 471780 38144 5904 R 100.0 0.2 6689:43 baloo_file". That's more than 4 days at 100% CPU. So reading the thread I tried: "balooctl disable". Which produced: ... SQL Committed Removing: 16 docs ERROR DocNotFoundError: Can't delete non-existent document #28 ERROR DocNotFoundError: Can't delete non-existent document #29 ERROR DocNotFoundError: Can't delete non-existent document #30 ERROR DocNotFoundError: Can't delete non-existent document #31 ERROR DocNotFoundError: Can't delete non-existent document #32 ERROR DocNotFoundError: Can't delete non-existent document #33 ERROR DocNotFoundError: Can't delete non-existent document #38 ERROR DocNotFoundError: Can't delete non-existent document #69 ERROR DocNotFoundError: Can't delete non-existent document #73 ERROR DocNotFoundError: Can't delete non-existent document #246 ERROR DocNotFoundError: Can't delete non-existent document #309 ERROR DocNotFoundError: Can't delete non-existent document #311 ERROR DocNotFoundError: Can't delete non-existent document #357 ERROR DocNotFoundError: Can't delete non-existent document #358 ERROR DocNotFoundError: Can't delete non-existent document #362 ERROR DocNotFoundError: Can't delete non-existent document #363 Adding: 0 docs Xapian Committed SQL Committed But the process did not exit. Several more attempts to run "balooctl disable" would report only "Disabling the File Indexer", but not actually kill the process. Running "kill 10035" successfully killed the process, and "balooctl status" now reported that the indexer was NOT running, and that it had indexed 0/0 files. Running "balooctl enable" appears to have created an index after a few minutes, because I can now run baloosearch and balooshow. I doubt that this will help much in troubleshooting the problem, but I at least wanted to report that it occurred. Tried this: balooctl disable But that doesn't kill it, have to do it manually with `killall baloo_file` After killing it, I am able to do: balooctl disable balooctl enable and the process restarts and seems to rescans a few files then stops (no more 100% cpu error). However if I reboot the computer, the next time I login it will get stuck at 100%. (In reply to Dimitris Menounos from comment #11) > Clean installation of Kubuntu 15.04. I am downloading the Android SDK when I > notice the CPU fan spinning loudly. KSysGuard shows one CPU core at 100%. I > assumed it was the download process. I leave the PC open and go to sleep. > The other day the CPU is still working constantly at 100%. This time I check > the process list and it is baloo! > > I don't know what is going on. Thankfully we now have an option to disable > the file search! > > du -h .local/share/baloo/ > 20K .local/share/baloo/notes > 20K .local/share/baloo/contacts > 20K .local/share/baloo/calendars > 20K .local/share/baloo/emailContacts > 4,0K .local/share/baloo/file > 20K .local/share/baloo/email > 108K .local/share/baloo/ I just wantto piggybank on this comment. I just installed Kubuntu15.04 and Baloo takes 49% CPU (one of my two cores on an Acer Aspire 5553-4220) Fixed with Plasma 5.4 Hello! Baloo_file or baloo_file_extractor have very high CPU usage when multiple files has being downloaded to the computer. openSUSE Leap 42.2/42.3 with Plasma 5.8 LTS. |