I'm trying to understand what the different background processes are doing on my machine as this one is freezing from time to time. I have noticed that the tracker processes (there are several of them as you can see on the screenshots) take a lot of CPU power. I also noticed that if I kill those processes, it solves the issue and nothing weird or at least nothing visible really happen on my machine.
Do you know what is exactly the use of those processes and why they are taking so much CPU power (what are they doing with all that power?) I tried to do a couple of searches online regarding the tracker processes but I can't really understand what they do. :/
Thanks in advance for you answer, I'm really eager to learn more about Linux ! :))
screenshot tracker
processes :
tracker -store
taking a lot of CPU power :
tracker -extract
taking a lot of CPU power :
Tracker, which is enabled by default in Ubuntu since 19.10, is a file metadata indexer. It indexes your files to allow for fast searching for content in files from Files or Gnome Documents, find pictures in Gnome Photos, allow to rename files based on metadata, and so on. The different processes you see are processes that crawl your file system, read the file contents and index that contents in database indexes for fast search through Tracker-aware interfaces, such as Files and Gnome Shell activities overview.
Until Ubuntu 19.04, Ubuntu developers removed Tracker from Gnome Shell when they started to use it in Ubuntu 17.04. Performance issues were the reason. The first time, the full index is created, which takes significant time. Subsequently, the index is updated on the fly, which as such does not incur severe performance penalties. Nevertheless, even on a fully indexed system, there is intensive processor use for many minutes shortly after log in. On a system with a modern multicore processor, this does not significantly affect interactive processes, but on older systems, it could lead to significant perceivable decrease in system response for up to ten minutes.
Tracker increasingly is more integrated with Gnome Shell and currently is a hard dependency of file manager
nautilus
(aka "Files"). As a result, Tracker is enabled by default in Ubuntu versions after the long term release 18.04 (i.e. 19.04, 19.10 and later).Disable Tracker
To avoid the period of high processor use after login, you may want to disable Tracker. This will disable full text search and renaming of mediafiles based on tags. It will disable the "Starred files" feature (Ubuntu 20.04). However, file name search in Files will continue to work. In the overview, it appears as if only recent files are found after disabling Tracker.
Edit 2020-05-09: method that uses systemd to disables tracker completely for the current user (preferred)
Run the following command to disable tracker for the current user:
To undo, reenable the services:
Edit 2020-05-09: Following is the method as I originally posted, and which is based on disabling autostart on login of the tracker components. I leave it for reference, but disabling the system services (see above) is the most elegant, most complete and recommended way to fully stop Tracker for your current user without breaking your system.
With following commands, you 1) stop the tracker daemon (for this session), 2) move to your local autostart directory and 3) copy startup files for the various Tracker processes to your local autostart folder. In 4) you disable the autostart of these processes, and in 5) you free the disk space taken by the cache that Tracker may already have made (could be 2 - 4 GB).
When you restart, the tracker daemon will run, but no indexing will be performed, so your processor only will work when you work.
here's simpler approach to removing this entirely.
Anything that inhibits user input by causing system load exceeding 5 right after boot sounds like a problem to me. This is my solution:
This was a problem on a fresh install of Ubuntu 20.04.2.
Seems like the nautilus tracker has some sort of CPU usage issue. Use another GUI file manager, like thunar. Below commands removes nautilus and installs thunar on Ubuntu