Btrfs/ZFS/bcachefs under workloads classic benchmarks skip

farlight · HackerNews · 5 min read · original

Multi-device CoW filesystems under workloads classic benchmarks skip — latest run 2026-09-18 18:50:45 UTC, kernel 7.0.0-1012-azure, 593 runs recorded · 145 trend points shown · repository

CI runs use loop devices on shared ephemeral VMs (one VM per filesystem): compare shapes and ratios, not absolute MB/s. Each job records a host-calibration anchor — see the table.

|||

Summary indices

Score model v1: 100 = the selected cohort median. Metrics are normalized by direction, then geometric-meaned with equal subgroup and group weight. Using 8 recent complete selected-cohort runs; integrity is never averaged. Click a column header to sort; select a score to expand its normalized contributions.

ext4/single 6/6 metrics 4/4 metrics 9/9 metrics N/A
ext4/md-raid10 6/6 metrics 4/4 metrics 9/9 metrics FAIL
ext4/lvm-raid10 6/6 metrics 4/4 metrics 9/9 metrics FAIL
xfs/single 6/6 metrics 4/4 metrics 9/9 metrics N/A
xfs/md-raid10 6/6 metrics 4/4 metrics 9/9 metrics LUCKY
xfs/lvm-raid10 6/6 metrics 4/4 metrics 9/9 metrics FAIL
xfs/zvol 6/6 metrics 4/4 metrics 9/9 metrics PASS
xfs/lvm-raid10-int 6/6 metrics 4/4 metrics 9/9 metrics PASS
zfs/mirror 6/6 metrics 4/4 metrics 9/9 metrics PASS
zfs/mirror-8k 6/6 metrics 4/4 metrics 9/9 metrics PASS
zfs/single 6/6 metrics 4/4 metrics 9/9 metrics N/A
zfs/raidz2 6/6 metrics 4/4 metrics 9/9 metrics PASS
zfs/raidz1 6/6 metrics 4/4 metrics 9/9 metrics PASS
btrfs/raid1 6/6 metrics 4/4 metrics 9/9 metrics PASS
btrfs/single 6/6 metrics 4/4 metrics 9/9 metrics N/A
btrfs/raid6 6/6 metrics 4/4 metrics 9/9 metrics PASS
bcachefs/replicas2 6/6 metrics 4/4 metrics 9/9 metrics PASS
bcachefs/single 6/6 metrics 4/4 metrics 9/9 metrics N/A
bcachefs/ec 6/6 metrics 4/4 metrics 9/9 metrics PASS
ext4/md-raid10-luks 6/6 metrics 4/4 metrics 9/9 metrics FAIL
ext4/md-raid6 6/6 metrics 4/4 metrics 9/9 metrics FAIL
zfs/mirror-enc 6/6 metrics 4/4 metrics 9/9 metrics PASS
zfs/raidz1-enc 6/6 metrics 4/4 metrics 9/9 metrics PASS
zfs/raidz2-enc 6/6 metrics 4/4 metrics 9/9 metrics PASS
btrfs/raid1-luks 6/6 metrics 4/4 metrics 9/9 metrics PASS
bcachefs/replicas2-enc 6/6 metrics 4/4 metrics 9/9 metrics PASS

Latest run

One card per metric, sorted best-first — the per-card button switches to grouped matrix order. Every value also appears in the table below.

Sequential write MB/s · higher is better?

Random write, 4k + fsync IOPS · higher is better?

Random write, 4 threads IOPS · higher is better?

fsync p99 latency ms · lower is better?

fsync p99.9 latency ms · lower is better?

Random read, 4k cold cache IOPS · higher is better?

Random read, 4 threads IOPS · higher is better?

Sequential read MB/s · higher is better?

Trivial-op p99, idle ms · lower is better?

Trivial-op p99 under streaming write ms · lower is better?

Trivial-op worst case under load ms · lower is better?

Trivial ops completed under load ops · higher is better?

Create 20k-file tree ms · lower is better?

Create 20k-file tree, 4 workers ms · lower is better?

cp -r 20k-file tree, cold ms · lower is better?

rm -rf 20k-file tree ms · lower is better?

ftruncate empty file to 1G ms · lower is better?

Bytes allocated for sparse 1G B · lower is better?

ftruncate 256M file to 512M ms · lower is better?

Create 100k files in one directory ms · lower is better?

Enumerate 100k names, cold ms · lower is better?

Stat 100k files, cold ms · lower is better?

Stat 100k files, warm ms · lower is better?

Delete 100k-file directory ms · lower is better?

Snapshot create ms · lower is better?

Snapshot delete (all) ms · lower is better?

Space reclaim after delete s · lower is better?

Write during reclaim MB/s · higher is better?

zstd compression ratio x · higher is better?

Compressible-data write MB/s · higher is better?

Reflink copy of 2G ms · lower is better?

Overwrite plain file MB/s · higher is better?

Overwrite fresh reflink clone MB/s · higher is better?

Overwrite freshly-snapshotted file MB/s · higher is better?

Degraded random write IOPS · higher is better?

Degraded random read IOPS · higher is better?

Rebuild after device loss s · lower is better?

Scrub after corruption s · lower is better?

Write near full (95% target) MB/s · higher is better?

Write near full (99% target) MB/s · higher is better?

Snapshot create at 500 snaps ms · lower is better?

Remount with 500 snaps ms · lower is better?

Delete 500 snapshots ms · lower is better?

Snapshot aging ?

Random-overwrite bandwidth (MB/s) per iteration while snapshots accumulate — flat is good, falling is CoW fragmentation cost. Snapshot counts differ by design: 100 where the technology allows, 10 for default-recordsize ZFS, 8 for LVM.

Trends across runs

One card per metric, one point per run — the newest 100 runs individually, older runs collapsed to daily medians (full history on the results-data branch). Drag on a chart to zoom, double-click to reset; the y-axis rescales to what's visible.

Sequential write MB/s

Random write, 4k + fsync IOPS

Random write, 4 threads IOPS

fsync p99 latency ms

fsync p99.9 latency ms

Random read, 4k cold cache IOPS

Random read, 4 threads IOPS

Sequential read MB/s

Trivial-op p99, idle ms

Trivial-op p99 under streaming write ms

Trivial-op worst case under load ms

Trivial ops completed under load ops

Create 20k-file tree ms

Create 20k-file tree, 4 workers ms

cp -r 20k-file tree, cold ms

rm -rf 20k-file tree ms

ftruncate empty file to 1G ms

Bytes allocated for sparse 1G B

ftruncate 256M file to 512M ms

Create 100k files in one directory ms

Enumerate 100k names, cold ms

Stat 100k files, cold ms

Stat 100k files, warm ms

Delete 100k-file directory ms

Snapshot create ms

Snapshot delete (all) ms

Space reclaim after delete s

Write during reclaim MB/s

zstd compression ratio x

Compressible-data write MB/s

Reflink copy of 2G ms

Overwrite plain file MB/s

Overwrite fresh reflink clone MB/s

Overwrite freshly-snapshotted file MB/s

Degraded random write IOPS

Degraded random read IOPS

Rebuild after device loss s

Scrub after corruption s

Write near full (95% target) MB/s

Write near full (99% target) MB/s

Snapshot create at 500 snaps ms

Remount with 500 snaps ms

Delete 500 snapshots ms

Explore trends

An optional interactive view beside the existing charts. It uses the same compacted history and active filesystem filters; scroll or drag to zoom, and use the toolbox to restore or export.

Metric Display Range Baseline

Table view

Latest run, all metrics — click a column header to sort. calib = host-disk anchor measured before the filesystem exists (VM noise indicator).

filesystem Sequential write MB/s Random write, 4k + fsync IOPS Random write, 4 threads IOPS fsync p99 latency ms fsync p99.9 latency ms Random read, 4k cold cache IOPS Random read, 4 threads IOPS Sequential read MB/s Trivial-op p99, idle ms Trivial-op p99 under streaming write ms Trivial-op worst case under load ms Trivial ops completed under load ops Create 20k-file tree ms Create 20k-file tree, 4 workers ms cp -r 20k-file tree, cold ms rm -rf 20k-file tree ms ftruncate empty file to 1G ms Bytes allocated for sparse 1G B ftruncate 256M file to 512M ms Create 100k files in one directory ms Enumerate 100k names, cold ms Stat 100k files, cold ms Stat 100k files, warm ms Delete 100k-file directory ms Snapshot create ms Snapshot delete (all) ms Space reclaim after delete s Write during reclaim MB/s zstd compression ratio x Compressible-data write MB/s Reflink copy of 2G ms Overwrite plain file MB/s Overwrite fresh reflink clone MB/s Overwrite freshly-snapshotted file MB/s Degraded random write IOPS Degraded random read IOPS Rebuild after device loss s Scrub after corruption s Write near full (95% target) MB/s Write near full (99% target) MB/s Snapshot create at 500 snaps ms Remount with 500 snaps ms Delete 500 snapshots ms scrub errors found scrub repaired data intact after corruption FIEMAP shows shared extents delete at 100% full writable after delete calib seq MB/s calib rand IOPS tools / module version
ext4/single 354 6,762 14,724 12.1 26.6 5,533 7,604 414 1.55 — 27,700 6 1,437 763 2,256 434 8.32 0 0.77 3,357 103 1,411 314 1,342 — — — — — — — 67.9 — — — — — — 169 159 — — — — — — — yes yes 411 15,620 mke2fs 1.47.2 (1-Jan-2025)
ext4/md-raid10 193 3,261 4,696 38.5 43.3 6,076 19,525 336 4.23 — 10,998 11 6,057 1,062 2,578 442 13.4 0 0.73 3,426 94 1,351 320 1,390 — — — — — — — 38.2 — — 11,383 6,069 85 166 89.6 88.2 — — — 4,194,304 0 NO — yes yes 408 16,303 mke2fs 1.47.2 (1-Jan-2025)
ext4/lvm-raid10 192 3,096 5,727 36.4 40.6 5,907 18,293 374 5.67 53.7 53.8 139 1,661 952 2,633 442 16.3 0 1.05 3,445 93 1,325 308 1,384 262 2,317 4 34.4 — — — 37.5 — 34.9 9,708 5,633 44 83 90.5 81.0 3,342 98 301,721 4,194,304 0 NO — yes yes 404 14,862 mke2fs 1.47.2 (1-Jan-2025)
xfs/single 385 5,498 12,058 6.39 13.0 6,070 8,399 416 1.58 — 27,035 2 2,352 1,528 1,748 831 89.5 0 0.23 2,799 73 1,186 300 3,119 — — — — — — 4 72.7 19.0 — — — — — 163 159 — — — — — — yes yes yes 406 14,758 mkfs.xfs version 6.18.0
xfs/md-raid10 195 3,127 6,504 31.1 36.4 5,718 19,284 336 2.87 — 8,297 9 3,229 1,611 1,640 684 62.0 0 0.47 2,774 109 1,144 295 2,857 — — — — — — 4 39.7 15.5 — 8,087 5,825 87 167 88.0 83.8 — — — 4,194,304 0 yes yes yes yes 412 15,384 mkfs.xfs version 6.18.0
xfs/lvm-raid10 195 5,571 3,742 5.8 8.16 5,811 19,479 376 3.69 55.3 55.3 137 2,402 1,612 1,647 672 60.5 0 0.53 2,768 85 1,146 295 2,871 295 2,482 4 31.2 — — 5 33.5 15.4 35.1 6,261 6,022 43 86 87.0 67.9 3,517 3,708 317,925 4,194,304 0 NO yes yes yes 413 14,834 mkfs.xfs version 6.18.0
xfs/zvol 122 3,363 5,663 8.59 114 4,911 17,087 321 2.9 — 24,175 2 2,730 1,947 1,718 828 79.0 0 0.64 2,827 99 1,234 296 2,940 1,417 541 2 43.9 1.13 236 15 71.8 18.9 59.1 3,384 5,718 36 80 189 171 — — — 84,248 84,248 yes yes yes yes 405 16,534 mkfs.xfs version 6.18.0 on zfs-2.4.1-1ubuntu5.1
xfs/lvm-raid10-int 90.3 3,809 3,764 37.0 54.8 5,474 18,634 379 3.75 463 463 80 2,843 2,185 1,671 663 97.4 0 0.66 2,795 91 1,164 299 3,058 782 4,736 7 24.7 — — 5 39.6 15.6 26.0 3,137 5,608 55 87 81.0 86.7 4,249 3,689 382,966 0 0 yes yes yes yes 405 14,846 mkfs.xfs version 6.18.0
zfs/mirror 193 1,772 1,715 202 300 16,529 23,617 281 3.72 — 1,539 10 2,710 866 1,835 835 6.97 512 0.77 4,008 103 1,583 392 4,450 351 440 12 5.58 3.87 412 118 8.82 4.93 5.81 2,241 46,929 26 60 6.27 0 20 1,328 2,502 12,902 12,902 yes NO yes yes 412 14,719 zfs-2.4.1-1ubuntu5.1 zfs-kmod-2.4.1-1ubuntu5
zfs/mirror-8k 164 9,753 14,605 3.36 139 5,403 17,700 287 3.23 692 693 21 1,940 962 1,842 878 7.99 512 0.74 3,936 102 1,525 382 4,415 689 3,896 4 164 3.16 242 1,327 137 12.0 133 12,737 5,973 23 48 46.2 0 19 1,205 2,490 12 12 yes NO yes yes 410 14,705 zfs-2.4.1-1ubuntu5.1 zfs-kmod-2.4.1-1ubuntu5
zfs/single 378 3,410 3,358 43.8 56.4 12,963 19,054 402 2.18 — 1,208 19 2,667 848 1,851 854 10.4 512 0.8 3,980 103 1,633 394 4,468 547 344 5 13.6 3.87 482 113 17.6 8.6 14.7 — — — — 11.8 0 16 726 2,538 — — — NO yes yes 385 14,638 zfs-2.4.1-1ubuntu5.1 zfs-kmod-2.4.1-1ubuntu5
zfs/raidz2 189 1,737 1,685 112 156 16,208 19,545 401 2.21 — 1,450 9 2,002 830 1,855 846 9.99 512 1.06 4,017 105 1,621 394 4,505 188 345 13 4.9 3.87 382 147 8.47 4.97 5.57 1,922 45,646 51 61 6.14 4.39 17 1,847 2,515 23,043 23,043 yes NO yes yes 410 14,526 zfs-2.4.1-1ubuntu5.1 zfs-kmod-2.4.1-1ubuntu5
zfs/raidz1 281 2,650 2,550 107 152 15,678 21,032 402 1.38 — 1,707 12 2,880 829 1,840 836 9 512 0.88 3,960 112 1,622 392 4,451 441 342 9 7.28 3.87 444 1,354 13.0 7.16 9.67 2,868 45,773 34 42 9.64 0 18 1,286 2,665 14,826 14,826 yes NO yes yes 410 14,627 zfs-2.4.1-1ubuntu5.1 zfs-kmod-2.4.1-1ubuntu5
btrfs/raid1 168 2,758 4,157 8.72 16.9 5,662 18,542 415 3.72 5,469 5,494 27 11,144 1,461 1,404 802 1.99 0 1.19 2,502 192 1,346 326 3,148 34 8 32 66.1 3.57 251 4 74.5 84.8 68.6 3,545 5,872 23 44 0 0 29 286 76 264,264 264,264 yes yes yes yes 349 14,772 btrfs-progs v6.17.1
btrfs/single 271 3,373 5,085 8.98 18.0 5,647 8,166 413 11.2 4,010 3,996 48 3,037 1,335 1,371 625 1.11 0 0.53 2,458 191 1,335 322 3,115 30 10 56 62.9 3.57 298 4 76.3 134 76.4 — — — — 0 0 21 195 70 — — — yes yes yes 412 14,847 btrfs-progs v6.17.1
btrfs/raid6 172 1,842 2,590 21.9 30.8 5,147 15,909 411 4.69 — 9,646 11 7,180 1,587 1,372 642 1.02 0 1.07 2,483 210 1,347 324 3,095 37 8 29 55.4 3.57 208 3 74.6 101 65.7 2,128 7,177 35 48 0 0 24 237 112 123,957 123,957 yes yes yes yes 313 13,258 btrfs-progs v6.17.1
bcachefs/replicas2 194 9,004 17,524 3.49 15.1 11,236 13,201 363 4.29 2,936 2,949 20 2,494 1,604 2,073 901 10.3 0 1 2,827 117 1,132 344 2,477 34 2,852 6 25.9 3.74 335 216 76.0 60.4 92.2 9,286 35,332 20 48 138 143 26 531 11,524 — — yes NO yes yes 408 14,860 tools 1.39.6 / module 1.39.6
bcachefs/single 384 10,365 26,514 4.55 8.09 15,318 19,814 390 5.93 2,298 2,294 28 3,369 1,252 2,047 858 3.67 0 0.47 2,705 127 1,148 345 2,446 33 2,445 8 28.3 3.75 363 195 104 87.0 115 — — — — 158 140 33 458 11,280 — — — NO yes yes 411 15,042 tools 1.39.6 / module 1.39.6
bcachefs/ec 96.1 7,481 9,973 5.47 8.72 15,504 21,358 416 3.16 2,735 2,741 21 3,283 2,555 2,131 977 252 0 57.5 2,867 117 1,140 351 2,628 35 2,863 7 23.1 3.74 308 222 36.8 37.6 38.2 7,229 22,636 60 41 1.95 3.91 30 599 11,897 — — yes NO yes yes 414 14,913 tools 1.39.6 / module 1.39.6
ext4/md-raid10-luks 168 3,096 4,632 36.4 41.7 5,511 18,383 392 1.63 — 26,140 3 4,557 2,143 2,681 436 14.4 0 1.37 3,427 95 1,375 312 1,403 — — — — — — — 37.5 — — 10,438 5,825 87 167 82.9 81.8 — — — 4,194,304 0 NO — yes yes 407 14,847 mke2fs 1.47.2 (1-Jan-2025)
ext4/md-raid6 194 2,230 3,265 41.7 44.3 6,034 18,047 273 4.23 1,351 1,350 40 4,021 1,250 2,573 438 14.2 0 1.18 3,406 98 1,330 314 1,393 — — — — — — — 27.7 — — 5,175 5,258 109 102 88.6 101 — — — 4,194,304 0 NO — yes yes 409 14,773 mke2fs 1.47.2 (1-Jan-2025)
zfs/mirror-enc 191 1,652 1,664 190 388 12,840 23,240 287 1.43 — 1,233 10 2,076 958 1,904 852 29.0 512 0.8 4,115 125 1,720 392 4,559 235 365 12 5.3 3.87 398 84 7.27 4.68 5.18 2,007 41,742 26 60 6.19 0 19 1,360 2,588 4,530 4,530 yes NO yes yes 408 14,608 zfs-2.4.1-1ubuntu5.1 zfs-kmod-2.4.1-1ubuntu5
zfs/raidz1-enc 276 2,561 2,495 110 200 17,958 21,442 402 1.06 — 1,690 12 1,711 777 1,793 871 27.4 512 0.68 3,949 121 1,807 427 4,612 215 375 10 6.74 3.87 450 87 11.2 6.66 8.35 2,926 55,220 34 42 9.32 0 16 1,339 2,589 26,318 26,318 yes NO yes yes 417 14,696 zfs-2.4.1-1ubuntu5.1 zfs-kmod-2.4.1-1ubuntu5
zfs/raidz2-enc 190 1,639 1,697 113 158 13,457 19,401 404 7.83 — 1,248 11 3,758 910 1,989 843 26.7 512 1 4,093 136 1,817 390 4,460 136 325 12 5.3 3.87 395 85 6.92 4.38 4.92 1,671 40,259 51 61 6.08 0 19 1,733 2,667 17,375 17,375 yes NO yes yes 358 13,582 zfs-2.4.1-1ubuntu5.1 zfs-kmod-2.4.1-1ubuntu5
btrfs/raid1-luks 168 2,088 3,249 11.6 22.7 3,500 14,345 413 4.49 — 27,637 10 1,908 1,550 1,579 682 1.55 0 1.75 2,578 225 1,492 325 3,266 44 8 24 62.6 3.57 239 5 75.4 96.2 62.7 — — — 41 0 0 26 223 83 521,984 521,984 yes yes yes yes 406 14,463 btrfs-progs v6.17.1
bcachefs/replicas2-enc 194 9,285 21,060 3.36 38.5 10,085 13,177 360 2.77 1,552 1,554 27 2,594 1,550 2,128 949 17.2 0 0.45 2,774 111 1,229 380 2,734 35 2,851 6 20.6 3.77 349 212 58.0 66.2 69.4 9,896 21,594 20 48 127 135 35 1,582 12,371 — — yes NO yes yes 411 14,798 tools 1.39.6 / module 1.39.6

Metric reference

What exactly runs behind every number above, and where the code lives. The env-tunable sizes (SEQ_SIZE etc.) show their CI defaults.

Sequential write (MB/s) #

fio writes a fresh file sequentially: bs=1M, size=SEQ_SIZE (2G in CI), one job, fsync at the end (--end_fsync=1). Reported as write bandwidth. Phase 1.

source: run-bench.sh (Phase 1)

Random write, 4 threads (IOPS) #

The Phase 2 random-write workload with --numjobs=4 (one file per thread, fdatasync every 16 IOs, 4 threads = the runner's 4 vCPUs). Filesystem locking architecture only shows under concurrency — per the bcachefs author, this is where the biggest cross-filesystem variation lives. Compare against the single-thread card: scaling well above 1x is parallelism, below 1x is lock contention. Phase 2.

source: run-bench.sh (Phase 2)

Create 20k-file tree, 4 workers (ms) #

The 20k-file tree created by 4 concurrent workers on disjoint directory subsets — metadata lock contention (btrfs tree locks vs XFS per-AG parallelism vs bcachefs b-tree design). Compare with the single-worker card. Phase 3.6.

source: run-bench.sh (Phase 3.6)

Random write, 4k + fsync (IOPS) #

fio random 4k writes over a 1G file for 30s, fdatasync every 16 IOs (--rw=randwrite --bs=4k --fdatasync=16 --time_based). Reported as IOPS. Phase 2.

source: run-bench.sh (Phase 2)

fsync p99 latency (ms) #

99th percentile of fdatasync completion latency, extracted from the Phase 2 run (fio sync.lat_ns percentiles). CoW transaction commits (ZFS txg every ~5s, btrfs commit interval) appear here as periodic spikes the IOPS average hides.

source: run-bench.sh (Phase 2)

fsync p99.9 latency (ms) #

99.9th percentile of fdatasync completion latency from Phase 2 — the tail of the tail. zfs mirror-8k famously posts great IOPS and p99 while this explodes to ~180ms.

source: run-bench.sh (Phase 2)

Random read, 4k cold cache (IOPS) #

fio random 4k reads over a 2G file, single thread, single pass over 512M of distinct blocks (no repeats — a time-based loop would blend cold reads with cache hits), after a cold-cache barrier (page cache dropped; ZFS pools export/imported because drop_caches does not touch the ARC). Phase 3.

source: run-bench.sh (Phase 3) · fs_drop_caches overrides

Random read, 4 threads (IOPS) #

Same cold-cache single-pass random read with --numjobs=4 (128M each). A mirror can only serve reads from both copies under concurrency — a single dependent-read stream cannot show replica read-scaling. On CI loop devices all replicas share one physical disk, so the bandwidth win only appears on real hardware.

source: run-bench.sh (Phase 3)

Sequential read (MB/s) #

fio sequential 1M reads over the 2G file, one full pass (no looping — a time-based run re-reads cached blocks and reports RAM speed), cold cache. Phase 3.4.

source: run-bench.sh (Phase 3.4)

Trivial-op p99, idle (ms) #

A trivial operation — one 4k write + fsync every 200ms (like a shell appending history or an editor updating its swap file) — run alone for 10s. p99 of the fsync completion. The baseline for the under-load twin below. Phase 3.5.

source: run-bench.sh (Phase 3.5)

Trivial-op p99 under streaming write (ms) #

The same trivial 4k+fsync op, but measured for 30s while a second fio job floods the filesystem with 1M streaming writes. 'How long until my prompt comes back': CoW commit entanglement makes the tiny fsync wait for the big writer's transaction. Reported only when at least 20 ops completed — below that a percentile is statistically void (fio's log-histogram bins even produce identical bucket-edge values across machines); in the starvation regime the ops-completed metric is the measurement. Phase 3.5.

source: run-bench.sh (Phase 3.5)

Trivial-op worst case under load (ms) #

Worst single trivial-op fsync observed during the 30s streaming-write flood — the longest a 'prompt' hung. Caveat: fio stores latencies in logarithmic histogram bins (~1.5% wide), so extreme values quantize — different configs can report the identical bin edge (e.g. 17,113ms). And when one op takes ~17s, the 30s window holds only 1-2 samples, so p99 = max here. The ops-completed metric below is the binning-immune companion. Phase 3.5.

source: run-bench.sh (Phase 3.5)

Trivial ops completed under load (ops) #

How many trivial 4k+fsync ops completed during the 30s flood, out of the ~145 the 200ms cadence allows — a starvation ratio immune to histogram binning: 140+ means the prompt stayed responsive, single digits mean it was hostage to the streaming writer. Counts the WHOLE cycle (write + fsync + think), so blocking inside the write() call — e.g. ZFS txg backpressure — shows here even though the fsync percentile above never sees it. The complete interactivity picture needs both. Phase 3.5.

source: run-bench.sh (Phase 3.5)

Create 20k-file tree (ms) #

Create a deterministic source tree: 20,000 files of 1-8k (seeded RNG) across 200 directories, then sync. The same tree every run, so trends are comparable. Phase 3.6.

source: run-bench.sh (Phase 3.6)

cp -r 20k-file tree, cold (ms) #

cp -r of the 20k-file tree after a cold-cache barrier, plus sync — the 'copy a kernel tree' test. Phase 3.6.

source: run-bench.sh (Phase 3.6)

rm -rf 20k-file tree (ms) #

rm -rf of the copied 20k-file tree, plus sync. Phase 3.6.

source: run-bench.sh (Phase 3.6)

Create 100k files in one directory (ms) #

Serially create LARGEDIR_FILES deterministic empty files in one directory, then sync (100,000 files in CI; tunable to one million for the original huge-directory workload). This isolates one directory's indexing and insertion behavior. Phase 3.8.

source: run-bench.sh (Phase 3.8)

Enumerate 100k names, cold (ms) #

After a cold-cache barrier, consume every name in the large directory with os.scandir without stat calls or sorting. The count is verified against LARGEDIR_FILES. This isolates directory enumeration from metadata lookup. Phase 3.8.

source: run-bench.sh (Phase 3.8)

Stat 100k files, cold (ms) #

After a second cold-cache barrier, enumerate the large directory and explicitly stat every entry. This is the filesystem-facing core of ls -lU without terminal formatting and output overhead. Phase 3.8.

source: run-bench.sh (Phase 3.8)

Stat 100k files, warm (ms) #

Median of three immediate repetitions of the stat-every-entry scan, with no cache drop between runs. Compare with the cold stat card to expose dentry/inode-cache behavior. Phase 3.8.

source: run-bench.sh (Phase 3.8)

Delete 100k-file directory (ms) #

rm -rf the single directory containing LARGEDIR_FILES empty files, then sync. This measures mass unlink and directory-index cleanup. Phase 3.8.

source: run-bench.sh (Phase 3.8)

ftruncate empty file to 1G (ms) #

ftruncate an empty file to 1GiB + fsync — sparse file creation should be a metadata-only operation. Time here, allocated bytes (st_blocks) in the next card: together they answer 'is sparse actually sparse'. Community request. Phase 3.7.

source: run-bench.sh (Phase 3.7)

Bytes allocated for sparse 1G (B) #

st_blocks x 512 for the freshly-truncated 1GiB empty file — bytes a supposedly hole-only file actually occupies (metadata/indirect blocks show up here on some filesystems). Phase 3.7.

source: run-bench.sh (Phase 3.7)

ftruncate 256M file to 512M (ms) #

A 256MiB fully-written file is ftruncated to 512MiB (+fsync) — growing a file over a new hole; the JSON also records sparse_grow_bytes, the allocation delta (expected ~0). Phase 3.7.

source: run-bench.sh (Phase 3.7)

Snapshot aging curve (MB/s) #

The aging curve: a 2G file is overwritten with 64M of random 4k writes per iteration, a snapshot taken before each; per-iteration bandwidth is the curve. 100 iterations where the technology allows; 10 for default-recordsize ZFS (128K records pin ~the whole file per snapshot), 8 for LVM (dm-snapshot copies origin writes into every snapshot). Snapshot mechanics per backend: btrfs subvolume snapshots, zfs snapshots, bcachefs subvolume snapshots, lvcreate -s. Phase 4.

source: run-bench.sh (Phase 4) · fs_snapshot per backend

Snapshot create (ms) #

Median time of the per-iteration snapshot creates during aging (Phase 4).

source: run-bench.sh (Phase 4) · fs_snapshot per backend

Snapshot delete (all) (ms) #

Time for the delete call that removes ALL aging snapshots — btrfs subvolume delete (returns in ms; the cleaner works afterwards), zfs destroy per snapshot, bcachefs subvolume delete, lvremove. Phase 5.

source: run-bench.sh (Phase 5) · fs_snapshot_delete_all per backend

Space reclaim after delete (s) #

Seconds until free space actually returns to 80% of the pre-aging level after deleting all snapshots (df polled 1/s; VG free space for LVM, whose snapshots live outside the filesystem). The gap between this and the delete call is the background cleaning window; null means the space did not return within 300s. Phase 5.

source: run-bench.sh (Phase 5)

Write during reclaim (MB/s) #

Foreground write bandwidth (same workload as one aging iteration) measured while background reclaim runs — how much the cleaner steals from you. Phase 5.

source: run-bench.sh (Phase 5)

Snapshot create at 500 snaps (ms) #

500 snapshots are created back-to-back with no data churn between them (isolating metadata scaling from retention cost); this is the median create latency of the last 20. LVM participates with 24M snapshots (500 must fit the VG) — no churn means no CoW amplification during creation, and snapscale_count in the JSON records how far dm-snapshot actually got if it stops early. Phase 5.5.

source: run-bench.sh (Phase 5.5)

Remount with 500 snaps (ms) #

Full unmount + mount (zpool export/import for ZFS) with 500 snapshots present. Phase 5.5.

source: run-bench.sh (Phase 5.5) · fs_remount per backend

Delete 500 snapshots (ms) #

Bulk delete of all 500 snapshots: btrfs subvolume delete (one call), zfs ranged destroy snap1%snap500 (one call), bcachefs one delete per snapshot. Phase 5.5.

source: run-bench.sh (Phase 5.5) · fs_snapscale_delete per backend

zstd compression ratio (x) #

2G of 75%-compressible data (fio --buffer_compress_percentage=75 --refill_buffers --fallocate=none; btrfs never compresses into preallocated extents) written into a zstd-forced area. Ratio measured natively: compsize (btrfs), zfs get compressratio, pool Used-delta / replicas (bcachefs). Phase 6.

source: run-bench.sh (Phase 6) · fs_setup_compression / fs_compress_ratio per backend

Compressible-data write (MB/s) #

Write bandwidth of that same compressible stream — compression can make writes FASTER (fewer bytes reach the disk) or cost CPU. Phase 6.

source: run-bench.sh (Phase 6)

Reflink copy of 2G (ms) #

cp --reflink=always of the 2G file — a metadata-only clone. btrfs clones the extent tree in one operation (~ms); bcachefs reflinks per extent (~200ms); OpenZFS 2.2+ uses its Block Reference Table; ext4 cannot. The table also records whether FIEMAP (filefrag -v) actually reports the clone's extents as shared — the deep plumbing check. Phase 6 (divergence).

source: run-bench.sh (Phase 6, divergence)

Overwrite plain file (MB/s) #

Baseline for the unshare penalty: 128M of random 4k overwrites (end_fsync) into a plain, unshared 2G file. Phase 6 (divergence).

source: run-bench.sh (Phase 6, divergence)

Overwrite fresh reflink clone (MB/s) #

The same overwrite workload into a FRESH reflink clone — every write must break extent sharing. Compare against the plain baseline; XFS participates, making this integrated-vs-classic. Phase 6 (divergence).

source: run-bench.sh (Phase 6, divergence)

Overwrite freshly-snapshotted file (MB/s) #

The same overwrite workload into the plain file right after snapshotting it — the snapshot flavor of the unshare penalty. LVM participates via lvcreate -s. Phase 6 (divergence).

source: run-bench.sh (Phase 6, divergence)

Degraded random write (IOPS) #

One device is failed (zpool offline / mdadm --fail / loop-detach + degraded mount for btrfs / bcachefs device offline / dm-error under one LVM PV), then the Phase 2 random-write workload runs on the degraded array. This can legitimately EXCEED the healthy Phase-2 number: a degraded mirror skips writes to the missing member, and the two phases also run at different filesystem ages. Phase 7.

source: run-bench.sh (Phase 7) · fs_degrade per backend · layered_degrade (md/lvm)

Degraded random read (IOPS) #

Cold-cache random 4k reads while the array is degraded. Phase 7.

source: run-bench.sh (Phase 7)

Rebuild after device loss (s) #

Wall time to restore full redundancy onto a spare device: zpool replace + resilver wait, mdadm --add + --wait (full-member resync), btrfs replace -B, bcachefs device add + evacuate (blocks until the lost device holds zero data), lvconvert --repair + sync_percent polling. The CoW filesystems move only their share of the LIVE data (~8G logical in CI by this phase), so on identical loop devices they converge to similar times — md resyncs the full member regardless of contents, which is the spread to look at. md/lvm values are near-identical across ext4/xfs/LUKS variants by construction — the resync runs below the filesystem and neither knows nor cares what sits on top. Phase 7.

source: run-bench.sh (Phase 7) · fs_rebuild per backend · layered_rebuild (md/lvm)

Scrub after corruption (s) #

2G of random garbage is written directly onto one member device (behind the filesystem's back, offset 1G — python injector; uutils dd mis-seeks on dm devices), caches dropped, then a full scrub: btrfs scrub -B, zpool scrub + wait, bcachefs scrub, md/lvm sync-action 'check' (which can only COUNT mismatches — no checksums to know which copy is right). Runs after the rebuild, so it validates that too. The data-intact verdict in the table is the md5 of a 2G test file before vs after. Found/repaired counts are in per-filesystem units (blocks, records, sectors — zfs-8k counts ~16x more records than default zfs for the same damage) and vary with how much allocated data the corruption window happens to overlap. On md/lvm the verdict is probabilistic: reads round-robin between legs, so a lucky run can read everything from the good copy and report intact. md/lvm check durations are filesystem-independent (block-level member scans), so their ext4/xfs/LUKS variants report near-identical times — and lvm scans ~half of md's time because the bench LV covers half the VG. Phase 8.

source: run-bench.sh (Phase 8) · fs_scrub per backend · corrupt_device

Write near full (95% target) (MB/s) #

On a FRESH small array of the same layout (4x2G — filling the main arrays would exhaust the runner's own disk): fill with incompressible data to 95% by df, then 64M of random 4k overwrites into an existing file. btrfs hits its 1G-chunk allocation wall before df crosses the target on devices this small, so its probe runs at the wall — the ACTUAL fullness is recorded as nearfull95_pct in the JSON. Phase 9.

source: run-bench.sh (Phase 9)

Write near full (99% target) (MB/s) #

Same probe after filling to 99% by df (see the 95% caveat). The table's delete-at-100% and writable-after-delete verdicts come from the same phase: fill to hard ENOSPC, rm a file, verify space returns and a new write succeeds. Phase 9.

source: run-bench.sh (Phase 9)