Posts: 3,027
Joined: Oct 2012
Reputation:
189
it should...
at least here in linux it is running in a 64bit JVM
tinyMediaManager - THE media manager of your choice - available for Windows, macOS and Linux
Help us translate tinyMediaManager at
Weblate | Translations at 66%
Found a bug or want to submit a feature request? Contact us at
GitLab
Posts: 126
Joined: Jan 2010
Reputation:
0
2013-10-14, 15:40
(This post was last modified: 2013-10-14, 15:41 by IceNine.)
Things are certainly improving but still slower than I think it should be over here. Right now a full update will take just about 8 minutes. I tried 3 separate times and get very consistent times. The breakdown of time taken goes:
'Big' share scan - 2 minutes
'Big' share MediaInfo / cleanup - 4 minutes
'Small' share scan - 40 seconds
'Small' share MediaInfo / cleanup - 1 minute 20 seconds
I tried both the existing and newer versions of the MediaInfo DLL and get the same times. The very first scan I did after the update did take longer but after that it is very consistent. I also see in the logs that the .srt files that seem to take so long only scanned the first time after the update and now are not scanning anymore, so that seems to have saved a lot of time. It still seems strange to me that the MediaInfo / cleanup stage still takes so long, especially since in the logs it doesn't even seem to be doing that much anymore. No files are scanned for MediaInfo and this is the only log entry I get for that stage:
2013-10-14 09:15:05,782 INFO [SwingWorker-pool-2-thread-5] o.t.c.m.tasks.MovieUpdateDatasourceTask:147 - removing orphaned movies/files...
That entry takes up the entire 4m + 1m20s for both shares. I can't say I know exactly what it is doing during that stage but it seems strange that it would take twice as long as the scanning phase.
Comparing my update times to mlaggners above, it seems like my times would be mathematically right where they should be if the MediaINfo/cleanup part didn't take so long. He has 500 movies to scan and is getting about 30 seconds on an update with no media added, with 2000 movies it should logically take around 2 minutes which is pretty much what my times are without counting MediaInfo/cleanup.
Still not sure what is taking so long but I am going to try to see if I can rule out my PC or OS as the issue. I'll run some scans on the new version on my Mac when I get a chance, and I also plan to set up some clean Linux and Win7 virtual machines to see if TMM runs faster off the same sources there. I'll report my findings when I can, thanks again for all the hard work!
Posts: 3,027
Joined: Oct 2012
Reputation:
189
could you have a look at the logs again?
one thing there is interesting for me: the time between 2 logs containing the "- PAH - normale movie directory"
here is an example from my PC:
2013-10-13 20:08:25,773 DEBUG [tmmpool-update-thread-2] o.t.c.m.tasks.MovieUpdateDatasourceTask:399 - PAH - normal movie directory:...
2013-10-13 20:08:25,811 DEBUG [tmmpool-update-thread-2] o.t.c.m.tasks.MovieUpdateDatasourceTask:399 - PAH - normal movie directory:...
as you see here, it took 40ms! (accessing the movie directories an my NAS via GVFS/SMB on a 1Gbit LAN). If you have a larger difference of the timestamps, that will indicate that the NAS is either responding slow or something else throttles the connection to the server.
with a "slower" network connection to the server, the cleanup tasks will indeed take much longer (because every file in you database is cross checked with the one on the server). MI will only be scraped once with the latest release
hth
Manuel
tinyMediaManager - THE media manager of your choice - available for Windows, macOS and Linux
Help us translate tinyMediaManager at
Weblate | Translations at 66%
Found a bug or want to submit a feature request? Contact us at
GitLab
Posts: 100
Joined: Sep 2010
Reputation:
0
Regarding the multi threading I think if you're using the 32bit version of Java that it's only running a DB update on 1 thread, I don't have time at the moment but I will e-mail logs running between 32bit and 64bit. When I switched to 64bit I started seeing 3 threads for the DB update whereas only 1 on the 32bit version.
Posts: 126
Joined: Jan 2010
Reputation:
0
I am running on Win7 64-bit, I thought I was running 64-bit Java as well but I will have to double check.