Hi Dag, On 27.06.05, Dag Wieers wrote:
Back home (after being abroad 2.5 months) I installed pytone on my main music system. This system has 52GB of music (I have a huge collection of music CDs) of about 11.500 songs.
Now, most of the music players I know have problems handling that amount of files. Usually this is memory related. Pytone consumes 140MB of RAM, which is compared to other players, not that bad. Some players consume far worse (not even usable with such a collection).
In fact when I restarted it it only consumed 15MB residential memory and 183MB virtual memory, before, when indexing, it consumed 140MB of residential memory and 360MB of virtual memory.
This could be due to Python not releasing the memory it has allocated.
Furthermore, pytone works pretty well using the interface, but startup time the first time after it has indexed that much music was terrible. It took up too much time. 8 minutes ! After that I restarted and it started immediately.
Have you looked whether there was a huge number of log files in the db environment directory.
And what might be even worse and probably the cause of this terrible· startup time, is the amount of diskspace it consumed to store all the· information. · »·····[dag@lisse .pytone]$ du -s * »·····1398032 music »·····17176 music.db »·····4 pytonectl »·····4 pytone.dump · That's 1.4GB ! When I then restarted pytone again (after it was busy for 8· minutes) the result was:
That's most probably due to an insane number of log files. Actually, the database is checkpointed every minute and the not-used log files should be removed automatically. The debugging output should contain some information about these checkpoint events.
»·····[dag@lisse .pytone]$ du -s * »·····760 music »·····17176 music.db »·····4 pytonectl »·····4 pytone.dump · So I'm a bit stunned about the big difference. What's so different if you start pytone the first time after having it indexed ? Why does it takes so much diskspace and time to start ?
I believe this same issue bit me before on my laptop when my disk was full during indexing just because of pytone's logfiles. This of course corrupted the database itself requiring a removal.
See above. Maybe there is a problem with the checkpointing code. Jörg