# Mounting Cache Size

**URL:** <https://forum.rclone.org/t/mounting-cache-size/34589>\
**Category:** Help and Support\
**Created:** [December 8, 2022, 8:32pm UTC](https://forum.rclone.org/t/mounting-cache-size/34589 "2022-12-08T20:32:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joshua](https://forum.rclone.org/user_avatar/forum.rclone.org/joshua/32/13693_2.png) [@Joshua](https://forum.rclone.org/u/Joshua)\
**Post date:** [December 8, 2022, 8:32pm UTC](https://forum.rclone.org/t/mounting-cache-size/34589/1 "2022-12-08T20:32:52Z")

</div>

So I am using this cmd here to map my google drive. It works like a charm

rclone mount --vfs-case-insensitive --vfs-cache-mode full --write-back-cache --vfs-write-back 10s --vfs-cache-max-age 300s --vfs-cache-max-size 5000M --vfs-cache-poll-interval 60s --cache-dir c:\temps crypt: T:

I was wondering if I changed the 5000M cache max size to something larger will that cause any issue? I have a 500gb empty SSD just laying around the house that I can use for cache. Same thing with the --vfs-cache-max-age 300s , can I make that to a larger number without causing issues? This is a cmd I found on reddit , its been working for me. Im to all of the mounting part of rclone.

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [December 8, 2022, 8:37pm UTC](https://forum.rclone.org/t/mounting-cache-size/34589/2 "2022-12-08T20:37:37Z")

</div>

hello and welcome to the forum,

without knowing what you are using the mount for, hard to give specific advice.

> [@Joshua](#):
>
> cache max size to something larger will that cause any issue?

only if you run out of free space

> [@Joshua](#):
>
> --vfs-cache-max-age 300s , can I make that to a larger number without causing issues?

yes, in fact `300s` is a very small value, as the default is `1h0m0s`  
so that means, once the file is downloaded into the vfs file cache.  
after 300 seconds, rclone will remove that file from the cache.  
note: rclone will never remove a cached file that is open/in-use by some app on your machine.

---

<div class="post-metadata">

**Author:** ![Joshua](https://forum.rclone.org/user_avatar/forum.rclone.org/joshua/32/13693_2.png) [@Joshua](https://forum.rclone.org/u/Joshua)\
**Post date:** [December 8, 2022, 8:43pm UTC](https://forum.rclone.org/t/mounting-cache-size/34589/3 "2022-12-08T20:43:41Z")

</div>

Thanks for your reply. Its for streaming. I use it for my Plex and Emby servers. Is there a max number that rlcone allows me to set for the cache max age and size?

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [December 8, 2022, 9:15pm UTC](https://forum.rclone.org/t/mounting-cache-size/34589/4 "2022-12-08T21:15:14Z")

</div>

as for the rclone cache, many rcloners so not use it.  
when at home, with 1Gbps internet, i do not need the cache.

as my emby server is hosted in the cloud, i run `rclone mount` on that.

> [@Joshua](#):
>
> Is there a max number that rlcone allows me to set for the cache max age and size?

really, it just depends on the amount of space, if any, you want to give rclone.  
and how long you want stale files to stay in the cache.  
choose the values that work for you.

and might take a read of this topic and compare your command to that.  
[https://forum.rclone.org/t/finding-the-best-possible-setup-for-plex-rclone-google-drive-windows-server-2016-with-generate-intro-markers-generate-thumbnail-video-previews/34363](https://forum.rclone.org/t/finding-the-best-possible-setup-for-plex-rclone-google-drive-windows-server-2016-with-generate-intro-markers-generate-thumbnail-video-previews/34363)

---

<div class="post-metadata">

**Author:** ![Joshua](https://forum.rclone.org/user_avatar/forum.rclone.org/joshua/32/13693_2.png) [@Joshua](https://forum.rclone.org/u/Joshua)\
**Post date:** [December 9, 2022, 12:37am UTC](https://forum.rclone.org/t/mounting-cache-size/34589/5 "2022-12-09T00:37:45Z")

</div>

Do you know if the cache folder gets populated when a file is scan? I know its get populated when the file is played but not for sure if its scan. I use to use google drive software and when files are scanned in Plex or Emby the files are cached in a folder.

I have a 1gb internet as well but sometimes the video just doest play right away unless its cached. I get a 5-7 second start time on new files that not cached, If you dont mind can you share your rclone syntax for mounting?

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [December 9, 2022, 12:56am UTC](https://forum.rclone.org/t/mounting-cache-size/34589/6 "2022-12-09T00:56:44Z")

</div>

not sure what problem you are trying to solve?  
before you wrote 'It works like a charm'

> [@Joshua](#):
>
> if the cache folder gets populated when a file is scan?

yes, as scan and stream both read the contents of the file  
[https://github.com/animosity22/homescripts#plex](https://github.com/animosity22/homescripts#plex)

> [@Joshua](#):
>
> but sometimes the video just doest play right away unless its cached

hard to answer, maybe transcoding using too much cpu/memory  
try playing a low-res video direct from `t:\`, not using plex.

---

<div class="post-metadata">

**Author:** ![Ole](https://forum.rclone.org/user_avatar/forum.rclone.org/ole/32/9242_2.png) [@Ole](https://forum.rclone.org/u/Ole)\
**Post date:** [December 9, 2022, 8:14am UTC](https://forum.rclone.org/t/mounting-cache-size/34589/7 "2022-12-09T08:14:17Z")

</div>

Hi Joshua,

> [@Joshua](#):
>
> If you dont mind can you share your rclone syntax for mounting?

These are the settings I would use for a good all-round mount of Google Drive on Windows with 400 GB available for caching in D:\temps:

```auto
rclone mount --network-mode --buffer-size=0 --vfs-cache-mode=full --vfs-cache-max-age=720h --vfs-cache-max-size=400G --drive-pacer-min-sleep=10ms --drive-pacer-burst=200 --cache-dir D:\temps crypt: T:

```

I think it will be good for Plex and Emby too, so I suggest you try it and let me know how it compares to your current command. Note: It may be a little slower initially when loading your most used files into the cache.

Here is a variant using only 5 GB caching in C:\temps in case you want to try it before adding the extra SSD disk:

```auto
rclone mount --network-mode --buffer-size=0 --vfs-cache-mode=full --vfs-cache-max-age=720h --vfs-cache-max-size=5G --drive-pacer-min-sleep=10ms --drive-pacer-burst=200 --cache-dir C:\temps crypt: T:

```

The suggestion is based on this post:  
[https://forum.rclone.org/t/rclone-mount-compare-speed/34538/3](https://forum.rclone.org/t/rclone-mount-compare-speed/34538/3)

You can find descriptions of the used parameters here:  
[https://rclone.org/commands/rclone\_mount/#mounting-modes-on-windows](https://rclone.org/commands/rclone_mount/#mounting-modes-on-windows)  
[https://rclone.org/commands/rclone\_mount/#vfs-file-buffering](https://rclone.org/commands/rclone_mount/#vfs-file-buffering)  
[https://rclone.org/commands/rclone\_mount/#vfs-file-caching](https://rclone.org/commands/rclone_mount/#vfs-file-caching)  
[https://rclone.org/commands/rclone\_mount/#vfs-cache-mode-full](https://rclone.org/commands/rclone_mount/#vfs-cache-mode-full)  
[https://rclone.org/drive/#drive-pacer-min-sleep](https://rclone.org/drive/#drive-pacer-min-sleep)  
[https://rclone.org/drive/#drive-pacer-burst](https://rclone.org/drive/#drive-pacer-burst)

---

<div class="post-metadata">

**Author:** ![Joshua](https://forum.rclone.org/user_avatar/forum.rclone.org/joshua/32/13693_2.png) [@Joshua](https://forum.rclone.org/u/Joshua)\
**Post date:** [December 10, 2022, 2:50pm UTC](https://forum.rclone.org/t/mounting-cache-size/34589/8 "2022-12-10T14:50:34Z")

</div>

@Ole@asdffdsa Thank you for all your help. I am going to try some things you guys suggested.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [January 9, 2023, 2:51pm UTC](https://forum.rclone.org/t/mounting-cache-size/34589/9 "2023-01-09T14:51:30Z")

</div>

Closed on January 9, 2023, 2:51pm UTC

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