Benchmarks Of The Btrfs Space Cache Option

Written by Michael Larabel in Software on 24 December 2010 at 08:11 AM EST. Page 4 of 4. 21 Comments.

When the Dbench client count was set to 12, the benefits of using space_cache were much smaller but still measurable. There was also a small improvement tacked onto the compress results when using both mount options.

Using the compress mount option more than tripled the write performance with FS-Mark while the space_cache option only enhanced the Btrfs file-system performance by a tiny bit.

With 64MB random writes using 32 threads on Threaded I/O Tester, the space_cache option provided for some improvements while again the compress option resulted in a much more dramatic speed-up.

Lastly, with AO-Stress, the space_cache mount option was worthwhile but not as comparatively great as using the compress option.

Overall, the space_cache option when using the Btrfs file-system on Linux 2.6.37+ kernels will result in improved performance. However, in two of the tests there were odd performance regressions when pairing the space_cache and compress mount options. One of the only other drawbacks to using space_cache on Btrfs is that when the file-system is mounted with this option, the file-system can no longer be mounted later on by any pre-2.6.37 kernels due to the disk format changing. The compress mount option continues to work very well for speeding up the Btrfs performance in nearly every test. Going forward though the space_cache option is great and eventually will hopefully be used by default.

If you enjoyed this article consider joining Phoronix Premium to view this site ad-free, multi-page articles on a single page, and other benefits. PayPal or Stripe tips are also graciously accepted. Thanks for your support.


Related Articles
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.