ajkis / scripts

Ajki's scripts & guides
https://ajkis.github.io/scripts/
324 stars 91 forks source link

copyspeedtest: caching? #22

Open bayoumedic opened 7 years ago

bayoumedic commented 7 years ago

i can run copyspeedtest and it shows ~10MB/s but if I delete the saved file and redo it then i get ~130MB/s suggesting it is cached somewhere. The first download takes a few seconds to start when the 2nd starts immediately.

1: is there a way to keep this from caching the file or some other way to get the true reading. For now i have it rotate through a list of files.

2: would it be helpful to run this prior to playing a file? I ask this because I am trying to fight the occasional bottle neck between ACD and my VPS (although there really shouldn't be one). It would make sense to do a pre download when the ACD connection slows down if, when plex tries to play or transcode it plex doesn't have to get it from ACD because it's already in cache (or ram or wherever). If this is all true is there a way to do run this script first before plex starts it's thing?

hjone72 commented 7 years ago

Running the copyspeedtest before a person watches a file isn't likely to resolve the sporadic ACD speed issues. An easy way to get something similar to 'pre-cache' is to disable direct play. If your server transcodes or direct streams the file it will download it ahead of time.