-
Notifications
You must be signed in to change notification settings - Fork 354
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
max_cache_size_mb doesn't seem to be working #42
Comments
It's probably a bug in the way I keep track of cache size. If you enable the
in the file |
It looks like the act of simply copying a large file out of the google drive onto the local disk causes it to get placed in cache (even if the file is larger than the specified cache size) |
Yes, you are right. It works like that, because Google Drive API does not support partial uploads, while FUSE will copy the file chunk by chunk. So if the file is not cached somewhere, the upload would be impossible. In theory, the cached file will be deleted after the upload is completed. If the file remains, there is a bug. |
Yes, all I am doing is
There did not appear to be any errors or issues during the copy. |
Oh, sorry, I didn't understand that you were talking about downloading and not uploading. When you download a resource, the cache is shrinked before the download is performed. That's because, even reading is done chunk by chunk and I think that lantency would be too high, if reading was performed directly from the Drive API. But when I have more time, I will do some testing about direct download without caching. |
Hi, I would also like to see direct download option. I'm using several google drives to store large number of multimedia files which are only read by the system on which the drive is mounted, everything works fine, but sometimes when my app want to access a file on the drive there is little delay and this causes my app to stall forever. What i observed is that when my app hits a file on the drive it is downloaded in the cache folder, may be if the download does not happen very fast i get the problem. If the download could begin in chunks may be my app will read the file seamlessly. |
AS - Thanks for all your hard work in making our google drives available to Linux No-GUI installs! I have the same need as stated in this thread - I have a VPS running Ubuntu 13.10 CLI only; running as a plex media server. However, the local space on the server is very limited, so I am using google-drive-ocamlfuse version 0.5.3-0ubuntu1 to access the google drive with my media on it (and it works great). The problem occurs when I access my media on my google drive - it immediately downloads the whole movie (5-6GB) from the google drive and stores it locally in VPS's cache before it plays or really does anything. Can you maybe add an option to NOT download and cache the entire movies/media that are accessed on google drive? I don't have the local HD space on my VPS to support caching files that size and really just want the ability to read my movie files on GD just like a regular hard drive and then Plex Media Server will send to me for viewing. Thanks Again |
OK, thanks for your feedback. I will try to add a direct download option. I still don't know if it's easy to implement. |
Thanks for the very useful program. I wondered if you have made any progress with this request? As with the users above, I'm dealing with large media files that I wish to access directly from the mounted drive, without caching locally first. The local caching causes long delays and timeouts in my scenario. At the moment I can only achieve this using the NetDrive commercial app on Windoze. This is essentially quite similar to your project, but it only needs to cache for uploads. |
In version 0.5.10, I've added 2 options to deal with this issue. If you set |
I've just tested 0.5.10 from the ubuntu repo, and I can confirm that the new options are present and working. Good work. Thank you. |
Hi,
I'm finding that the cache size is exceeding the max_cache_size_mb setting. I've tried 10MB, 512MB, etc., but the cache is growing as high as 6 gigs in some cases.
Note that in my case, I'm dealing with multi-gig files in the google drive. Not sure if that could be related. There are also some instances where the drive seems to get disconnected every now and then, not sure if that could be related either.
Thanks,
Chris
The text was updated successfully, but these errors were encountered: