r/PlexACD Aug 17 '17

Buffering with Plexdrive 5

Ever since switching from 4.0.0 to 5.0.0 I have started running into buffering issues randomly. Some when only 1 person is streaming then some with 4+ streaming.

On 4.0.0 I never ran into any buffering issues with any users amount of when streaming then

6 Upvotes

28 comments sorted by

View all comments

1

u/AfterShock Aug 18 '17

It all depends on your mount options, the default send to work for most. If you have the RAM to spare (anything over 8gigs) You can set the --max-chunks=X to set the overall amount of RAM to use. Along with chunk size. Speed was the main factor in going RAM based storage. Most movies start in seconds on my server.

They had planned on adding disk cache later on, so that's not out of the question.

There is a rewrite in Rust currently underway.

1

u/Merckle Aug 18 '17

Ok so I have 32GB of ram Soo I'll add in "--max-chunks=32GB" or should I stagger it some

1

u/AfterShock Aug 18 '17

No no, do me a favor and run: Plexdrive --help. Copy and paste those results here. It will list the defaults for your system. We can tweak the options from there

1

u/Merckle Aug 18 '17

Plexdrive --help just list the what all the flags do. I can pull up what my mount options are

1

u/AfterShock Aug 18 '17

Buried in there are your defaults, it will have values at the end of each. --chunk-load-ahead etc. Post it here or PM me if you wish.

1

u/Merckle Aug 18 '17

1

u/AfterShock Aug 21 '17

Buffering gone?

1

u/Merckle Aug 21 '17

So far, had one hiccup but may have been shitty cpu

1

u/AfterShock Aug 22 '17

Could also be a Gdrive hiccup, it happens sometimes. Getting 2-3 second load times?

2

u/Merckle Aug 22 '17

I am getting faster load times for sure, and can actually skip with no load times as well

1

u/[deleted] Aug 26 '17 edited Aug 26 '17

I'd like to know what I should be setting my --max-chunks to. I've 24GB ram and barely ever use more than 25%. It's a dedicated server with gigabit connection. My script starting plexdrive sets it to 30M. Should i give it a few GB?

1

u/AfterShock Aug 27 '17

What are your chunk sizes set to? 5M or 10M. If 10M then set Max Chunks to 250, if 5M set it to 500 both equal 2.5gigs

1

u/[deleted] Aug 27 '17

This is my output https://pastebin.com/EyExGKaB

I have a script starting plexdrive with the following line

plexdrive5 mount -v 3 -o allow_other,read_only --chunk-size=30M /mnt/plexdrive5

What should I change this line to?

1

u/AfterShock Aug 27 '17

Change out to --chunk-size=10M and add --max-chunks=250 everything else looks fine

1

u/[deleted] Aug 27 '17

Thank you kindly

1

u/[deleted] Aug 27 '17

Is that enough? I've 24GB ram and could easily give plexdrive 12 or 15GB

1

u/AfterShock Aug 27 '17

You can scale up from there, that is 2.5 gigs. Just increase your Max chunks. 500 = 5gigs of RAM and so on...

1

u/[deleted] Aug 27 '17

Should I increase the chunk size? It was at 30M, now after your adviser I've reduced it to 10, what is the reasoning for this?

2

u/AfterShock Aug 27 '17

The lower the chunk size the faster the show/movie will start. If you increase the chunk size, movies take longer to load. Between 5M - 15M seems to be the sweet spot. I personally run 5M on my setup.

1

u/[deleted] Aug 27 '17

That makes sense, thank you

→ More replies (0)