Back to the original issue (CPU load.)
I found a useful page at
https://wiki.gnome.org/Projects/Tracker ... /Debugging. Debian 9 is on Tracker version 1.10.3 and the most recent seems to be 1.14. Gnome is at 3.22.2 and Google autocomplete seems to suggest that 3.4.2 is most current. (A little googling did not find me the most current Gnome version.) It is not clear to me whether the Tracker version is tied to the Gnome version or if I could try a newer version of Tracker. I would probably just abandon it instead.
I could not find any configuration files or figure out what should go in them to provide some sort of logging or reporting. I tried adding some environment variables to ~/.bashrc:
Code: Select all
export TRACKER_VERBOSITY=3
export TRACKER_USE_LOG_FILES=1
I rebooted the PC to make sure that these were all properly exported after logging out and back in showed no difference. Still no difference. 'tracker-extract' still ran 100% on one CPU thread.
I decided to take the 'nuclear' option
Code: Select all
barta@yggdrasil:~$ tracker reset --hard
CAUTION: This process may irreversibly delete data.
Although most content indexed by Tracker can be safely reindexed, it can't be assured that this is the case for all data. Be aware that you may be incurring in a data loss situation, proceed at your own risk.
Are you sure you want to proceed? [y|N]: y
Found 5 PIDs…
Killed process 1443 - 'tracker-miner-apps'
Killed process 1446 - 'tracker-extract'
Killed process 1448 - 'tracker-miner-fs'
Killed process 1454 - 'tracker-store'
Killed process 1455 - 'tracker-miner-user-guides'
Setting database locations
Checking database directories exist
Checking database version
Checking database files exist
Removing all database/storage files
Removing first index file:'/home/hbarta/.cache/tracker/first-index.txt'
Removing last crawl file:'/home/hbarta/.cache/tracker/last-crawl.txt'
Removing database:'/home/hbarta/.cache/tracker/meta.db'
Removing journal:'/home/hbarta/.local/share/tracker/data/tracker-store.journal'
Removing db-version file:'/home/hbarta/.cache/tracker/db-version.txt'
Removing db-locale file:'/home/hbarta/.cache/tracker/db-locale.txt'
hbarta@yggdrasil:~$
At present Tracker is quiet. Too quiet. It seems to be no longer indexing files. Logging out and back in solved that.
Code: Select all
top - 12:29:47 up 55 min, 2 users, load average: 2.58, 1.87, 1.12
Tasks: 272 total, 2 running, 269 sleeping, 0 stopped, 1 zombie
%Cpu(s): 2.0 us, 0.5 sy, 25.1 ni, 72.2 id, 0.2 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 16351016 total, 10931968 free, 2769692 used, 2649356 buff/cache
KiB Swap: 16777212 total, 16777212 free, 0 used. 12823016 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6223 hbarta 39 19 1140448 62364 13156 R 103.7 0.4 3:45.36 tracker-miner-f
6219 hbarta 39 19 2848952 164124 43128 S 100.3 1.0 3:31.84 tracker-extract
6241 hbarta 20 0 493948 91096 9092 S 8.6 0.6 0:50.80 tracker-store
6916 hbarta 20 0 878968 113296 67564 S 2.3 0.7 0:07.07 chrome
...
I did find this in /tmp:
Code: Select all
lrwxrwxrwx 1 hbarta hbarta 63 Jan 22 12:27 2-dbbde73aeedfd9033c8e7d2021f0f17a -> /home/hbarta/Documents/CRBMWOA/roster/2009-07NewsLetterList.xls
hbarta@yggdrasil:/tmp/tracker-extract-files.1000$
Is it possible that this single file is giving causing tracker-extract to go into an endless loop? That may be it. I added that file to the Tracker ignore list, killed tracker-extract (and it immediately restarts.) Now the link in /tmp/tracker-extract-files.1000 is continuously changing.
Edit: After three hours I checked and Tracker had settled down. It seems that that single file was the issue. Problem solved!