Is there a way to limit the bandwidth that Google Drive File Stream uses?

5,757

Solution 1

Because Drive File Stream has been updated with a graphical options menu since 2018, changing the upload and download bandwidth limits using defaults is no longer necessary. I'm leaving my original post here, but note that using defaults improperly can break your application settings at best and probably break your computer at worst.

However, if you know what you're doing, changing your Google Drive settings using the command line might be a neat parlor trick to show your friends.


*** THE FOLLOWING IS NO LONGER RELEVANT ***

Please use the regular options menu - it exists now.

I am guessing you are using Drive File Stream instead of the now-depreciated Google Drive application. For Drive File Stream, there currently is no graphical options menu. However, this page from Google outlines how settings can still be changed using the defaults shell command.

In order to limit download bandwidth to 100 Kilobytes/second, open Terminal and enter the following command:

defaults write com.google.drivefs.settings BandwidthRxKBPS -int 100

The 100 can be changed to any integer value you choose, and note that the value is in kiloBYTES and not kiloBITS.

To set the value for upload speed, use the following command:

defaults write com.google.drivefs.settings BandwidthTxKBPS -int 100

In order to change all settings back to their default, you can use this command:

defaults delete com.google.drivefs.settings

Hope this helps! Comment with any questions you have.

Solution 2

There is a similar option:

  1. Right-click on File Stream.
  2. Go to the Settings icon → Preferences → Network Settings.
  3. The app will ask you to restart the service.

Network Settins

Share:
5,757

Related videos on Youtube

useR
Author by

useR

Updated on September 18, 2022

Comments

  • useR
    useR almost 2 years

    Is there a way to limit the bandwidth that Google Drive File Stream uses?

    I'm using a Mac and when I resume syncing, the Internet becomes unusable. I have to stop syncing to browse simple web pages!

  • useR
    useR almost 6 years
    Thanks but I don’t have the settings or preferences option for google drive on my Mac. The answer you mentioned is for windows.
  • Fanatique
    Fanatique almost 6 years
    @useR There are such options for Mac.. as stated in here. The feature is for both Windows and Mac. Here is where to find it.
  • johan
    johan almost 5 years
    This is incorrect. The answer is for Google Drive not Drive File Stream.