How to speed up Google Drive OCamlFUSE (tool for installing Google Drive on Linux)

Google Drive OCamlFUSE Lets you install Google Drive on Linux without relying on any desktop environment. With it, you get full read and write access to ordinary files and folders, read-only access to Google Docs, Sheets, and Slides, and more. It also supports multiple accounts and Team Drive.
With this tool, you can access Google Drive on Linux from a file manager, open files from Google Drive from a desktop application, and even access Google Drive files from a terminal.
However, for some users, even using Google Drive OCamlFUSE to navigate their Google Drive is very slow. This article contains some adjustments to speed up Google Drive access when installing on Linux using Google Drive OCamlFUSE so that you can browse and perform file operations (renaming, moving, opening) faster. However, this will not make Google Drive OCamlFUSE upload or download files faster.1. Speed ​​up Google Drive OCamlFUSE when it contains many Google Docs, Sheets and Slides
Google Docs, Sheets, and Slides cannot be cached efficiently, so if you have a lot of such files, Google Drive may cause operations like navigation, opening, moving or renaming files to slow down. In fact, this is one of the reasons why this is done Google Drive OCamlFUSE may be slow for you.

  • If you don’t need access to these Google Docs, you can turn them off completely in Google Drive OCamlFUSE, which makes browsing and accessing files faster. This can be done by editing the Google Drive OCamlFUSE configuration file and replacing it with download_docs=true versus download_docs=false.

By default, the configuration file path is ~/.gdfuse/default/config. Open this file by using the following default text editor:

xdg-open ~/.gdfuse/default/config

search for download_docs, Set its value to false (true by default), and save the file.

  • If you really want to be able to access Google Docs, Sheets, and Slides on your desktop but want to improve the performance of Google Drive OCamlFUSE at the same time, you can use another option. You can convert Google Docs into links. This can be done by making document_format=desktop, presentation_format=desktop, And so on, in the Google Drive OCamlFUSE configuration file.

In fact, starting with Google Drive OCamlFUSE version 0.7.5, released about 10 days ago, this is now the default setting. However, if you have installed and configured Google Drive OCamlFUSE, these settings will not change unless you do it manually.
To convert Google Docs to links, open the Google Drive OCamlFUSE profile (~/.gdfuse/default/config), Use the default text editor with:

xdg-open ~/.gdfuse/default/config

Search now for all occurrences _format= In this file (document_format=, presentation_format=Etc.) and change its value to desktop,E.g document_format=desktop, presentation_format=desktop, And so on, and then save the file.
You must then link google-drive-ocamlfuse with -cc Option once, clear cache:

google-drive-ocamlfuse -cc

Related: Install Google Drive 2 on Xfce or MATE desktop (Ubuntu, Linux Mint). Accelerate Google Drive OCamlFUSE by adding: metadata_cache_time value.
of metadata_cache_time The option specifies the interval (in seconds) between two queries to detect server-side changes on your Google Drive, which defaults to 60 seconds.
If you have made many local changes without having to constantly check Google Drive for changes (so no one keeps making changes to your Google Drive files), you can increase this value to increase speed. You can use Google Drive OCamlFUSE installs Google Drive to access folders, files and perform file operations.
Open Google Drive OCamlFUSE configuration file (~/.gdfuse/default/config) And use the following default text editor:

xdg-open ~/.gdfuse/default/config

Search now metadata_cache_timeAnd change its value from 60 to 600. I recommend trying 600 first, but you can use higher values ​​if you like, especially if you are sure you want to make all changes to your local Google Drive. Google Drive Client Grive2: How to enable automatic syncing 3. Increase the maximum cache size
Google Drive OCamlFUSE can cache files locally, so it is much faster after the initial load. By default, the maximum cache size is set to 512 MB, but if you have enough local space, you can increase this size to speed up processing.
Open the Google Drive OCamlFUSE profile again (~/.gdfuse/default/config) And use the following default text editor:

xdg-open ~/.gdfuse/default/config

search for max_cache_size_mbAnd change its value from the default of 512 MB to the desired value, then save the file. If you are not familiar with Google Drive OCamlFUSE, please see how to install and use it GitHub repository page.

Source

Sidebar