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

How to speed up metadata updates

Open arnaldocan opened this issue 4 years ago • 2 comments

I'm using Google-drive-ocamlfuse version 0.7.23 and have made some tweaks to update up local cache, including: async_upload_queue, write_buffers max_cache_size_mb, max_memory_cache_size, metadata_cache_time, metadata_memory_cache and metadata_memory_cache_saving_interval.

In my setup, creating or updating a file is slow, for example:

$ time touch a.txt
real    0m1,997s
user    0m0,002s
sys     0m0,000s
$ time touch a.txt
real    0m0,808s
user    0m0,000s
sys     0m0,002s

However, updating already existing files is very fast:

$ time echo a > a.txt 
real    0m0,040s
user    0m0,000s
sys     0m0,000s

Is there a way to optimize metadata updating?

arnaldocan avatar Dec 30 '20 03:12 arnaldocan

No, sorry, when you create a new file, the REST API is called, while when you update the content, the upload is queued. That's why the first case is slower than the second.

astrada avatar Dec 30 '20 19:12 astrada

Ok, thanks for the explanation.

arnaldocan avatar Dec 31 '20 01:12 arnaldocan