docs: bring documentation up to date

Add the 2026-12-03 small-files run, mark the million-file run as older than
parallel verification and the client replacement, note that the single lab
OSD limits the measured durations, and correct the /dev/fuse requirement and
the list of transfer statistics.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-12-04 07:52:17 +01:00
1 parent 864830d044
commit 4b43dd414f
6 files changed
+192 -12

No files matched your search

+4 -2
View File
@@ -35,8 +35,10 @@ tests at the target size and a production cutover are still missing.
Requirements:
- Linux, Go 1.25 or later and GNU Make
- for the copier and the lab: Docker Engine with Docker Compose and
`/dev/fuse` on the Docker host
- for building the copier: Docker Engine with Docker Compose (the build
runs in a container)
- for the lab in addition: `/dev/fuse` on the Docker host, for the
independent application client
- for the lab: up to 12 GiB RAM for the containers and about 8 GiB of disk
space for the two OSDs, plus space for the images
+2 -1
View File
@@ -82,7 +82,8 @@ Target size: up to 200 TB and more than 200 million files, including existing
snapshots, POSIX ACLs, xattrs and quotas. Each node has two 25 Gbit/s links;
effective throughput and a fixed upper bound for the write stop will be
determined later. The local environment verifies functionality but does not
reproduce this amount of data. The native copier uses bounded workers and
reproduce this amount of data, and its single OSD per cluster limits the
measured durations (see [smallfiles-local.md](smallfiles-local.md#limits-and-reproduction)). The native copier uses bounded workers and
buffers, a persistent index on local disk and optional bandwidth limiting.
Every round, the final one included, scans all metadata. Evidence for
memory, index size,
+8 -2
View File
@@ -48,8 +48,9 @@ limits concurrent file copies and verification checks (default 8, at most 64),
`bandwidth_kib` limits the total payload bytes written per second. Both values
may be changed when resuming.
The `transfer` statistics in the journal report the mode, the base
snapshot, visited and copied files, bytes written and read for verification
and the duration of the round in seconds. `bytes_copied` counts payload writes without skipped zero
snapshot, visited and copied files, bytes written and read for verification,
the files transferred with blockdiff, the entries reported by snapdiff and
the duration of the round in seconds. `bytes_copied` counts payload writes without skipped zero
ranges; it does not measure the total network traffic including protocol and
verification.
@@ -376,6 +377,11 @@ checks cover cancellation during the copy, SIGKILL right after snapshot
creation, restart and idempotent completion. Meanwhile, an application keeps
writing to another source subvolume.
Latest lab result, 2026-12-03 with Ceph 21.2.0 and code state `6dcb7b6`:
the Go tests including the race detector for the Ceph build, `make
dev-smoke`, `make dev-native-test` and `make dev-smallfiles-test` passed
(results in [smallfiles-local.md](smallfiles-local.md)).
Lab result of 2026-11-05 with Ceph 21.2.0: native integration test and the
regression test of the since removed rsync backend passed; Go tests
including the race detector and `go vet` for the Ceph build passed. The
+7 -3
View File
@@ -22,8 +22,12 @@ the Go process across the three phases: 646.2 MiB. The raw measurements are
in [million-local.json](million-local.json).
The full metadata passes remain expensive: even the finalization without any
payload changes caused about 19.3 million MDS requests. The verification
path is currently serial. During the run, Ceph also reported slow BlueStore
payload changes caused about 19.3 million MDS requests. This run predates
two later changes: verification now checks entries in parallel, and the
writing client is replaced before verification, which removed long waits for
recalled caps (see [migration.md](migration.md)). The durations above are
therefore not those of the current code; a new run is pending. The single OSD per cluster of the local setup limits these tests, not the copier. During an aborted 100,000-file run in December 2026, writing one small file took about 50 ms, mostly OSD write latency (`op_w` about 32 ms) plus MDS journal latency (about 20 ms). Each cluster has only one OSD, both share one host disk (encrypted with LUKS), and they run without replication. More workers therefore hardly shorten the runs. The durations measured here say little about a production cluster with many OSDs.
During the run, Ceph also reported slow BlueStore
operations and a high BlueFS share on the small test OSDs. The exact shares
of CPU and disk latency were not profiled separately. The production
2×25 Gbit link was not tested. The run proves data correctness in the lab;
@@ -81,7 +85,7 @@ to `.dev/million/main/`. Only `result: PASS` confirms the complete check.
Generation and completed verification views have checkpoints; an interrupted
Go round uses the existing migration journal. An interrupted phase does not
count as a usable runtime measurement. Test generation runs with eight
threads, the copier with eight workers, the independent check with 16
threads, the copier with eight workers (`WORKERS=` changes that), the independent check with 16
threads. Queues and data buffers are bounded; index and inode mapping live on
disk.
+151
View File
@@ -400,6 +400,157 @@
"source_raw_used_delta_bytes": 18640896,
"target_raw_used_delta_bytes": 138170368,
"local_state_kib": 464
},
"current_10000": {
"date": "2026-12-03",
"code": "6dcb7b6",
"settings": {
"files": 10000,
"bytes_per_file": 128,
"workers": 4,
"binary": "/usr/local/bin/cephmig-native"
},
"phases": {
"initial": {
"seconds": 197.693,
"peak_rss_kib": 170984,
"bytes_written": 1280000,
"files_copied": 10000,
"rounds": [
{
"name": "baseline",
"mode": "full",
"files_visited": 10254,
"files_copied": 10000,
"bytes_copied": 1280000,
"bytes_verified": 1280000,
"blockdiff_files": 0,
"snapdiff_entries": 0,
"seconds": 165.309
},
{
"name": "cephmig-f8b6df4b9f8d-8c82b1411e76",
"mode": "snapdiff",
"base_snapshot": "baseline",
"files_visited": 10254,
"files_copied": 0,
"bytes_copied": 0,
"bytes_verified": 0,
"blockdiff_files": 0,
"snapdiff_entries": 53,
"seconds": 20.294
}
],
"mds_requests_delta": {
"source": {
"requests": 191563,
"getattr": 86457,
"lookup": 258,
"lookupsnap": 84612,
"setattr": 0,
"readdir": 120
},
"target": {
"requests": 225826,
"getattr": 44513,
"lookup": 86949,
"lookupsnap": 41964,
"setattr": 10355,
"readdir": 399
}
}
},
"catchup": {
"seconds": 36.224,
"peak_rss_kib": 122112,
"bytes_written": 64128,
"files_copied": 501,
"rounds": [
{
"name": "cephmig-f8b6df4b9f8d-2c4fa190089d",
"mode": "snapdiff",
"base_snapshot": "cephmig-f8b6df4b9f8d-8c82b1411e76",
"files_visited": 10254,
"files_copied": 501,
"bytes_copied": 64128,
"bytes_verified": 64128,
"blockdiff_files": 0,
"snapdiff_entries": 453,
"seconds": 21.874
}
],
"mds_requests_delta": {
"source": {
"requests": 69902,
"getattr": 34743,
"lookup": 310,
"lookupsnap": 33702,
"setattr": 0,
"readdir": 58
},
"target": {
"requests": 95364,
"getattr": 22347,
"lookup": 48225,
"lookupsnap": 20982,
"setattr": 652,
"readdir": 181
}
}
},
"final": {
"seconds": 39.141,
"peak_rss_kib": 130336,
"bytes_written": 0,
"files_copied": 0,
"rounds": [
{
"name": "cephmig-f8b6df4b9f8d-b3c6cb4c6202",
"mode": "snapdiff",
"base_snapshot": "cephmig-f8b6df4b9f8d-2c4fa190089d",
"files_visited": 10254,
"files_copied": 0,
"bytes_copied": 0,
"bytes_verified": 0,
"blockdiff_files": 0,
"snapdiff_entries": 53,
"seconds": 19.463
}
],
"mds_requests_delta": {
"source": {
"requests": 87616,
"getattr": 44333,
"lookup": 120,
"lookupsnap": 43013,
"setattr": 0,
"readdir": 58
},
"target": {
"requests": 96415,
"getattr": 22605,
"lookup": 51947,
"lookupsnap": 20982,
"setattr": 100,
"readdir": 230
}
}
}
},
"verification": {
"live_files_checked": 10100,
"snapshots": [
{
"name": "baseline",
"files_checked": 10100
},
{
"name": "cephmig-f8b6df4b9f8d-b3c6cb4c6202",
"files_checked": 10100
}
],
"seconds": 422.157
}
}
},
"binaries_sha256": "af66d7499e10961c0bd0f4a7e07b81b706b5061abf0c08bda67fb9b03835cba9 /state/benchmark-binaries/cephmig-before\n871f69016ce2f692397bf578a2a207d02580df3c072c307fb82d4b3df5615ae0 /usr/local/bin/cephmig-native\n",
+20 -4
View File
@@ -1,10 +1,24 @@
# Local test with many small files
Measured on 2026-11-05/06 with Ceph 21.2.0. Two independent lab clusters, each with one MON/MGR/MDS and one file-backed 4 GiB BlueStore OSD on the same host; four copy workers.
Measured with Ceph 21.2.0, most recently on 2026-12-03. Two independent lab clusters, each with one MON/MGR/MDS and one file-backed 4 GiB BlueStore OSD on the same host; four copy workers.
Each file contains 128 bytes of deterministic data that is not all zeros. Half of the files are in one large directory, the other half spread over 50 directories. In addition: 100 hardlink names and 100 symlinks. Changes: 1 % each of contents, deletions, renames, new files, mode/xattr changes and xattr removals. The 2,000-file runs also contain numeric owners and access/default ACLs.
## Comparison with 2,000 files
## Current run with 10,000 files (2026-12-03)
Code state `6dcb7b6`: the writing client is replaced before verification, verification runs in parallel, and skipping unchanged subtrees is removed.
| Phase | Duration | Payload written | MDS requests, both clusters |
|---|---:|---:|---:|
| Initial run, two states | 197.7 s | 1,280,000 bytes | 417,389 |
| Catch-up round | 36.2 s | 64,128 bytes | 165,266 |
| Final round | 39.1 s | 0 bytes | 184,031 |
The catch-up round copied 501 files. Maximum process RSS across the phases: 167.0 MiB. The independent application client compared the live target, the source snapshot `baseline` and the remaining round snapshot, each with 10,100 regular file paths including hardlinks, plus symlinks and metadata; all checks passed in 422.2 s. Older round snapshots were already removed by `sync`.
Compared with the run before optimization below, the catch-up round dropped from 459.3 s to 36.2 s and the final round from 84.1 s to 39.1 s. Between the two runs lie the optimizations listed under [implemented changes](#implemented-changes), the client replacement before verification and parallel verification; their individual shares were not measured.
## Comparison with 2,000 files (2026-11-05/06)
| Phase | Before | After | MDS requests before | MDS requests after |
|---|---:|---:|---:|---:|
@@ -18,7 +32,7 @@ Measured maximum process RSS across the phases: 93.7 MiB before, 76.4 MiB after.
The old version showed MDS read lock waits in the initial run. Other earlier runs took about 99 s there. The large difference in the initial run is therefore no general promise of a speedup. The comparison interrupted overnight and its restart are not included as a comparison measurement.
## Completed test with 10,000 files, before optimization
## Completed test with 10,000 files, before optimization (2026-11-05/06)
| Phase | Duration | Payload written |
|---|---:|---:|
@@ -40,7 +54,9 @@ The copier reached 135.4 MiB process RSS. Journal and index took 1.59 MiB at the
## Limits and reproduction
MDS requests are not physically measured disk IOPS. The runs are single measurements on a shared host, without guaranteed cache conditions. Full metadata passes remain; 200 million files still need change planning that skips unchanged subtrees. The results are no release for that scale.
In the lab, the single OSD per cluster limits the tests, not the copier. During an aborted 100,000-file run in December 2026, writing one small file took about 50 ms, mostly OSD write latency (`op_w` about 32 ms) plus MDS journal latency (about 20 ms). Each cluster has only one OSD, both share one host disk (encrypted with LUKS), and they run without replication. More workers therefore hardly shorten the runs. The durations measured here say little about a production cluster with many OSDs.
MDS requests are not physically measured disk IOPS. The runs are single measurements on a shared host, without guaranteed cache conditions. Full metadata passes remain; 200 million files still need change planning that skips unchanged subtrees. A first attempt based on inode version and `ceph.dir.rctime` missed changes and was removed (see [metadata scan](migration.md#metadata-scan)). The results are no release for that scale.
```sh
make dev-smallfiles-test