Gdrive rclone Plex speeds

Hi All

I've just setup Gdrive with rclone and Plex on a dedicated server (Oneprovider Atom C2750 8GB DDR3 128GB SSD 1 Gbps) I'm definitely a noob to all this and followed an online guide to set it up. The problem I've got is that my download speed from the server is not good enough for high bitrate 4K remuxes. I keep getting brief stuttering on the sound. When I monitor the speeds from within Plex it seems to max out at just over 100 Mbps.

I use the native Plex/Xplay apps on my LG C8 and when I stream from my local PC it maxes out at around 250 Mbps which has been fine playing high bitrate 4K for over 6 months now. My home connection is fibre at 400 Mbps.

This is playing the 200 Mbps Jellyfish file via my server:

This is my config settings, I have tried playing around with some of the settings but it doesn't seem to make a lot of difference.

[Unit]
Description=Mount and cache Google drive to /media/Plex
After=syslog.target local-fs.target network.target
[Service]
Environment=RCLONEHOME=/home/plexuser/.config/rclone
Environment=MOUNTTO=/media/Plex
Environment=LOGS=/home/plexuser/logs
Environment=UPLOADS=/home/plexuser/uploads
Type=simple
User=root
ExecStartPre=/bin/mkdir -p ${MOUNTTO}
ExecStartPre=/bin/mkdir -p ${LOGS}
ExecStartPre=/bin/mkdir -p ${UPLOADS}
ExecStart=/usr/bin/rclone mount
--rc
--log-file ${LOGS}/rclone.log
--log-level INFO
--umask 022
--allow-non-empty
--allow-other
--fuse-flag sync_read
--tpslimit 10
--tpslimit-burst 10
--dir-cache-time=160h
--drive-chunk-size 256M
--buffer-size=1G
--attr-timeout=1s
--vfs-read-chunk-size=16M
--vfs-read-chunk-size-limit=2G
--vfs-cache-max-age=5m
--vfs-cache-mode=writes
--cache-dir ${UPLOADS}
--config ${RCLONEHOME}/rclone.conf
gdrive: ${MOUNTTO}
ExecStop=/bin/fusermount -u -z ${MOUNTTO}
ExecStop=/bin/rmdir ${MOUNTTO}
Restart=always
[Install]
WantedBy=multi-user.target

Any advice would be greatly appreciated!

Note that I have zero experience with trying to play 4k video via Plex on a dedicated server. Even so, I'll have a stab at helping out...

Firstly have you checked the log file to see if you're getting any errors? According to your settings, it should live at /home/plexuser/logs/rclone.log. It might be worth running the mount command with the --log-level DEBUG setting to see if things are funky.

You're mounting the gdrive via rclone on your local PC and it plays fine? If that's the case what are the local PC specs?

It would be useful to know if the server is transcoding this 4K video or not. I ask because the Atom CPU has a passmark of 3806 and the basic CPU requirements suggest an intel core i7 or a potential passmark of 17000. I'd also double check if that 1 Gbps bandwidth is shared or not.

You appear to have a lot of custom arguments being passed to the rclone mount command. Are they taken from the guide you used?

This looks odd to me. What is the reason to invalidate the cache every 5 minutes?

This seems very low. The default is 128M.

Thanks for your reply. This is a page worths of log:

2019/06/15 22:37:50 INFO : Starting HTTP transaction limiter: max 10 transactions/s with burst 10
2019/06/15 23:09:15 NOTICE: Serving remote control on http://127.0.0.1:5572/
2019/06/15 23:09:15 INFO : Starting HTTP transaction limiter: max 10 transactions/s with burst 10
2019/06/15 23:21:09 NOTICE: Serving remote control on http://127.0.0.1:5572/
2019/06/15 23:21:09 INFO : Starting HTTP transaction limiter: max 10 transactions/s with burst 10
2019/06/16 14:46:04 NOTICE: Serving remote control on http://127.0.0.1:5572/
2019/06/16 14:46:04 INFO : Starting HTTP transaction limiter: max 10 transactions/s with burst 10
2019/06/16 14:46:15 NOTICE: Serving remote control on http://127.0.0.1:5572/
2019/06/16 14:46:15 INFO : Starting HTTP transaction limiter: max 10 transactions/s with burst 10
2019/06/16 14:47:14 NOTICE: Serving remote control on http://127.0.0.1:5572/
2019/06/16 14:47:14 INFO : Starting HTTP transaction limiter: max 10 transactions/s with burst 10
2019/06/16 14:49:00 INFO : TV_Shows/jellyfish-200-mbps-4k-uhd-hevc-10bit.mkv: Copied (new)
2019/06/16 14:49:31 INFO : Cleaned the cache: objects 3 (was 3), total size 716.950M (was 0)
2019/06/16 14:50:31 INFO : Cleaned the cache: objects 3 (was 3), total size 716.950M (was 716.950M)
2019/06/16 14:51:31 INFO : Cleaned the cache: objects 4 (was 5), total size 716.950M (was 716.950M)
2019/06/16 14:52:31 INFO : Cleaned the cache: objects 6 (was 6), total size 4.024G (was 716.950M)
2019/06/16 14:53:32 INFO : Cleaned the cache: objects 6 (was 7), total size 10.102G (was 4.024G)
2019/06/16 14:54:31 INFO : Cleaned the cache: objects 7 (was 7), total size 16.159G (was 10.102G)
2019/06/16 14:55:31 INFO : Cleaned the cache: objects 7 (was 7), total size 22.148G (was 16.159G)
2019/06/16 14:56:31 INFO : TV_Shows/jellyfish-200-mbps-4k-uhd-hevc-10bit.mkv: Removed from cache
2019/06/16 14:56:31 INFO : Cleaned the cache: objects 5 (was 7), total size 28.186G (was 22.148G)
2019/06/16 14:57:31 INFO : Cleaned the cache: objects 5 (was 5), total size 33.594G (was 28.186G)
2019/06/16 14:58:31 INFO : Movies/Mia.and.the.White.Lion.2018.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-EPSiLON.mkv: Removed from cache
2019/06/16 14:58:31 INFO : Cleaned the cache: objects 4 (was 5), total size 39.628G (was 33.594G)
2019/06/16 14:59:31 INFO : 4K_Movies/Sing.2016.2160p.UHD.BluRay.REMUX.HDR.HEVC.Atmos-EPSiLON.mkv: Removed from cache
2019/06/16 14:59:31 INFO : Cleaned the cache: objects 3 (was 4), total size 45.757G (was 39.628G)
2019/06/16 15:00:31 INFO : Cleaned the cache: objects 3 (was 3), total size 51.906G (was 45.757G)
2019/06/16 15:00:47 INFO : 4K_Movies/Mia and The White Lion 2018 2160p Remux HEVC DTS-HD MA 5.1-iFT.mkv: Copied (new)
2019/06/16 15:01:31 INFO : Cleaned the cache: objects 3 (was 3), total size 53.505G (was 51.906G)
2019/06/16 15:02:31 INFO : Cleaned the cache: objects 3 (was 3), total size 53.505G (was 53.505G)
2019/06/16 15:03:31 INFO : Cleaned the cache: objects 3 (was 3), total size 53.505G (was 53.505G)
2019/06/16 15:04:31 INFO : Cleaned the cache: objects 3 (was 3), total size 53.505G (was 53.505G)
2019/06/16 15:05:31 INFO : Cleaned the cache: objects 3 (was 3), total size 53.505G (was 53.505G)
2019/06/16 15:06:33 INFO : 4K_Movies/Mia and The White Lion 2018 2160p Remux HEVC DTS-HD MA 5.1-iFT.mkv: Removed from cache
2019/06/16 15:06:33 INFO : Cleaned the cache: objects 0 (was 3), total size 53.505G (was 53.505G)
2019/06/16 16:36:59 NOTICE: Serving remote control on http://127.0.0.1:5572/
2019/06/16 16:36:59 INFO : Starting HTTP transaction limiter: max 10 transactions/s with burst 10
2019/06/16 16:37:10 NOTICE: Serving remote control on http://127.0.0.1:5572/
2019/06/16 16:37:10 INFO : Starting HTTP transaction limiter: max 10 transactions/s with burst 10

Sorry, I didn't explain myself very well. If I play locally from a HDD my TV will max out at around 250 Mbps so I'm pretty sure the TV is not the limiting factor. The files are also direct playing so there is no transcoding happening. When I perform a speed test on the server I am getting at least 800 Mbps and as far as I know it is a fully dedicated server.

I have added a couple of parameters but the majority of them are from the tutorial I followed. I have been playing around with some of the values so that's why some of them may look a bit odd. With all of the changes I have made none of them really made any difference, I'm still maxing out at around 100 Mbps.

I just ran a speedtest:

Retrieving speedtest.net configuration...
Testing from Free SAS (XX.XXX.XXX.XX)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by SiriusHD (Paris) [2.25 km]: 2.073 ms
Testing download speed................................................................................
Download: 853.33 Mbit/s
Testing upload speed................................................................................................
Upload: 847.91 Mbit/s

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.