I noticed in my syslog that BTRFS reports enabling "disk space caching". What is Btrfs's "disk space caching"?

up vote 2 down vote accepted

This space_cache option will be selected while mounting a mount point which has Btrfs file system. This will store the free space cache on the disk to make the caching of a block much faster. Without this, Btrfs has to scan the entire tree every time looking for the free space that can be allocated.

Short and to the point:

if enabled, Kernel will have available FS free space block addresses in memory, thus when you create a new file it will immediately start writing data to disk.

More details:

the mount option space_cache now is the default on recent kernels. It provides better performance, when creating new files or writing new data to disk. Please see link. You can disable it by adding nospace_cache mount option.

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.