I have an application that uses range seeks repeatedly to read a 2G+ file from a rclone mount of a sftp remote.
I cannot change the application.
By inspecting the cache directory I see it is not downloading the file by the specified vfs-read-chunk-size or vs-read-ahead (both set to 128M).
The ideal behavior for me would be to cache the chunks that correspond to the range seek ranges.
A compromise would be to cache the entire file on access. What would the rclone mount parameters be then?
What is your rclone version (output from rclone version)
os/version: darwin 12.0.1 (64 bit)
os/kernel: 21.1.0 (arm64)
Which cloud storage system are you using? (eg Google Drive)
The command you were trying to run (eg rclone copy /tmp remote:tmp)
It is I'd say, but it doesn't do what you want it to do. If a file is closed, reading ahead and keeping buffers would be inefficient because the application asked it to be closed. Open/seek/close/open/seek/close is a very inefficient cloud storage use case which mitigated a bit with cache mode full.
Correct. You'd have to use case your flow to cat / work on file / etc.