# Floating data and parity: account for both reservations

Floating parity trades placement freedom and metadata for shorter disk-update
delays. The parity-only and data-plus-parity variants have different space and
layout costs. Menon, Roche and Kasson introduced a family of these designs;
their publication record is [IBM Research's 1993 entry](https://research.ibm.com/publications/floating-parity-and-data-disk-arrays)
(DOI: 10.1006/jpdc.1993.1011). That record's best-variant result must not be
treated as a universal capacity rule.

[Chen et al., section 4.1.2](https://web.eecs.umich.edu/~pmchen/papers/chen94_1.pdf)
explains the near-rotational free-block choice and controller constraints.
Moving data too can fragment a logically sequential run. This historical
mechanism is not a host-side tuning recommendation.

## One specified layout

[Stodolsky, Gibson and Holland, section 4, footnote 4](https://pdl.cmu.edu/PDL-FTP/ParityLogging/ISCA93.pdf)
gives the model used here: N equal disks, T equal-capacity tracks per cylinder,
one track-equivalent of free space per cylinder, then one disk-equivalent of
parity over the remaining capacity. N includes the parity-equivalent capacity.
The maps require protection. This is not the formula for every floating-parity
variant.

## Exact accounting

Let raw capacity be 1. The disjoint fractions are:

- Free space: 1/T.
- Parity: (1 - 1/T)/N.
- User data: (1 - 1/T)(1 - 1/N).

Thus overhead/raw = 1/N + 1/T - 1/(NT). Adding 1/N and 1/T directly
counts 1/(NT) twice. Overhead/user-data uses a different denominator:
(1 - usable)/usable.

For an illustrative N=5, T=16 layout, imagine 80 equal track-sized slots:

| Allocation | Slots | Fraction of raw |
| --- | ---: | ---: |
| Free | 5 | 1/16 = 6.25% |
| Parity | 15 | 3/16 = 18.75% |
| User data | 60 | 3/4 = 75% |
| Total | 80 | 1 = 100% |

Overhead is 20/80 = 25% of raw, or 20/60 = 33 1/3% of user capacity.
The naive sum is 26.25% of raw, overstating this model by 1.25 percentage
points. These slots are a counting construction, not a proposed physical
placement. Free slots may move as blocks are relocated.

A second arithmetic check uses N=22, T=14: usable/raw = 39/44 and
overhead/raw = 5/44. No measured throughput is inferred from either example.

## Comparing against ordinary RAID 5

For the same N and raw capacity, ordinary single-parity RAID has usable
fraction B = (N - 1)/N. The specified floating-data-and-parity layout has
F = B(T - 1)/T. Its absolute usable-capacity loss is B/T of raw, but its
loss relative to the baseline's usable capacity is exactly 1/T.

Holding user capacity fixed asks a different question. To store U units,
the baseline needs U/B raw units and the floating layout needs U/F.
Their ratio is B/F = T/(T - 1), so the extra raw capacity relative to the
baseline is 1/(T - 1), not 1/T. The cancellation of N applies only at fixed
width and fixed T.

For N=5, T=16:

| Question | Exact answer | Interpretation |
| --- | ---: | --- |
| Usable fraction, ordinary RAID 5 | 4/5 | 80% of raw |
| Usable fraction, floating data and parity | 3/4 | 75% of raw |
| Absolute loss at equal raw capacity | 1/20 | 5 percentage points |
| Loss relative to RAID 5 usable capacity | 1/16 | 6.25% |
| Extra raw capacity at equal user capacity | 1/15 | 6 2/3% |

For example, 800 units of user data require 1000 raw units in the baseline,
or 3200/3 raw units in the floating layout. For N=22, T=14, the corresponding
relative loss and extra-raw fractions are 1/14 and 1/13.

These are continuous capacity comparisons, not a count of additional physical
disks or a purchase recommendation. Adding a disk changes N; replacing disks
can change geometry and T. Neither the reserved free fraction nor the total
overhead fraction is a direct estimate of procurement cost.

## What must survive a failure?

The location map is part of recovery state. In the expanded
[CMU report, section 4, page 15, footnote 7](https://www.pdl.cmu.edu/PDL-FTP/ParityLogging/TR93-200.pdf),
the authors distinguish nonvolatile storage for a power-failure-only model
from redundant storage for other failure models. A persistent map is therefore
not, by itself, evidence of controller-failure tolerance. This worksheet counts
disk capacity; it does not certify map recovery or update ordering.

## Reproduce

Run with Python 3.10 or newer, without third-party packages:

```sh
python3 model.py
python3 -m unittest -v test_model.py
python3 -O -m unittest -v test_model.py
```

[model.py](model.py) emits the exact-rational [results.json](results.json).
The tests count disjoint slots independently for 713 combinations
(N=2..24, T=2..32), verify denominator identities, and reject noninteger or
degenerate inputs. There is no fitted parameter or random seed.

The worksheet excludes filesystem metadata, spares, unequal tracks, variable
geometry, recovery ordering and queueing. It is an accounting check, not a
device benchmark or a reimplementation of the paper's simulator.

[Glossary](../../terms/floating-parity/) |
[RAID write accounting](https://hesela.com/analyses/raid-write-penalty-io-not-speed/)

Prepared 2026-11-26. The source papers remain with their publishers/authors;
no paper or original figure is redistributed here.
