[maemo-developers] What's wrong with folder browsing?

From: Eero Tamminen eero.tamminen at nokia.com
Date: Tue May 22 09:49:05 EEST 2007
Hi,

ext Gustavo Sverzut Barbieri wrote:
>> I use two 4gig SD cards. Once i stuffed them full of media canola-conf
>> would just take over my cpu ( i am taking a stab in the dark, that
>> this was the indexer) . I waited for quite a while, and even had to
>> charge my n800 again, and i still couldn't use it, as everything would
>> stop responding.
>>
>> I just uninstalled it as i got sick of doing 'killall -9 canola-conf'
>> via xterm everytime my device slowed right down.
>>
>> If there is anything i can do to help debug this, then let me know and
>> i will try again, but I am also using a modified kernel to support
>> SDHC cards, so I don't know if my debugging counts :)
> 
> Just hack scripts (both init.d and dbus/service) and launch it with
> lower priority, it should be the default in next release.
> 
> It basically works like this:
>   - 1st time: readdir() + regexp (defined in gconf) + open() + parse
> (id3lib, shipped with device) + db insert

I have strong suspicion that the culprit is libid3.  When stracing on
the device what happens when MMC is scanned, the files are read 8KB
at the time, then the file offset is moved one byte and again 8KB are
read etc.

If you can test Canola on x86, you could try ltracing what happens
(ltrace provides more info as it traces also exported library functions,
but it doesn't work on ARM).


	- Eero

More information about the maemo-developers mailing list