Skip to main content
QUICK REVIEW

[Paper Review] Analyzing IO Amplification in Linux File Systems

Jayashree Mohan, Rohan Kadekodi|arXiv (Cornell University)|Jul 26, 2017
Advanced Data Storage TechnologiesComputer Science18 references8 citations
TL;DR

This paper presents the first systematic analysis of I/O amplification—read, write, and space amplification—in five major Linux file systems (ext2, ext4, XFS, btrfs, F2FS). It reveals significant amplification across operations, with write amplification reaching 2–32× and metadata operations like rename consuming up to 648 KB of I/O, leading to the CReWS conjecture: strong crash consistency in general-purpose file systems inherently conflicts with low I/O and space amplification.

ABSTRACT

We present the first systematic analysis of read, write, and space amplification in Linux file systems. While many researchers are tackling write amplification in key-value stores, IO amplification in file systems has been largely unexplored. We analyze data and metadata operations on five widely-used Linux file systems: ext2, ext4, XFS, btrfs, and F2FS. We find that data operations result in significant write amplification (2-32X) and that metadata operations have a large IO cost. For example, a single rename requires 648 KB write IO in btrfs. We also find that small random reads result in read amplification of 2-13X. Based on these observations, we present the CReWS conjecture about the relationship between IO amplification, consistency, and storage space utilization. We hope this paper spurs people to design future file systems with less IO amplification, especially for non-volatile memory technologies.

Motivation & Objective

  • To systematically analyze read, write, and space amplification across widely used Linux file systems.
  • To quantify the I/O cost of common data and metadata operations, such as file writes, appends, and renames.
  • To identify the root causes of I/O amplification in modern file systems, especially due to crash-consistency mechanisms.
  • To propose the CReWS conjecture, arguing that strong crash consistency in general-purpose file systems inherently conflicts with low I/O and space amplification.
  • To guide future file system design, especially for non-volatile memory, by highlighting the trade-offs between consistency, efficiency, and storage footprint.

Proposed method

  • Used blktrace, dstat, and iostat to capture and analyze block I/O traces during file system operations.
  • Measured write amplification as the ratio of total storage write I/O to user data written.
  • Measured read amplification as the ratio of total read I/O to user data requested.
  • Measured space amplification as the ratio of total storage consumed (data + metadata) to user data written.
  • Conducted micro-benchmarks on individual operations (e.g., rename, write, append) and macro-benchmarks (Linux kernel compile, Filebench varmail).
  • Classified I/O into synchronous (fsync) and delayed background checkpointing to isolate performance costs.

Experimental results

Research questions

  • RQ1What is the extent of write amplification in common Linux file systems during data operations such as overwriting or appending?
  • RQ2How much I/O is incurred by metadata operations like file rename, directory creation, or file updates?
  • RQ3To what extent do crash-consistency mechanisms such as journaling and copy-on-write contribute to I/O and space amplification?
  • RQ4Can a general-purpose file system simultaneously minimize read, write, and space amplification while ensuring strong crash consistency?
  • RQ5How do modern file systems like F2FS and btrfs compare in terms of I/O efficiency under diverse workloads?

Key findings

  • Write amplification in data operations ranges from 2× to 32× across all file systems, with btrfs exhibiting the highest values.
  • Small random reads result in read amplification of 2× to 13×, even with a warm cache, indicating inefficient I/O patterns.
  • A single file rename operation can generate up to 648 KB of write I/O in btrfs, highlighting extreme metadata I/O costs.
  • Despite both using metadata journaling, XFS outperforms ext4 in write efficiency for file updates, indicating design differences matter.
  • F2FS significantly outperforms btrfs in I/O efficiency across all workloads, despite both being log-structured file systems.
  • Space amplification ranges from 2× to 30×, primarily due to metadata structures and crash-consistency mechanisms like journaling and copy-on-write.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.