Bug 344037 - baloo_file take 100% CPU
Summary: baloo_file take 100% CPU
Status: RESOLVED DUPLICATE of bug 341581
Alias: None
Product: Baloo
Classification: Unmaintained
Component: Baloo File Daemon (other bugs)
Version First Reported In: 5.6.0
Platform: Arch Linux Linux
: NOR critical
Target Milestone: ---
Assignee: Vishesh Handa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-11 14:41 UTC by Olivier Churlaud
Modified: 2015-02-16 15:28 UTC (History)
2 users (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 Olivier Churlaud 2015-02-11 14:41:36 UTC
Well i cannot say much more since I don't know how to debug baloo. Here what package I have installed

extra/baloo-frameworks 5.6.0-1 [installed]
extra/baloo4 4.14.3-1   <====Not installed
extra/baloo4-akonadi 4.14.3-1 [installed]
extra/baloo4-widgets 4.14.3-1 [installed]
extra/libbaloo4 4.14.3-1 [installed]


Reproducible: Sometimes
Comment 1 JKAbrams 2015-02-12 00:03:06 UTC
Just adding this snippet of information if it helps.
I noticed my computer acting up and found baloo_file_extractor taking up 100% CPU.
Note: I've had it disabled for a long time and it enabled itself in a recent update (even tho the checkbox "Enable Desktop Search" is still not checked).
I've since disabled it again with:
balooctl disable

Same versions installed as poster, except I don't have baloo4-akonadi.
Comment 2 Vishesh Handa 2015-02-12 11:51:26 UTC
Was it the baloo_file or baloo_file_extractor process?
Comment 3 Olivier Churlaud 2015-02-12 12:13:40 UTC
I tell you this next time it happens
Comment 4 Ross Pokorny 2015-02-12 15:18:03 UTC
This is happening for me as well.  It is the baloo_file process.  Once the problem is triggered, It takes up a consistent 100% CPU (1 core).  Using iotop, I do not see it performing any file IO, and using strace, I do not see it making any system calls at all while the issue is occurring. 

I have generally noticed that the issue appears to be triggered for me after I run `npm install` on one of my development projects, which copies a moderate number of files from one directory to another.  Strangely, this project is in a folder which baloo is supposedly configured not to index, judging from the Desktop Search module in System Settings.  However, running this command does also result in files being written in ~/.npm and /tmp, so perhaps it is one of those locations that is triggering the problem.
Comment 5 Vishesh Handa 2015-02-12 16:12:40 UTC
It seems like the xapian database is getting corrupted for a few users. We're in touch with upstream (xapian) and we're trying to figure out a way to fix this.

Till then, the best way is to just reset the indexing -
$ balooctl disable
$ balooctl enable

*** This bug has been marked as a duplicate of bug 341581 ***
Comment 6 Ross Pokorny 2015-02-16 15:20:54 UTC
When I run 
$ balooctl disable
The stuck process does not die or change behavior.  I still have to kill it with SIGTERM
Comment 7 Vishesh Handa 2015-02-16 15:28:39 UTC
(In reply to Ross Pokorny from comment #6)
> When I run 
> $ balooctl disable
> The stuck process does not die or change behavior.  I still have to kill it
> with SIGTERM

Yeah. Could be. Kill it, disable it, and then enable.