1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

Testing Out The Btrfs Mount Options On Linux 3.2

Michael Larabel

Published on 26 March 2012
Written by Michael Larabel
Page 1 of 4 - 23 Comments

Earlier this month I benchmarked all the major Linux file-systems of Ubuntu 12.04: ReiserFS, JFS, EXT2, EXT3, EXT4, Btrfs, and XFS. While Btrfs performed well with Ubuntu 12.04 LTS, it was not always the fastest although it does offer the most advanced feature-set. For those looking to tune a Btrfs file-system for performance, published now are some reference benchmarks showing the Linux Btrfs performance with varying mount options.

For this Btrfs mount option testing I used the Intel Core i5 "Sandy Bridge" notebook from the earlier Ubuntu 12.04 LTS article with the Intel X-25 SSD and Ubuntu 12.04 x86_64 operating system with Linux 3.2 kernel. The Btrfs file-system was tested with its default mount options as found from the Ubuntu 12.04 installation (nospacecache,relatime,rw,ssd) and then testing a variety of well-known mount options. The tested Btrfs mount options included space caching, no data copy-on-write, Zlib compression, LZO compression, auto-defrag, and free inode cache.

Below are the relevant mount option descriptions from the Btrfs web-page.

space_cache - Btrfs stores the free space data ondisk to make the caching of a block group much quicker (Kernel 2.6.37+). It's a persistent change and is safe to boot into old kernels.
nodatacow - Do not copy-on-write data. datacow is used to ensure the user either has access to the old version of a file, or to the newer version of the file. datacow makes sure we never have partially updated files written to disk. nodatacow gives slight performance boost by directly overwriting data (like ext[234]), at the expense of potentially getting partially updated files on system failures. Performance gain is usually < 5% unless the workload is random writes to large database files, where the difference can become very large
compress=zlib - Better compression ratio. It's the default and safe for olders kernels.
compress=lzo - Fastest compression. btrfs-progs 0.19 or olders will fail with this option. The default in the kernel 2.6.39 and newer.
autodefrag - will detect random writes into existing files and kick off background defragging. It is well suited to bdb or sqlite databases, but not virtualization images or big databases (yet). Once the developers make sure it doesn't defrag files over and over again, they'll move this toward the default. (Kernel 3.0+)
inode_cache - enable the new free inode cache. This option maybe slowdown your system at first run. (Kernel 3.0+)

This testing is quite straightforward so we can move directly to the results from this Ubuntu 12.04 Btrfs benchmarking.

<< Previous Page
1
Latest Linux Hardware Reviews
  1. Scythe Mugen MAX
  2. Intel Core i7 5960X Haswell-E On Linux
  3. Intel 80GB 530 Series M.2 SSD On Linux
  4. With A New Motherboard, The Core i7 5960X Haswell-E Lights Up
Latest Linux Articles
  1. RadeonSI GLAMOR Benchmarks With X.Org Server 1.16
  2. RadeonSI Gallium3D vs. Catalyst At 4K UHD On Linux
  3. MSAA RadeonSI Gallium3D Performance Preview
  4. Intel Core i7 5960X CPU Core Scaling Under Linux
Latest Linux News
  1. SNA & UXA Intel Benchmarks With X.Org Server 1.16
  2. Graphics Driver Changes Coming In The Linux 3.18 Kernel
  3. Tropico 5 Being Released For Linux Gamers This Week
  4. Eclipse IDE Starts Firing Up On Wayland's Weston
  5. OpenSUSE Announcement On SUSE's Recent Merger
  6. Valve Begins Publicly Tracking AMD Catalyst Linux Issues
  7. Digia Qt Spinoff Is Called "The Qt Company"
  8. GNOME 3.14 Makes More Progress In Running Natively On Wayland
  9. Minix 3.3 Released With Cortex-A8 ARM Support, NetBSD Userland Compatibility
  10. More Intel DRM Changes Queued For Linux 3.18, Including Old i830M Fixes
Latest Forum Discussions
  1. Best Radeon for a Power Mac G5?
  2. New Group Calls For Boycotting Systemd
  3. Hd 6850
  4. New stress testing utility for GPU's
  5. Updated and Optimized Ubuntu Free Graphics Drivers
  6. support for first generation UVD blocks (RV6xx, RS780, RS880 and RV790)
  7. Nvidia joins the ranks of Apple and Microsoft
  8. nv and xorg.conf under Debian PPC