Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Erasure Coding Overhead

Direct answer

Erasure coding overhead is the extra capacity used by parity fragments: a k+m scheme uses (k+m)/k of the data size, so 4+2 costs 50 % extra and 8+3 about 37.5 %, compared with 200 % for three copies.

When to use this

Use this when calculating erasure coding overhead.

First 30 seconds

1. EC overhead = (k+m)/k (e.g. 4+2 = 1.5×).

2. Much less than replication.

3. Small objects have extra overhead.

4. Needs k+m failure domains.

5. Recovery cost higher.

Operational verification

data × (k+m)/k → raw

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • EC profiles with more chunks (k+m) than failure domains.
  • EC pools for small-block random writes (VM disks) without considering latency.
  • Changing EC profiles on existing pools (not possible — create a new pool and migrate).
  • Forgetting extra CPU and network load during recovery.
Platform / version applicability
Storage performance and observability
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformStorage performance and observability
Scope / prerequisiteUse this when calculating erasure coding overhead.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Erasure coding stores (k+m)/k times the data.
  • 4+2 costs 50 % extra; 8+3 about 37.5 %.
  • Each fragment must be in a separate failure domain.
Key checks
  • ceph osd erasure-code-profile get <p> — k and m
  • ceph df — EC pool usage
  • calculation (k+m)/k — overhead factor
ReferenceHow it works1 section · depth on demand

Calculating EC overhead

ProfileEfficiencyToleratesMinimum hosts (host failure domain)
2+167 %13 (4 for recovery)
4+267 %26 (7 recommended)
8+373 %311 (12 recommended)
vSAN RAID-5 (3+1)75 %14
vSAN RAID-6 (4+2)67 %26

EC saves capacity but costs CPU, network and latency, especially for small writes; use it for large-object and backup workloads.

ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

Erasure coding stores k data and m coding chunks

The Ceph erasure-code documentation defines k as the number of data chunks and m as the number of coding chunks. m is how many OSDs (or failure domains) can be lost without data loss. Space amplification is (k + m) / k.

ProfileRaw per usable byteSurvivesFailure domains needed
2+11.513
4+21.526
8+31.375311
Replication size 33.023
# ceph osd erasure-code-profile set ec42 k=4 m=2 crush-failure-domain=host
# ceph osd pool create data-ec erasure ec42
# ceph osd pool set data-ec allow_ec_overwrites true
# ceph osd erasure-code-profile get ec42

Documented constraints

PointDetail
Profile is fixedIt cannot be changed after the pool is created
Failure domaincrush-failure-domain keeps two chunks out of the same domain
RBD and CephFSNeed allow_ec_overwrites (BlueStore), with metadata in a replicated pool
min_sizeRecommended at k+1 or higher

The cost behind the saving

  • You need at least k+m failure domains. 4+2 with host failure domain needs 6 hosts, and more if the cluster should heal after losing one.
  • Small writes and recovery touch many OSDs, so latency is higher than with replication.
  • Erasure coding is common for object storage and archives, and less common for latency-sensitive VM disks.

Illustrative example (not a system capture).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Worked example

Erasure coding overhead = (k + m) / k. 8+3 gives 1.375×, so 100 TB of data needs ~138 TB raw instead of 300 TB with three replicas.

Costs that do not show in the ratio:

CostEffect
CPUEncode on write, decode on degraded read
Small objects/writesPadding and read-modify-write; small-file workloads waste space
Network on rebuildReading k chunks to rebuild one
Minimum nodesk + m failure domains (11 for 8+3)

EC fits large objects and sequential data (backup, media, archives); replicas fit small random I/O (VMs, databases, metadata).

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docStorage performance and observability current

Authoritative/upstream documentation reviewed for bounded claims in Storage Capacity → Erasure Coding Overhead. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/configuring_and_managing_logical_volumes/assembly_thinly-provisioned-logical-volumes_configuring-and-managing-logical-volumes · confidence 94%
Confirmation

Confirm action

Continue?