Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup dir cache from ram to disk and reload into ram on reboot #7790

Open
brimur opened this issue Apr 22, 2024 · 0 comments
Open

Backup dir cache from ram to disk and reload into ram on reboot #7790

brimur opened this issue Apr 22, 2024 · 0 comments

Comments

@brimur
Copy link

brimur commented Apr 22, 2024

The associated forum post URL from https://forum.rclone.org

https://forum.rclone.org/t/keep-rclone-dir-cache-across-reboots/19662
https://forum.rclone.org/t/is-disk-based-dir-cache-enabled-by-default-now-or-is-it-still-just-in-ram/45526

What is your current rclone version (output from rclone version)?

rclone v1.65.2

os/version: ubuntu 23.10 (64 bit)
os/kernel: 6.5.0-27-generic (x86_64)
os/type: linux
os/arch: amd64
go/version: go1.21.6
go/linking: static
go/tags: none

What problem are you are trying to solve?

On a reboot a vfs cache refresh takes between 10 and 15 minutes. In that time other services are starting and checking directories which hangs the services because the dir structure is not cached in RAM and each service is traversing the dir tree.

How do you think rclone should be changed to solve that?

If would be great if the dir tree was 1. frequently saved to disk to disk in case of unexpected stop and 2. saved to disk when rclone mount service was stopped and then loaded into ram again when it was started.

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant