google-drive-ocamlfuse icon indicating copy to clipboard operation
google-drive-ocamlfuse copied to clipboard

Suggestion for best setup

Open rmdtx opened this issue 2 years ago • 2 comments

Hi

I will need to "map" virtually google drive very big (for me).. it is over 1 TB increasing of about 35 GB monthly with tons of files.

I will use on RHEL 8.x and working fine (I found some issue using OPAM version 2.1.2 due change in "depext" but working

I want to have some suggestion for tuning parameters

The goal is to avoid consuming space on Linux machine (just minimal for caching )

E.g. download_docs=true

it means when a Docx for example is retrieve it replicate in local ? so maybe better to keep false ? or in case it is downloaded.. when it will be remove from local (but of course keeped on google drive)

max_cache_size_mb=512 It is in MB.. probably it is enough but maybe with concurrency to be increased ?

But most critical maybe

stream_large_files=false large_file_threshold_mb=16

Maybe better to keep stream large file to true and reduce the threadhold to few MB ? Anyway I suppose it will just moving in cache (so based on the max_cache_size_mb)

etc

Another doubts.. about google access token.. when it will expire and asking again authentication ? My final usage will be to serve "files" on a web application, and so it should be alwasy connected ( so I will follow the auto mount document too)

Thanks! roberto

rmdtx avatar Mar 16 '22 13:03 rmdtx

it means when a Docx for example is retrieve it replicate in local ? so maybe better to keep false ?

Google Docs cannot be retrieved in their native format, they have to be exported. If you have download_docs on, you can access them locally, otherwise they are useless 0-byte files. If you don't care about docs you should turn download_docs off, or use the format desktop (instead of .ods, doc, etc.).

max_cache_size_mb=512 It is in MB.. probably it is enough but maybe with concurrency to be increased ?

Note that the limit is not strict, so the cache can grow past that size before shrinking.

stream_large_files=false large_file_threshold_mb=16 Maybe better to keep stream large file to true and reduce the threadhold to few MB ?

Sure, if you want to use the minimal possible local space, you should turn on streaming.

Another doubts.. about google access token.. when it will expire and asking again authentication ?

The access token is refreshed automatically. The refresh token won't expire unless you manually disable it.

astrada avatar Mar 18 '22 14:03 astrada

Thanks!

rmdtx avatar Mar 18 '22 14:03 rmdtx