Server Version#: 1.22.2.4282
Player Version#: Mac, iOS and AppleTV 7.15(23220) as primary
I moved my Plex server to the cloud with a Ubuntu 18.04 server and rclone Google Drive storage about two years ago. Over the past month or so I’ve been experiencing GDrive bans which I believe has to do with excess scanning. The cause of this is not as yet nailed down. Even with all scanning and analysis being turned off, I still seem to be moving files into the rclone cache which I am not viewing.
As a work around I’ve attempted to turn off all scanning and generate scripts using the Plex Media Scanner CLI. While testing my scripts I am puzzled as to why scanning for a single file is much slower than scanning an entire directory? Here are examples of two invocations of the Plex Media Scanner.
Here scanning for a single file which was previously added to a media folder:
time /usr/lib/plexmediaserver/Plex\ Media\ Scanner --scan --file /home/gd_mounts/tv_mydrive/tv_current/B\ Positive/Season\ 1/B\ Positive\ -\ S01E13\ -\ Inflammatory\ Response\ WEBDL-720p.mp4
real 1m10.354s
user 0m17.154s
sys 0m5.878s
Or here scanning the entire directory after having added a single file to the media folder:
time /usr/lib/plexmediaserver/Plex\ Media\ Scanner --scan --section 17 --directory /home/gd_mounts/tv_mydrive/tv_current/Clarice/Season\ 1/
real 0m4.017s
user 0m0.420s
sys 0m0.056s
The single file performance is consistently significantly slower. I have run this multiple times with the current version and the same result.
The scanner settings for the library in question are set to “Plex Series Scanner” and “TheTVDB”.
Any thoughts or suggestions? Should I switch to the Beta Scanner? Any thoughts as to other things which might cause PMS to want to read files which are not being viewed? I only have video libraries (movies, tv, and personal) no music.