[ Web Proxy ]
URL:
Viewing: https://cloud.google.com/storage/docs/cloud-storage-fuse/stat-caching [Back]  [Original]

Stat caching in Cloud Storage FUSE  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback

Stat caching in Cloud Storage FUSE Stay organized with collections Save and categorize content based on your preferences.

This document provides details on stat caching in Cloud Storage FUSE, which accelerates file metadata operations for applications that frequently check file attributes. Frequent file attribution checks are common for many applications that repeatedly check if a file has changed. Stat caching helps reduce the number of GetMetadata calls for Cloud Storage.

Benefits of stat caching

Configure stat caching

The stat cache is enabled by default. Configure it by using the gcsfuse command.

To set the maximum size of the cache, provide a value for one of the following:

Note: This property is a mount-level limit, and actual memory usage might be lower than the value you specify. Alternatively, you can set the property to a value of -1 to let the stat cache use as much memory as needed.

For more information about default and recommended values for configuring the stat cache, see the Cloud Storage FUSE CLI reference and Cloud Storage FUSE configuration file pages.

Configure negative stat caching

Cloud Storage FUSE also offers a negative stat caching capability, which lets you set a TTL for stat cache entries for non-existent files, or negative results. The TTL of the negative stat cache is controlled using one the following methods:

To learn more about stat caching, see Cloud Storage FUSE semantics in the Cloud Storage FUSE GitHub documentation.

What's next

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-11 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-11 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page