MinimServer Forum
Rescan - taking a long time - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: Support (/forumdisplay.php?fid=4)
+--- Thread: Rescan - taking a long time (/showthread.php?tid=3182)

Pages: 1 2 3


Rescan - taking a long time - konnexion - 13-05-2016 11:54

If I add a single album to the library (2000 albums) it takes 12 mins for Minimserver to complete a Rescan - startupscan is set to "true"

This is on a 5 bay Synology 1511+ NAS with 1GB ram

Is this to be expected ?

Ian


RE: Rescan - taking a long time - konnexion - 13-05-2016 12:31

Just as a followup, a complete rescan takes 20 minutes

(Installed latest version after removing the current one so I assume this forces an index rebuild)


RE: Rescan - taking a long time - Peter StreamMagic - 13-05-2016 18:15

(13-05-2016 12:31)konnexion Wrote:  Just as a followup, a complete rescan takes 20 minutes

(Installed latest version after removing the current one so I assume this forces an index rebuild)

It took about 10 seconds to add one album to my single bay NAS (library about 800 albums).

Peter.


RE: Rescan - taking a long time - simoncn - 13-05-2016 22:21

(13-05-2016 12:31)konnexion Wrote:  Just as a followup, a complete rescan takes 20 minutes

(Installed latest version after removing the current one so I assume this forces an index rebuild)

Does your content directory contain only music files or does it contain other files as well?

Are all your files on local disks?

If you do a restart instead of a rescan, how long does that take?


RE: Rescan - taking a long time - konnexion - 15-05-2016 14:53

(13-05-2016 22:21)simoncn Wrote:  
(13-05-2016 12:31)konnexion Wrote:  Just as a followup, a complete rescan takes 20 minutes

(Installed latest version after removing the current one so I assume this forces an index rebuild)

Does your content directory contain only music files or does it contain other files as well?

Are all your files on local disks?

If you do a restart instead of a rescan, how long does that take?

All music is in FLAC format stored on the NAS device where Minimserver is installed.

Restart takes about 5 seconds


RE: Rescan - taking a long time - simoncn - 15-05-2016 22:09

(15-05-2016 14:53)konnexion Wrote:  All music is in FLAC format stored on the NAS device where Minimserver is installed.

Restart takes about 5 seconds

Does your content directory and its subdirectories contain only music files or do these directories contain other files as well?


RE: Rescan - taking a long time - konnexion - 16-05-2016 22:42

(15-05-2016 22:09)simoncn Wrote:  
(15-05-2016 14:53)konnexion Wrote:  All music is in FLAC format stored on the NAS device where Minimserver is installed.

Restart takes about 5 seconds

Does your content directory and its subdirectories contain only music files or do these directories contain other files as well?

Only music Simon


RE: Rescan - taking a long time - simoncn - 17-05-2016 11:41

(16-05-2016 22:42)konnexion Wrote:  Only music Simon

What is your setting for the startupScan property? It should be set to 'true'. If it is set to 'full', this would cause slow rescan performance.

If you are getting slow rescans with startupScan set to 'true', the next step would be to enable debug logging during the rescan to see exactly how long it is taking to rescan each file and folder. Please do the following:

1) From the minim icon, select 'Show log' and change the logging level to Debug
2) From the Synology Package Center, stop and restart MinimServer
3) The restart will do a rescan and write timing information to the minimserver.log file
4) After the restart is complete, use File Station to download the minimserver.log file from the MinimServer/appData file to your computer
5) Zip the minimserver.log file and attach the zipped file to a post here
6) Change the logging level back to Info


RE: Rescan - taking a long time - konnexion - 18-05-2016 21:40

(17-05-2016 11:41)simoncn Wrote:  
(16-05-2016 22:42)konnexion Wrote:  Only music Simon

What is your setting for the startupScan property? It should be set to 'true'. If it is set to 'full', this would cause slow rescan performance.

If you are getting slow rescans with startupScan set to 'true', the next step would be to enable debug logging during the rescan to see exactly how long it is taking to rescan each file and folder. Please do the following:

1) From the minim icon, select 'Show log' and change the logging level to Debug
2) From the Synology Package Center, stop and restart MinimServer
3) The restart will do a rescan and write timing information to the minimserver.log file
4) After the restart is complete, use File Station to download the minimserver.log file from the MinimServer/appData file to your computer
5) Zip the minimserver.log file and attach the zipped file to a post here
6) Change the logging level back to Info

startupscan is set to true. Log attached, thanks !


RE: Rescan - taking a long time - simoncn - 20-05-2016 17:58

(18-05-2016 21:40)konnexion Wrote:  startupscan is set to true. Log attached, thanks !

Thanks for this. It looks like MinimServer is spending a lot of time scanning @eaDir directories. These are created automatically by Synology DSM within your music library and they contain album art images extracted from your music files. I have made a change in update 85 (now available) to prevent MinimServer from scanning these directories and this should reduce your rescan times.