Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rescan Speed
29-04-2021, 08:22
Post: #11
RE: Rescan Speed
(27-04-2021 15:35)simoncn Wrote:  If it takes 3 minutes to do the rescan, this is about the same time as it takes to play a song. You can start a song and then start the rescan. The song will continue to play while the rescan is happening. By the time the song has finished, your new playlist should be available.

Maybe one day my music library will be so big that I will have to play the entire Ring before the scan is finished Big Grin Big Grin Big Grin
Find all posts by this user
Quote this message in a reply
27-06-2022, 00:54
Post: #12
RE: Rescan Speed
(28-04-2021 18:57)simoncn Wrote:  Thanks for your understanding. I am hoping to improve the speed of the use case you have described but this will require major redesign of some of the Minimserver internals with careful thought to ensure it doesn't affect browsing speed or memory usage.

Any progress improving rescan & metadata rebuild speed on incremental library additions?

On minimserver v2.1 update 216 with startupscan = false, adding just one or two new directories (< 500MB of .flac files) and then 'rescan' will on occasion cause a rescan of my entire library of 2.7TB (> 178,000 files in ˜10,800 directories), lasting up to 30 minutes. Is that expected for a library of this size?
Find all posts by this user
Quote this message in a reply
27-06-2022, 05:50
Post: #13
RE: Rescan Speed
If you have a lot of playlists - I found out that my playlists (I had a lot and they contained a lot of tracks) made the performance of any sort of scan really slow so I ended up moving my playlists from server to client
Find all posts by this user
Quote this message in a reply
27-06-2022, 09:41
Post: #14
RE: Rescan Speed
Rescanning about 180,000 files in about 11,000 directories should take about 3 minutes plus the time taken to read any new files (usually a few seconds). If this takes 30 minutes, it sounds like MinimServer is rebuilding its cache file. Does a rescan always take 30 minutes or does it sometimes take 3 minutes?
Find all posts by this user
Quote this message in a reply
27-06-2022, 16:21 (This post was last modified: 27-06-2022 16:49 by usery.)
Post: #15
RE: Rescan Speed
(27-06-2022 09:41)simoncn Wrote:  Rescanning about 180,000 files in about 11,000 directories should take about 3 minutes plus the time taken to read any new files (usually a few seconds). If this takes 30 minutes, it sounds like MinimServer is rebuilding its cache file. Does a rescan always take 30 minutes or does it sometimes take 3 minutes?

Most of the time rescan is fast (< 1min) after adding a small number (≤ 10) of new files, but occasionally and maddeningly it's up to 30min. No discernible pattern for when it 'decides' to rebuild cache / metadata.

fwiw I have no playlists.
Find all posts by this user
Quote this message in a reply
27-06-2022, 17:15
Post: #16
RE: Rescan Speed
Could the longer rescans perhaps be after you have made some change to the MinimServer configuration such as adding new entries to indexTags? This could require a full rescan.

Another possibility is that the MinimServer cache file might somehow have been deleted. What device are you using to run MinimServer?
Find all posts by this user
Quote this message in a reply
27-06-2022, 17:26
Post: #17
RE: Rescan Speed
(27-06-2022 17:15)simoncn Wrote:  Could the longer rescans perhaps be after you have made some change to the MinimServer configuration such as adding new entries to indexTags? This could require a full rescan.

Another possibility is that the MinimServer cache file might somehow have been deleted. What device are you using to run MinimServer?

No changes to MinimServer configuration, ever. It's seemingly stable so I don't mess with it.

MinimServer is running on Win10 64 Pro - standard config, no weirdo services or background processes afaict. Library is on an internal volume.

The 30min rescans happen every 1-2 out of 10 rescans.
Find all posts by this user
Quote this message in a reply
27-06-2022, 21:00
Post: #18
RE: Rescan Speed
There is a small chance that for some reason MinimServer has encountered an error reading the cache file. Next time this happens, please check the MinimServer log to see if there are any error messages that might indicate this.
Find all posts by this user
Quote this message in a reply
22-07-2022, 17:10
Post: #19
RE: Rescan Speed
Hi,
I used to have a slow rescan on my DS218+ until I increased the memory on the NAS. I have 280,000 songs a mixture of MP3 and Flac. Unless I add a large number of files at once (500 or so) a rescan takes no time at all. Is this because the cache on the NAS is holding the data from the scan? I have noticed if I haven't rescaned for a few days then the scan does then take a lot longer, but not as long as before I added the extra memory.
I run the scan remotely from my PC using minimwatch.
Regards
Find all posts by this user
Quote this message in a reply
22-07-2022, 22:01
Post: #20
RE: Rescan Speed
Rescanning a library of this size needs a significant amount of memory. If you don't have enough RAM for this, the operating system will need to do swapping to/from disk which will make the rescan slower.

A rescan checks all files to see if they have changed and reads any files that have been added or changed. The time taken for checking should be the same for every rescan (but see below). The time taken for reading will be greater if there are more added or changed files to read.

If you haven't done a rescan for a few days, relevant data in the operating system cache and/or disk cache will have been overwritten and will need to be recreated. This is why the rescan takes a bit longer in this case.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)