Bug 332759 - Add option to turn off the File Indexer to the kcm UI
Summary: Add option to turn off the File Indexer to the kcm UI
Status: RESOLVED INTENTIONAL
Alias: None
Product: Baloo
Classification: Unmaintained
Component: Widgets (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR minor
Target Milestone: ---
Assignee: Vishesh Handa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-28 22:15 UTC by Roland Leißa
Modified: 2014-05-06 06:09 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 Roland Leißa 2014-03-28 22:15:18 UTC
The option already exists in the config file. So why not adding this option to the UI?

Reproducible: Always




I'm on KDE 4.12.95
Comment 1 Vishesh Handa 2014-03-28 22:27:48 UTC
I dislike adding the ability to switch off the indexer as the a traditional user has no knowledge about indexing. They do however understand folders and where stuff is searched - hence the widget to exclude folders.

Currently, if your HOME directory is added to the list of exclude folders, then baloo_file will be be switched off. So, it's not completely obvious, but it is there.

I'm marking this bug as WONTFIX. Feel free to re-open if you disagree strongly.
Comment 2 Roland Leißa 2014-03-29 01:02:23 UTC
Well, I disagree. I agree that with *new* hardware like SSD and stuff, you won't notice the indexer. It's a no brainer. However, even on my notebook which is about two years old, the indexer really hurts performance. I just have a normal HD with encryption enabled. Every disk access slows the computer down. Especially during the initial run of the indexer, the laptop is hardly usable. I'm not exaggerating.
Comment 3 Vishesh Handa 2014-03-29 10:24:31 UTC
(In reply to comment #2)
> Well, I disagree. I agree that with *new* hardware like SSD and stuff, you
> won't notice the indexer. It's a no brainer. However, even on my notebook
> which is about two years old, the indexer really hurts performance. I just
> have a normal HD with encryption enabled. Every disk access slows the
> computer down. Especially during the initial run of the indexer, the laptop
> is hardly usable. I'm not exaggerating.

I agree. it should not be that bad. I've been working during the last couple of days to bring the io usage down. We're much better off than what we were originally. If I cannot reduce it any more then I'll try to throttle it a little bit, that way your system will still be usable.

It seems counter intuitive to me to add an explicit "Disable" button just to counter a bug. Bugs get fixed. Also, you can still disable indexing via the KCM, it's just not completely intuitive.

What do you think?
Comment 4 Roland Leißa 2014-03-29 14:40:53 UTC
this makes sense. 

But what is in this scenario: Say you're playing a game or watching a movie on older hardware. If there's no possibility to at least pause the indexer, there will be lags.
Comment 5 Vishesh Handa 2014-03-29 15:56:00 UTC
(In reply to comment #4)
> this makes sense. 
> 
> But what is in this scenario: Say you're playing a game or watching a movie
> on older hardware. If there's no possibility to at least pause the indexer,
> there will be lags.

Possibly. In that case you really just want to pause it, or tell it to do it later. In the ideal case, the kernel scheduler would prioritize the other processes. We do tell set the niceness level to minimum.

Anyway, the indexing is mostly only visible during the inital phase. After that only modified files are updated. Would it be okay if I closed this bug?
Comment 6 Roland Leißa 2014-03-29 16:00:29 UTC
thanks for the work. I'll close the bug. If other users stumble upon this, they may want to reopen this issue.
Comment 7 Lukas Polacek 2014-04-17 18:04:47 UTC
This is very annoying! My computer is unusable right now, I tried disabling baloo in akonadiconsole but without success. I also tried killing the process, but it keeps reappearing.

I want to use my computer right now, I can do the indexing tomorrow while I'm at work but there is no way of pausing it!
Comment 8 Vishesh Handa 2014-04-17 18:16:06 UTC
http://askubuntu.com/questions/437635/how-to-turn-off-baloo-in-kde-4-13

I'm fairly surprised that it is consuming so many resources. Would you mind providing some debug info? Could you please tell me which all processes are running which start with baloo? 

$ ps aux | grep baloo
Comment 9 Lukas Polacek 2014-04-19 00:03:23 UTC
I removed baloo from akonadiconsole, because I had to use my computer. It was using 50% of my memory and my computer was swapping (I have 4GiB of RAM).

Now I added baloo back to akonadiconsole and it finished in a couple of minutes with 1.3% of my memory.

That being said, I think forcing indexing on users is very bad, they should be able to stop it and postpone it in an easy way (akonadiconsole is not meant for normal users). A simple checkbox like we used to have for nepomuk would be nice.
Comment 10 Lukas Polacek 2014-05-06 06:09:32 UTC
Everytime I log in, baloo makes my computer swap and it becomes unusable. I then kill all of its processes, remove it from akonadiconsole and then add back again. Then it seems to work.