Rclone just RAM caching

Hello all,

I just wanted to configure Rclone mount with Gdrive, but just using RAM.
I was checking VFS options, and just wanted to know first of all, if any sort of VFS is needed for VFS Directory Cache to be working.
Then I would like to know if I can just use --buffer-size flag to make my files available to the system but just from the RAM, or it will be needed also the information to be cached locally in a drive. If thats the case I guess I will need to make a RAMDisk, or any other option is avaiable in Rclone? Of course this is just for read only, and no writting is required.

Kind regards

hello,

the vfs dir cache uses ram and is always required.
have a read of my comparison of the vfs dir cache and the vfs file cache
https://forum.rclone.org/t/status-about-using-rclone-for-music-storage-playback-in-2021-access-times-improved/27648/34

as far as i know, that is not possible, the buffer is not persistent.
see this open issue
https://github.com/rclone/rclone/issues/5592

you can use the vfs file cache and store that in the ramdisk.
note, that --vfs-cache-max-size is a soft limit and possible for rclone to use more space.
and if a file is open/locked/in-use, rclone will not remove it.

and for my mounts, when streaming from cloud, i use
--- --read-only
--- do not use --vfs-cache-mode, in effect --vfs-cache-mode=off

Hello,

So I do not know if the same problem I am having with Plex is the one in that github page, I am literally having plex crashing when changing of resolution, however I have VFS mode in FULL, and don't know why Plex is acting as such.
Here my config:

ExecStart=/usr/bin/rclone mount \
        --config=/root/.config/rclone/rclone.conf \
        --allow-other \
        --cache-tmp-upload-path=/tmp/rclone/upload \
        --cache-chunk-path=/tmp/rclone/chunks \
        --cache-workers=20 \
        --cache-writes \
        --cache-dir=/tmp/rclone/vfs \
        --cache-db-path=/tmp/rclone/db \
        --no-modtime \
        --buffer-size=500M \
        --drive-chunk-size=256M \
--drive-server-side-across-configs=true \
--drive-pacer-min-sleep 10ms \
--drive-pacer-burst 200 \
--dir-cache-time 5000h \
--poll-interval 60s \
--vfs-cache-mode full \
--vfs-cache-max-size 10G \
--vfs-cache-max-age 10h \
--vfs-cache-poll-interval 1m \
--vfs-read-ahead 500M \
--vfs-read-chunk-size 128M \
--cache-dir=/tmp/ramdisk/rclone \
--rc \
        --drive-use-trash \
        --stats=0 \
        --checkers=24 \
        --bwlimit=80M \
        --dir-cache-time=120m \
        --cache-info-age=120m encryptteam:/ /mnt/google

But the plan was to run everything in RAM and not in disk and killing the disk, when I have enough RAM, just wanted a tiny buffer for the streams to be fluid and for the full tree directory to be cached for quick media refresh in Plex.

Any idea?

when you posted, there was a template of questions, most of which you have not answered.
at this point, need to post
--- redacted config file
--- output of rclone version

i cannot see into your computer, no idea what that means???

[team]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = {"access_token":"XXX+01:00"}
team_drive = XXX
root_folder_id =

[encryptteam]
type = crypt
remote = team:
filename_encryption = standard
directory_name_encryption = true
password = XXX


rclone v1.56.2
- os/version: debian 10.10 (64 bit)
- os/kernel: 4.19.0-17-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.16.8
- go/linking: static
- go/tags: none

About Plex crashing on Android SOs, I need to check the logs, I can only say that Plex is just crashing when changing resolution don't know the cause

imho, if you do not understand a flag does does not use it, just remove it and use defaults.
--- there are many flags that do nothing
--- there are duplicate flags.

do not know what Android SOs means?

as for plex on android crashing, no idea, test on another device.

I need to solve that yes

What I mean with this is that Firetv or Android phones are having the same issue. I was able to extract the logs from my phone:
https://pastebin.com/Lzd5RpA8
The log is covering from the quality change to the app restarting/crashing, and reopening again

first cleanup that rclone mount command.

about that pastebin, got "page is no longer available. It has either expired, been removed by its creator, or removed by one of the Pastebin staff"

i would test plex on something not android, get that working first.

lol, don't know what went wrong in there:

Already done it through my windows client and that is not happening. However when I reproduce local videos through plex this android behaviour is not happening, it started when changing to cloud service

the rclone mount and plex on windows is working.
so you seem to have a plex on android issue.

that is not a rclone bug log????
need to see a rclone debug log,
at the exact moment in time that you have the issue with plex+android.

This is the rclone log:

It seems like rclone continues downloading the film after plex crashes on client, but server shows buffering:

image

However don't know what is making Plex client to crash

either plex server is asking for more data
or
--vfs-read-ahead - make sure you understand what it does, else remove it.

the word server is too generic to be useful.

imho, best to ask the plex forum why the plex client on android crashes but not the windows client.

Yep, thats the most probable thing.

I have already sent them the android logs to dig out what can be the issue.

Also I am downloading to local one of the films that is crashing remotely. And hope I can reproduce the issue locally, since it should as I have VFS active, if not I guess something weird might be ongoing with the VFS

imho, none of your problem/crashing are due to rclone.
as you pointed out, everything works on windows.

at this point, is there a rclone question we can help you with?

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