Assistance with rclone mount param

What is the problem you are having with rclone?

I have Google Drive mounted on a linux server through rclone. The cache is set to use up to 100 GB of storage and expire after 200 hours. The problem is the cache usage is always under 20-25G and cache files seem to only be as old as 4-5 days. Changes to the drive are ONLY made through this server and not externally/remotely.

I want to maximise the amount of time the files and attributes are cached locally and to minimise the amount of API requests made. I don't want to minimise API requests because of their limits - I have a custom API limit by Google and it is more than enough. I want to lower the number of API requests made during read requests to speed it up. I'm sure I'm doing something wrong so if anyone could provide some insight I would be grateful.

What is your rclone version (output from rclone version)

rclone v1.51.0
- os/arch: linux/amd64
- go version: go1.13.7

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:        10
Codename:       buster

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone -vv --attr-timeout 200h --poll-interval 200h --dir-cache-time 200h --vfs-cache-max-age 200h --vfs-cache-mode full --vfs-cache-poll-interval 200h --vfs-cache-max-size 100G --fast-list --tpslimit 10 mount google: /storage --allow-other

The rclone config contents with secrets removed.

[google]
type = drive
client_id = **REMOVED**
client_secret = **REMOVED**
scope = drive
token = **REMOVED**
team_drive = **REMOVED**

A log from the command with the -vv flag

2020/08/16 02:02:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:03:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:04:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:05:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:06:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:07:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:08:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:09:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:10:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:11:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:12:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:13:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:14:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:15:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:16:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:17:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:18:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:19:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:20:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:21:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:22:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:23:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:24:46 DEBUG : Google drive root '': Checking for changes on remote
2020/08/16 02:25:46 DEBUG : Google drive root '': Checking for changes on remote

It looks like you've got it set up right.

Why don't you use find to find the oldest file in the cache to check what it is? You need to look at the atime

Setting -v will show the cache expire runs in the log which will give you more to go on.

Thank you. Just to clarify, do the following parameters accept "h" time?

--attr-timeout 200h
--poll-interval 200h
--dir-cache-time 200h
--vfs-cache-max-age 200h
--vfs-cache-poll-interval 200h
--vfs-cache-max-size 100G

All except for the last one. You can use 7d or 1w too.

hi, you can read more about it here

https://rclone.org/docs/#options

1 Like

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