Rasplex Cache Settings question

Hi!

I’m trying to find out what Player hardware works best for me. Chromecast is out of the picture. Apple TV seems instable and i cannot find out about the cache settings so that one is probably out too. Someone tipped me about Rasplex and i think it looks nice!

I have some questions about Cache Settings and display…

What i understand Rasplex is based on PHT?
Can i press “i” during playback to display cache size for example?

Do you know if it is possible to increase the cachesize beyond 110MB with a advancedsettings.xml file placed somewhere?

@Mephist0 said:
What i understand Rasplex is based on PHT?
Can i press “i” during playback to display cache size for example?

Welcome.

Yes, you can if you have a keyboard attached or if using CEC use one of the coloured buttons, Yellow if I remember rightly.

Do you know if it is possible to increase the cachesize beyond 110MB with a advancedsettings.xml file placed somewhere?

Any particular reason why you would want to increase the cache size, there is no real benefit.

Do you know if it is possible to increase the cachesize beyond 110MB with a advancedsettings.xml file >>placed somewhere?

Any particular reason why you would want to increase the cache size, there is no real benefit.

Yes, because my Plex server is remotly accessed over internet and my connection is a 25Mbit/s mobile broadband connection that could be a bit jumpy when it comes to speed. I would like to have a cache as large as possible or even cache to harddisk if possible. That way i could start the movie, pause it a while to let the cache fill up and then start it and hopefully i will not have any interruptions during playback :slight_smile:

@Mephist0 said:
Yes, because my Plex server is remotly accessed over internet and my connection is a 25Mbit/s mobile broadband connection that could be a bit jumpy when it comes to speed. I would like to have a cache as large as possible or even cache to harddisk if possible. That way i could start the movie, pause it a while to let the cache fill up and then start it and hopefully i will not have any interruptions during playback :slight_smile:

Add this to advancedsettings.xml:

 <advancedsettings>
   <network>
     <buffermode>1</buffermode>
     <cachemembuffersize>157286400</cachemembuffersize>
     <readbufferfactor>20</readbufferfactor>
   </network>
 </advancedsettings>

To create an advanced settings.xml file, SSH in to your RPi:

 nano /storage/.plexht/userdata/advancedsettings.xml

Paste in the above, press CTRL and X, press Y, reboot your RPi.

This means all protocols get cached, cache rate fills as fast as possible, and the cache size is 150MB, using 450MB of ram total.

That should work, post back it its OK.

Regards

@NedtheNerd said:

@Mephist0 said:
Yes, because my Plex server is remotly accessed over internet and my connection is a 25Mbit/s mobile broadband connection that could be a bit jumpy when it comes to speed. I would like to have a cache as large as possible or even cache to harddisk if possible. That way i could start the movie, pause it a while to let the cache fill up and then start it and hopefully i will not have any interruptions during playback :slight_smile:

Add this to advancedsettings.xml:

 <advancedsettings>
   <network>
     <buffermode>1</buffermode>
     <cachemembuffersize>157286400</cachemembuffersize>
     <readbufferfactor>20</readbufferfactor>
   </network>
 </advancedsettings>

To create an advanced settings.xml file, SSH in to your RPi:

 nano /storage/.plexht/userdata/advancedsettings.xml

Paste in the above, press CTRL and X, press Y, reboot your RPi.

This means all protocols get cached, cache rate fills as fast as possible, and the cache size is 150MB, using 450MB of ram total.

That should work, post back it its OK.

Regards

I actually got my Rasberry PI 3 today! :slight_smile: I must say the installation was very easy and quick! :slight_smile:
Only problem is that its hard to find any documentation and explanation on how to do things… But most things is self explained and thats good :slight_smile: I managed to find the SSH logon details in the settings for SSH server and then the rest was easy… :slight_smile:

Your settings works fine. I increased the buffer to 220MB instead of 150MB in your example. But i do not see any excessive memory usage compared with the original buffer setting of 50MB …

Also the buffer fills up very fast… To fast for my internet connection… It takes a couple of seconds … I’m not sure i watching the right value though in the player… Its a value “B” and then a percent… it goes up to 100% very fast… guess thats the buffer… 2nd line from the bottom…

Also the plexlog says:

01:00:06 T:1969840128 NOTICE: ARM mem: 752MB GPU mem: 256MB MPG2:0 WVC1:0
01:00:06 T:1969840128 NOTICE: cacheMemBufferSize: 220MB

So that confirmes the setting is working… But im not sure its actually work anyway… :slight_smile: Is there a way to confirm?

Here is the memory usage when running a 1080p NCIS serie and buffer says its full:

RasPlex:~/.plexht/temp # free
total used free shared buffers cached
Mem: 756356 356412 399944 5028 38616 127952
-/+ buffers/cache: 189844 566512
Swap: 0 0 0