On 19.04 under gnome, baloo
creates a 64GB index, takes half my 16GB memory and 25% CPU.
After uninstalling baloo
following
baloo_file_extractor in Ubuntu 18.04 LTS taking up a lot of memory
the problem goes away.
I still would like to understand:
- How did I get
baloo
, by installingdolphin
maybe? - What does
baloo
do for me when running gnome?
I simulated the installation of Dolphin on Ubuntu 19.04 using
apt install -s dolphin
. I then searched the output for packages containing "baloo":The output:
Installing Dolphin on Ubuntu 19.04 would pull in 100+ packages including the ones listed above. (The last package wouldn't be pulled in if I used
--no-install-recommends
.) It's fairly safe to conclude that installing Dolphin on your system with or without recommends pulled in baloo.To verify that baloo is indeed installed when Dolphin is installed, I ran
sudo apt install dolphin
in a virtual machine of Ubuntu 19.04.I went ahead and after the installation was complete but without running Dolphin, I ran
pgrep -a baloo
and got back the prompt. In other words, baloo wasn't running.I rebooted and ran
pgrep -a baloo
again but without running Dolphin:Top didn't show any unusual activity probably because there wasn't much for baloo to index. And that is reflected in the size of the index file:
I then launched Dolphin (while keeping a terminal window with top running). Again, because there was very little to index, top didn't show any unusual activity and
pgrep -a baloo
gave the same output as I got after the reboot.The screenshot has top running on the side.
So, you can use the Dolphin-baloo combination even in a GNOME session. However, by default
* I don't know your reason for installing Dolphin on Ubuntu and so can't comment further. If you are interested in keeping Dolphin but don't want baloo active, run
On my Kubuntu, it shows me
Then, run
Doing so disables the file indexer. And the disabled state survives a reboot on Ubuntu 19.04 (GNOME):
Related reading: Is it safe to disable baloo_file_extractor?
Edit: Here's my
~/.config/baloofilerc
in Kubuntu 18.04 ***:***: I think
baloo
ignores dot files and dot folders in the version present in Kubuntu 18.04 and so excluding dot files may have been unnecessary!Your questions:
How did I get
baloo
, by installingdolphin
maybe?aptitude why
shows the causes for packages to be installed (install it withsudo apt-get install aptitude
if you don't have it). For instance, I had the same inquiry as you, and I ranto tell the name of the packages, and then
to tell the chain of dependencies leading to the installation of some of the
baloo
-related packages (just for the sake of illustration, the firstaptitude
command already shows thatdolphin
requiredbaloo
). The information shown in the output of the last command should be read: "dolphin-plugins
was installed manually.dolphin-plugins
requireddolphin
, which was installed automatically then.dolphin
requiredlibkf5baloo5
, which was installed automatically then.libkf5baloo5
requiredlibkf5balooengine5
, which was installed automatically then.libkf5balooengine5
did not require any other package to be installed automatically."What does
baloo
do for me when running gnome? I split this in two parts.baloo
do...? Generally speaking,baloo
indexes files for later fast searching.What are the differences with other indexers, as
mlocate
?mlocate
indexes file names only.baloo
can index file contents, so that searching returns "better" results (depending on the way you configurebaloo
). Of course,baloo
can be configured to index only file names (see locate vs. baloo and answer there), for instance in the interest of storage space, in which case it is similar tomlocate
.This can be rephrased as How can I use the data indexed by
baloo
? As expected,dolphin
makes use ofbaloo
to search for files, either names or contents, in its searches (which you can pull with either the magnifying glass at the top right or the "Search for" list in the side bar). This is regardless of you using Gnome or other session manager.In addition, Gnome (and here I am answering specifically to your mention of it) has its Activities search bar, which is a more complex search tool. Without going into much detail, this Gnome search is fed by Search providers. A few such providers are setup with the initial installation, but you can add others, so that the search results include those as well. In principle, I guessed
baloo
could be a search provider as well. So far, I could not find information on how to do that.As of 02/11/20, following an upgade from 18.04 to 20.04, the baloo syslog problem occurred (first time ever). The file /var/log/syslog exploded in size.
To be absolutely clear about this. Running
did not stop the problem. I removed baloo using
I then cropped the syslog files using
syslog had reached ~40GB, syslog.1 was 48GB
This code is malicious. I subsequently just discovered that baloo stores an index under
This was also 48GB. Something urgently needs to be done about baloo. Reading through all the various posts on forums out there, this issue has been a recurring problem, with no "good" solution, since at least 2014. Evidently, as my experience shows, it remains a problem today.
upon following the answers given above i still found baloo running and eating up a ton of resources. to summarize what, at this point, seems to have finally buried this unholiest of demons:
I disabled the indexer:
I removed the package
baloo-kf5
, but I still found baloo processes running and spawning, so I ended up doing:After that, I checked to see if, for whatever reason, baloo was still present with top... and it was...
~/.local/shared/baloo
for its bloat.Perhaps
sudo apt purge
would have been a better idea, but whatever...What nonsense, I'm annoyed...
if a baloo process spawns, I'm lighting my box on fire...