ceph-performancelisted
Install: claude install-skill air-gapped/skills
# ceph-performance
Defaults below hold at Ceph v19.2.7 and v20.2.4
(`src/common/options/*.yaml.in`) and Rook v1.21.1; sources in
`references/sources.md`.
Measure before and after every change; `ceph config show osd.N <opt>` is
the value actually in force.
## mClock: the NVMe capacity trap
mClock sizes every reservation from each OSD's measured IOPS capacity. At
OSD start an `osd bench` sets `osd_mclock_max_capacity_iops_{hdd,ssd}`.
If the result exceeds the sanity threshold — **500 (HDD), 80 000 (SSD)** —
it is discarded and the OSD falls back to the default capacity
(**21 500** SSD) with a cluster-log warning. Modern NVMe routinely exceeds
80 000, so mClock under-drives it.
1. `ceph config show osd.N osd_mclock_max_capacity_iops_ssd` on every OSD;
`21500` means the fallback hit.
2. Measure the device with fio at 4 KiB random write, then
`ceph config set osd.N osd_mclock_max_capacity_iops_ssd <iops>`.
3. Re-check after replacing a device — the value is per OSD.
Profiles: `balanced` is the default from 17.2.7 and in Reef, Squid and
Tentacle (17.2.0–17.2.6 shipped `high_client_ops`). Use `high_client_ops`
for latency-sensitive steady state, `high_recovery_ops` only for a
maintenance window.
## Memory
- Under Rook, Ceph sets `osd_memory_target` = min(`POD_MEMORY_REQUEST`,
limit × `osd_memory_target_cgroup_limit_ratio` (0.8)); with only a
limit, target = limit × 0.8. Set requests and limits explicitly on
`spec.resources.osd` with limit ≥ request ÷ 0.8 (1.25×) —