Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

gcsfuse default --sequential-read-size-mb

Hi, as suggested by  @KirTitievsky in this post  https://www.googlecloudcommunity.com/gc/Infrastructure-Compute-Storage/Read-file-from-GCS-cloud-stor...  we can set --sequential-read-size-mb in gcsfuse so that the file can be loaded in chunks and be read line by line from that chunk. I am wondering

1.what is the default --sequential-read-size-mb?

2.I already mounted my bucket using 

gcsfuse my-bucket /path/to/mount/point

without specifying any option, is there a way to update the option after it has already been mounted? 

Solved Solved
2 2 482
1 ACCEPTED SOLUTION

Hi @gradientopt,

Welcome to Google Cloud Community!

1.what is the default --sequential-read-size-mb?

Upon looking around, the default --sequential-read-size-mb is 200MB based on this Github link. You can also set it between 5MB and 200MB to optimize sequential read performance. You can check this link as reference.

2.I already mounted my bucket using 
gcsfuse my-bucket /path/to/mount/point

without specifying any option, is there a way to update the option after it has already been mounted? 

You can change the mount point by using this command:

fusermount -u /path/to/mount/point

Then you can replace it with another mount point. Check this link on unmounting a bucket for your reference.

Hope this helps.

View solution in original post

2 REPLIES 2

Hi @gradientopt,

Welcome to Google Cloud Community!

1.what is the default --sequential-read-size-mb?

Upon looking around, the default --sequential-read-size-mb is 200MB based on this Github link. You can also set it between 5MB and 200MB to optimize sequential read performance. You can check this link as reference.

2.I already mounted my bucket using 
gcsfuse my-bucket /path/to/mount/point

without specifying any option, is there a way to update the option after it has already been mounted? 

You can change the mount point by using this command:

fusermount -u /path/to/mount/point

Then you can replace it with another mount point. Check this link on unmounting a bucket for your reference.

Hope this helps.

Thanks very much!