@
arick
I don't know that your library server arrangement is the only problem but this appears to be very poor performance.
For the player I used in my previous examples, the track discovery rate was 6980 tracks/5.5 seconds = 4.5 million tracks/hour. My back-of-the-envelope estimate suggests your process should have been done in something like 5 minutes instead of more than the hour you waited before killing it.
One way to check just how fast listall.sh is detecting tracks in your library is to run a modified version of my test for a measured length of time, say 10 minutes or half an hour:
Code:
/var/www/command/listall.sh > /tmp/listall.out
At the end of the time interval, kill the process with CTRL-C and then take the number of files detected, which will be the number in the first column of output from the following command, and divide the number by the elapsed time.
Using my player again (for which, remember, listall.sh ran to completion in 5.5 seconds so I didn't need to CTRL-C):
Code:
pi@moodeLR:~ $ wc /tmp/listall.out
6980 110500 955088 /tmp/listall.out
So, 6980 tracks and 5.5 seconds.
The number in the third column is interesting as well. That's the size of the list in bytes. In normal operation, that list is being accumulated in RAM and then sorted before being passed on to the thumbnail generator. A back-of-the-envelope calculation suggests your output might be around 50MB, and the sort operation will take space too. This could be a resource issue on an RPi model with, say 512MB total RAM, but I'm not sure it would be a problem on a 1GB RPi3B and surely not on a 2GB or 4GB RPi4B.
Let's see what you are actually getting. Whatever the result is, the process should have completed.
I think it possible that you are running into resource issues as Tim suggests might be happening, just because of the large size of your library, but I think it's also likely from the numbers you've posted so far that your library arrangement is inadequate.
Regards,
Kent
PS - My numbers were taken on an RPi4B. The rate would have been some 20 percent - 30 percent lower on an RPi3B.