News › performance

mdadm batches raid6check I/O, with a reported 3x gain on one array

By The Linux Camp News, November 6, 2026

A November 2 mdadm commit reads RAID6 checking data in batches rather than one stripe at a time. The optimization trades memory for lower I/O overhead; its reported speedup is specific to one six-disk test.

An mdadm commit recorded on November 2, 2026 adds batched I/O to raid6check, the utility that uses RAID6's double parity to check and repair errors. The scope is this maintenance tool, not a demonstrated improvement to ordinary application I/O on Linux RAID6 arrays. 2 1

Previously, raid6check processed one stripe per disk at a time. It now reads multiple stripes together while still checking each individually. The buffer keeps each device's chunks contiguous. This spreads the cost of locking, seeking and read calls across more data rather than repeating that overhead for every stripe, addressing what the author describes as a checker that was not I/O-bound. 3 2 1

The operational tradeoff is potentially shorter checks with a larger memory footprint. The code sets a 512 MiB batch-data target and calculates the batch size from the requested checking length, disk count and chunk size. That target describes data read per iteration, not a total process-memory limit. 2 3 1

David Guillen Fandos reports a threefold improvement on six 4 TB spinning disks with ample memory and an unspecified modern kernel. His expectation of similar gains elsewhere is explicitly an assumption. The report supplies no absolute runtimes or benchmark procedure, so it cannot establish a maintenance-window reduction for another array, particularly an SSD or memory-constrained setup. 2

The optimization does not expand the tool to degraded-array recovery. The displayed code retains rejection of arrays with failed disks. Repairing detected errors on an accepted array remains distinct from checking an array already marked degraded. 2

For deployment planning, check whether the mdadm package source includes commit f68d95caa3b077c2b14f123f56f6deca79d27396 before budgeting for faster checks. The evidence retrieved November 6 establishes repository availability, but does not identify the first numbered release or distribution package containing the change. 2 1

Sources

Courses