![]() |
How tracker works
For those that don't know, tracker is the utility that watches for new media and makes thumbnails of new images on your N900. It has been widely cursed and hated for its poor behavior and can cause sluggish response time while doing its thing -- which it tends to do right when you want to use your N900, like when taking a bunch of photos.
There is a configuration file for tracker in /home/user/.config/tracker/ called tracker.cfg. By default it has quite a few comments that can be helpful in deciphering the settings, but i find i'm still not really sure what the default behavior of tracker is. There's also an app called tracker-cfg that lets you edit these settings with a GUI. There are three categories you can put individual folders into that determine how tracker treats them (please correct any errors here) (Edit: see this later post for links to more complete descriptions):
The way these are specified can be a bit confusing, because for example you specify a root folder to be watched (meaning tracker will automatically watch all its subfolders). It's not clear if it works the same way for the other two lists. I'd appreciate a description of the behavior if anyone understands it. In particular, i'm wondering what the default rule is for folders not specifically included in any lists. and whether the "do not watch" list is for directory roots or just individual directories. The current configuration on my N900 is supposed to be not watching a specific directory of web images, but i keep seeing them show up in the images listing after rebuilding the database. (tracker-processes -r) Some of the other options are a bit confusing as well. Is there better documentation for this somewhere? Thanks in advance for whatever insights you might have on the inner workings of tracker. I'd like to tame it! :eek: |
Re: How tracker works
You should check out the program called tracker-config. It not only lets you set all these parameters manually (thus making tracker actually, y'know, bearable), but it also helps on understanding how it works.
|
Re: How tracker works
Tracker is all open source, so you can check out exactly what's being done from the code (the manual pages are the best place to start). According to the trackerd manual page, all three groups automatically include all (non-hidden) subdirectories.
|
Re: How tracker works
shouldnt it be so, that it indexes pictures when you open the photo-viewer or movie/song-files when you start the mediaplayer?
|
Re: How tracker works
mmmmm
I would like it to index the new pictures/videos AFTER I've shot them, after LEAVING the application that made them. Not during... In general, while I'm doing the creation, I would want as little other system activity as possible. Real multi-tasking on a limited resource device only goes that far ... Ask Apple and Google. So while doing time critical stuff, I ideally want all non-critical stuff frozen. That would help the stuttering while filming. But that's asking too much I guess ... |
Re: How tracker works
Quote:
Are there other non-critical processes than Tracker running that are so resource consuming that they should be stopped too while filming? (Disclaimer: I am not a developer so this is mostly something that I have been thinking and don't have a slightest idea if this makes really any sense at all... :o ) |
Re: How tracker works
Something like this:
Pictures get indexed after camera app is closed, the same with videos. Inside media player there should be a button to chose "Auto Indexing" (index always one) or "Manual Indexing". When Manual Indexing is chosen you get another button that says "Scan for new media", that triggers the Tracker to index new music and videos. It works that way on Symbian S60 3rd if I dont remember wrong. |
Re: How tracker works
Quote:
It is handy but i uninstalled it when i realized that the default configuration file is actually commented clearly and tracker-cfg is just a wrapper for a single user config file. It is nice to have the options to rebuild database &tc right in the app, but that's also easy to do manually. Quote:
One thing you can change that will have very apparent results is increase the throttle. If it's around 10 the slowdown will be much less noticeable. |
Re: How tracker works
If I'm filming I'm not interested in getting new email notices ... or IM messages. I want a good steady shot, no dropped frames, maybe even some help from the CPU in non-favorable light conditions.
If the hardware/software implementation is not powerful enough to do all at once, then I think things should be pragmatic. I do think the Maemo ecosystem is too much desktop Linux driven, actually ahead of it's time, designed for devices with ample resources, allowing the walhalla of real-time multitasking at the expense of user experience and performance of the frontend tasks. Lets hope Meego has better provisions for preserving User Experience and performance. But honestly, I think better HW is the only thing to keep all running as envisioned during design. |
Re: How tracker works
Here's the man page for the tracker configuration file: http://linux.die.net/man/5/tracker.cfg
Here's the project page: http://projects.gnome.org/tracker Now that i've read up on it, i'm more curious than ever at some of the options. AFAIK, there's no built-in global search capability in maemo, so all of the file content options in tracker configuration seem pointless, yet not disabled in the default tracker configuration. Does anyone know what use maemo makes of tracker's content indexing besides the very basic task of thumbnailing visual content? |
Re: How tracker works
All media meta data like artist, album, ... in the mediaplayer is based on
tracker information. nicolai |
Re: How tracker works
Certainly in Meego it actually stores info by itself (from the meego-dev) mailing list :
Quote:
http://lists.meego.com/pipermail/mee...er/005546.html |
Re: How tracker works
from what I understand..how about we juss write few scripts.. mk a desktop shortcut or qbw.. and turn on /off indexing/watchdog with the scripts..
if we cant merge those scripts with the apps like camera an all.. atleast we wil hv option to turn off indexin/watchdogs before using the camera... :D another idea... will write a script fr qbw i guess |
Re: How tracker works
One issue I have with the tracker.cfg is that there seems to be misunderstanding about the two Battery flags in it:
The config file itself and the help in the "Tracker Cfg" state that: Code:
# Set to true to disable indexing when running on battery Code:
BatteryIndex=BOOLEAN For me, I now have set these flags to FALSE and expect that this DISABLES indexing while ON BATTERY. |
Re: How tracker works
Quote:
|
Re: How tracker works
To follow up, i finally removed all but the two camera (DCIM) folders from my watch folders list to solve the problem of tracker indexing folders i don't want it to. It seems that either having the root of a child folder in the watch folders root list overrides the do not watch list, or the do not watch list is not recursive.
I added the music folders to the crawl list, because i only need those indexed when i (infrequently) change the music and can trigger a rebuild myself when i do that. I tried increasing the delay time to 120 s. That seems to be a good way to work around tracker jumping in during the middle of a short filming or series of photos. However, it seems i'm not notified now of the reindexing countdown. It may be something else that broke that, though. |
Re: How tracker works
LowMemoryMode=true seems to cause the reindexing ETA not to display.
Can anyone confirm this? |
Re: How tracker works
Can someone please tell me how to check the current version of tracker in our devices. I am running PR1.3+CSSU-Updates (latest is 13).
There is a current (hot) discussion going on at meego-dev miling list about the future of tracker. The point that came out (w.r.t tracker in maemo) is to which version we are running. Looks like we are running the 0.6.95.x version of Tracker. But their latest version is 0.10.1 and they claim that the latest version is way better than the one that maemo uses. So, can someone please tell me how to check which version of Tracker are we running. 0.10.1 or older? http://lists.meego.com/pipermail/mee...ch/482001.html http://lists.meego.com/pipermail/mee...ch/481890.html (Thread start) Thanks in advance, |
Re: How tracker works
Quote:
|
Re: How tracker works
Quote:
|
Re: How tracker works
Quote:
http://gitorious.org/community-ssu |
Re: How tracker works
Quote:
|
Re: How tracker works
Just out of curiosity, so is it like not possible to use the latest tracker version directly over the PR1.3 or the reasons something else (compatibility, breaking, etc)?
If it is possible to update to the latest, then may be we can request CSSU team to include the latest tracker version in their future updates. |
Re: How tracker works
AFAIK there are big API changes between tracker
0.6 and the recent version. The whole 0.6 API is deprecated. The query language used in the 0.6 was RDF and the 0.10 uses sparql. So the chances that upgrading to a new tracker version don't break anytihng and or makes the performance better is very small. |
Re: How tracker works
Quote:
It sort of works like i want it to now with the changes but it's good to know that it really does behave in an unexpected way by default. Is your patched version going to end up in CSSU? |
Re: How tracker works
Quote:
Unfortunately I am yet to get a proper schedule allocation to start contributing full time to the CSSU though, so if you think my patches are stable enough and want to push them to the CSSU, feel free :) . |
Re: How tracker works
Quote:
|
Re: How tracker works
I had problems with the tracker hogging the CPU, so I used tracker-cfg to disable everything I could see. I'm assuming this has disabled the tracker entirely, as I no longer get insane CPU activity after poweron or filesystem operations.
Question: is there anything inherently bad in doing this? I don't care about thumbnails and I'm not using the stock mediaplayer (Someplayer has its own indexing system, I think). |
Re: How tracker works
Bump. I wanted to ask the same question as Fallingwater - except I would go even further and uninstall tracker altogether. Can anyone foresee any harm in doing either?
|
Re: How tracker works
Quote:
Was this "patched" version stable enough to put it CSSU? I know there was a mention of tracker doing odd things recently. Currently can't get may device to watch the memory card properly. It updated this morning after I added new music but just ripped another CD and it's not added the new tracks. I'll try and force it to rebuild later. |
Re: How tracker works
Quote:
Maybe (not a highest priority now) we should upgrade tracker and fix what's not working (guessing: image-viewer). there are already some replacements, so we might talk with their devs. |
All times are GMT. The time now is 02:19. |
vBulletin® Version 3.8.8