- tracker-store and tracker-miner-fs eating up my CPU on every startup
- 9 Answers 9
- Scripting solution to disable it permanently on Ubuntu 16.04
- What does these processes do?
- How to get rid of processes?
- tracker-miner-fs on Ubuntu 20.04 LTS (Focal Fossa)
- 2. Uninstall / Remove tracker-miner-fs package
- 3. Details of tracker-miner-fs package
- 4. References on Ubuntu 20.04 LTS (Focal Fossa)
tracker-store and tracker-miner-fs eating up my CPU on every startup
Whenever I start my laptop the process tracker-store and tracker-miner-fs eats up my CPU between 30-40% for 10-15 minutes. I am on ubuntu 12.04. What does these processes do? How to get rid of processes?
Is all the software on your system from the software center or have you installed software from elsewhere? Can you connect tracker-x to anything? FWIW, I don’t see a process called tracker-x with Lubuntu 13.04. If you have no «privacy concerns» you could post the output of something like ps -e and dpkg —get-selections here or @ pastebin. Maybe someone could figure out what’s happening.
Ubuntu 20.04 and Ubuntu 19.10 have the same issue: High cpu load for a long duration caused by tracker, tracker-miner and tracker crawler. Since searching HDs is the main task it slows down the computer from two sides: HD + CPU load. Bad design. What is this tremendous amout of data used for? No kernel will ever need that! Is it eventually used as a spy tool? What a terrible design: There is an option not to run tracker on battery power: Not used. Fortunately you can disable tracker in dconf-settings, see post abouy using dconf-editor org > freedesktop > Tracker > Miner > File «
check this out unix.stackexchange.com/questions/482390/… worked for me flawlessly .. I migrated from 18.04 to 20.04 and nothing worked properly. this did the trick
With Ubuntu 20.04 this problem came up again. You really can purge it since it does not even find all files properly.
9 Answers 9
Scripting solution to disable it permanently on Ubuntu 16.04
As mention in the comments, files mention in this post no longer exist in 16.04. You can use the following script (source):
echo -e "\nHidden=true\n" | sudo tee --append /etc/xdg/autostart/tracker-extract.desktop /etc/xdg/autostart/tracker-miner-apps.desktop /etc/xdg/autostart/tracker-miner-fs.desktop /etc/xdg/autostart/tracker-miner-user-guides.desktop /etc/xdg/autostart/tracker-store.desktop > /dev/null # Interval in days to check whether the filesystem is up to date in the database. 0 forces crawling anytime, -1 forces it only after unclean shutdowns, and -2 disables it entirely gsettings set org.freedesktop.Tracker.Miner.Files crawling-interval -2 # Default: -1 # Set to false to completely disable any file monitoring gsettings set org.freedesktop.Tracker.Miner.Files enable-monitors false # Default: true
tracker3 reset --filesystem --rss # Tracker v3+ # Or, for older versions tracker reset --hard #
These are confirmed bugs on Launchpad: 911981, 925948, 1063255.
What does these processes do?
- Indexer for desktop search (for more details see this spec : https://wiki.ubuntu.com/IntegratedDesktopSearch)
- Tag database for doing keyword tagging of any object
- Extensible metadata database for apps like gedit and rhythmbox which need to add custom metadata to files
- Database for first class objects allows using tracker’s database for storage and implementation of First Class Objects and the Gnome 3.0 Model.
How to get rid of processes?
- Disabling tracker for globally (for all users)
- Edit /etc/xdg/autostart/trackerd.desktop file with root privileges ( sudo -i gedit /etc/xdg/autostart/trackerd.desktop )
- Add Hidden=true to the end of the file
- Do the same for /etc/xdg/autostart/tracker-applet.desktop if you want
- Disabling tracker for your user only
- Enter the directory ~/.config/autostart , create it if it does not exist
- Create a file named trackerd.desktop
- Paste the following into the file, save and exit:
[Desktop Entry] Encoding=UTF-8 Name=Tracker Hidden=true
@TomKat: Why not? I just did apt-get uninstall tracker on gnome-ubuntu and it worked fine.. it also removed gnome-documents, but whatever, didn’t even know I had that program 🙂
I’m still wondering which genius decided to create an enormously CPU- and RAM-hungry program that loads itself on startup, and have it the words «tracker» and «miner» right in its name.
Simply change this values using the gsettings witch will disable the constant indexing of Tracker:
gsettings set org.freedesktop.Tracker.Miner.Files crawling-interval -2 gsettings set org.freedesktop.Tracker.Miner.Files enable-monitors false
The values could be changed using dconf-editor by navigating through org > freedesktop > Tracker > Miner > Files:
After this changes, it is highly recommended to cleanup the database to reclaim some lost space on the disk:
echo y | LANG=en tracker reset --hard
What exactly does tracker-control -r do? It sounds like since this post tracker-control has been deprecated and it’s migrated to the tracker daemon command, but tracker help daemon (or tracker-control —help ) doesn’t mention a -r flag. Does it still do the same thing? I can’t find the old documentation.
Following this step, after run tracker-control -r my laptop went back to smooth again! PS: tracker-control is not available anymore in 16.04, but relax, it will trigger the substitute command which is tracker daemon .
Maybe it’s relevant for Ubuntu 14.04/GDM, and if it important to do not remove whole service then will be better to stop and/or renice .
Stop/reniced ( not recommended method ):
$ tracker-control -p Found 171 PIDs… Found process ID NNNN for 'tracker-store' Found process ID MMMM for 'tracker-miner-fs' $ initctl stop tracker-store && renice -n +19 -p NNNN && initctl start tracker-store
Notice people suggest yet tracker-control -r and maybe for systems with indexing enabled this will be better:
OR the same with System Monitor GUI:
- sort > Name
- scroll > tracker-store
- right click > Stop Process
- right click > Change Priority > Very Low
- right click > Continue Process
OR maybe the most appropriate way for systems with running tracker-store:
Applications > System Tools > Search & Indexing
Thank you! I hadn’t noticed the option to force tracker to be used only when the computer is not being used. Let’s see if that does the trick.
this worked for me. i unchecked all locations, and limited other options to their most minimal settings, the «re-indexed», and it stopped. i like this route, as it is something i will likely remember what i did.
An up to date version for Ubuntu 16.04:
echo -e "\nHidden=true\n"|sudo tee --append /etc/xdg/autostart/tracker-extract.desktop echo -e "\nHidden=true\n"|sudo tee --append /etc/xdg/autostart/tracker-miner-apps.desktop echo -e "\nHidden=true\n"|sudo tee --append /etc/xdg/autostart/tracker-miner-fs.desktop echo -e "\nHidden=true\n"|sudo tee --append /etc/xdg/autostart/tracker-miner-user-guides.desktop echo -e "\nHidden=true\n"|sudo tee --append /etc/xdg/autostart/tracker-store.desktop gsettings set org.freedesktop.Tracker.Miner.Files crawling-interval -2 gsettings set org.freedesktop.Tracker.Miner.Files enable-monitors false tracker reset --hard
Basically this is a remix of Radu’s and Maxwell’s answers, but locations and commands have been updated to Ubuntu 16.04 (there were multiple changes).
When adding these lines one by one in terminal, it gives this timeout warnning for each command. echo -e «\nHidden=true\n»|sudo tee —append /etc/xdg/autostart/tracker-extract.desktop sudo: unable to resolve host Thusitha: Connection timed out
I simply disabled it in Ubuntu Settings -> Search. In the top bar, there is a toggle for on/off of whole search. I set it to off and then ran:
After this it looks like no tracker process is running anymore.
There is no indication that Settings->Search has something to do with tracker. Search is not documented by gnome so it is hard to tell. If you are right this is the absolute top answer.
Enable advanced Startup Applications with this command:
sudo sed -i "s/NoDisplay=true/NoDisplay=false/g" /etc/xdg/autostart/*.desktop
Run Startup Applications and uncheck Tracker File System Miner and the other similar items. They can be re-enabled just as easily.
Using Synaptic, I selected «mark for complete removal» for «tracker», and for «zeitgeist» (kin to using the purge command which is supposed to remove associated components and config files for the program selected). Much more of the zeitgeist tracking software had been installed unknown to me, and so I chose complete removal for all except the zeitgeist shared libraries which looks to be way too embedded in the OS to remove safely. Almost like a dog with a bad case of heart worms, or better yet like a hydra. Chop one head off and there’s three more trying to ruin your chi. Sounds pretty much like something microsoft enjoys doing to the people who trust them. Whatever. My laptop now boots in less than half the time, doesn’t completely bogg down at random occasionally crashing what I’m using at the time, and it might just be the relief of getting rid of the thing but the rest of the software seems to be running much better without that hydra’s heavy tentacles. Aww ferget it. You know what I mean.
Why is it that programs like these have to be brought in quietly through a back door? Perhaps it’s because nobody wants that sort of thing on their personal laptop. If I was a tech running server edition on a mainframe that had massive gigs of ram and cores out the wahzoo, then it would be another story. Perhaps then I would like to utilize tracking software. Even then, I would still want it to be an application of my choosing.
Since I use none of featues provided by tracker, I’ll go with «complete removal». The day I’ll need something like this, I’m sure I’ll re-install
Answers above didn’t help me. I’ve finally found a solution:
Running miner with high verbosity:
/usr/libexec/tracker-miner-fs -v 3
allowed me to pinpoint what’s wrong — it was a directory with a very large number of files (around 1 million — proceduraly generated as a side effect of some project). Removing this mess fixed the issue.
tracker-miner-fs on Ubuntu 20.04 LTS (Focal Fossa)
This tutorial shows how to install tracker-miner-fs package:
2. Uninstall / Remove tracker-miner-fs package
Please follow the guidelines below to uninstall tracker-miner-fs package:
3. Details of tracker-miner-fs package
Package: tracker-miner-fs
Architecture: amd64
Version: 2.3.3-2ubuntu0.20.04.1
Priority: optional
Section: utils
Source: tracker-miners
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GNOME Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 244
Depends: libc6 (>= 2.4), libglib2.0-0 (>= 2.44.0), libtracker-miner-2.0-0 (>= 2.2.0), libtracker-sparql-2.0-0 (>= 2.2.0), libupower-glib3 (>= 0.99.0), init-system-helpers (>= 1.52), tracker (>= 2.2.0), tracker-extract (= 2.3.3-2ubuntu0.20.04.1), procps
Filename: pool/main/t/tracker-miners/tracker-miner-fs_2.3.3-2ubuntu0.20.04.1_amd64.deb
Size: 68328
MD5sum: 153abab12cf9d556a333012322f1e730
SHA1: aa169b7a828b7b03cc1d575395b7b149f45abcfd
SHA256: 421c3a00f813bdb08f74be42a3f53fa6b264edd1a656cca5fdaaa17c19a848d4
SHA512: 245d6149eb8ddb1db4837c7a9b5d719eb25375975c5077b15b0df9cfd87658f7318ba7a7006cb1df6846fbbceadad2b2694c49eaa7f5f4b0099b38e9923419da
Homepage: https://wiki.gnome.org/Projects/Tracker
Description: metadata database, indexer and search tool — filesystem indexer
Description-md5: a099aad487fbbe1aadf883f34cbf6877
Task: ubuntu-desktop-minimal, ubuntu-desktop
Package: tracker-miner-fs
Architecture: amd64
Version: 2.3.3-2
Priority: optional
Section: utils
Source: tracker-miners
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GNOME Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 244
Depends: libc6 (>= 2.4), libglib2.0-0 (>= 2.44.0), libtracker-miner-2.0-0 (>= 2.2.0), libtracker-sparql-2.0-0 (>= 2.2.0), libupower-glib3 (>= 0.99.0), init-system-helpers (>= 1.52), tracker (>= 2.2.0), tracker-extract (= 2.3.3-2), procps
Filename: pool/main/t/tracker-miners/tracker-miner-fs_2.3.3-2_amd64.deb
Size: 68492
MD5sum: ff54e399bf679c3289600122a2364fc1
SHA1: 1ffeb600d5320d66d5bc59bda1fd49b844558ace
SHA256: 67887ed95d9f1ea1c7f81a227513c24cd6e493f7c00ea9df74098ca01fc35df1
Homepage: https://wiki.gnome.org/Projects/Tracker
Description: metadata database, indexer and search tool — filesystem indexer
Description-md5: a099aad487fbbe1aadf883f34cbf6877
Task: ubuntu-desktop-minimal, ubuntu-desktop