docs: translate README and documentation to English

Also document the snapshot cleanup: older round snapshots are removed
during sync, and `cephmig cleanup` removes the rest after the cutover.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-12-03 19:55:45 +01:00
1 parent 907d400765
commit b7d2a0687e
6 files changed
+655 -628

No files matched your search

+29 -29
View File
@@ -1,53 +1,53 @@
# Lokaler Test mit vielen kleinen Dateien
# Local test with many small files
Gemessen am 05./06.11.2026 mit Ceph 21.2.0. Zwei unabhängige Laborcluster, je ein MON/MGR/MDS und ein dateibasierter 4-GiB-BlueStore-OSD auf demselben Host; vier Kopier-Worker.
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.
Jede Datei enthält 128 Byte deterministische, nicht ausschließlich nullwertige Daten. Eine Hälfte liegt in einem großen Verzeichnis, die andere verteilt auf 50 Verzeichnisse. Zusätzlich: 100 Hardlink-Namen und 100 Symlinks. Änderungen: jeweils 1 % Inhalt, Löschungen, Umbenennungen, neue Dateien, Modus/xattr-Änderungen und xattr-Löschungen. Die 2.000-Dateien-Läufe enthalten außerdem numerische Besitzer und Zugriffs-/Default-ACLs.
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.
## Vergleich mit 2.000 Dateien
## Comparison with 2,000 files
| Phase | Vorher | Nachher | MDS-Anfragen vorher | MDS-Anfragen nachher |
| Phase | Before | After | MDS requests before | MDS requests after |
|---|---:|---:|---:|---:|
| Erstlauf, zwei Stände | 490.2 s | 55.2 s | 115.132 | 87.437 |
| Änderungsabgleich | 52.2 s | 21.2 s | 52.677 | 38.911 |
| Finaler Abgleich | 30.1 s | 24.1 s | 59.350 | 41.074 |
| Initial run, two states | 490.2 s | 55.2 s | 115,132 | 87,437 |
| Catch-up round | 52.2 s | 21.2 s | 52,677 | 38,911 |
| Final round | 30.1 s | 24.1 s | 59,350 | 41,074 |
Im finalen Lauf: 30.8 % weniger MDS-Anfragen, 20.0 % kürzere Laufzeit. In beiden Varianten wurden dabei 0 Nutzdatenbytes geschrieben. Der Änderungsabgleich schrieb in beiden Varianten 12.928 Byte für 101 Dateien.
In the final run: 30.8 % fewer MDS requests, 20.0 % shorter runtime. Both variants wrote 0 payload bytes there. The catch-up round wrote 12,928 bytes for 101 files in both variants.
Gemessener maximaler Prozess-RSS über die Phasen: vorher 93.7 MiB, nachher 76.4 MiB. Ceph-Daemons, CLI-Kinder und Anwendungsclient sind darin nicht enthalten.
Measured maximum process RSS across the phases: 93.7 MiB before, 76.4 MiB after. Ceph daemons, CLI children and the application client are not included.
Die alte Version zeigte beim Erstlauf MDS-Lesesperren-Wartezeiten. Andere Vorläufe lagen dort bei etwa 99 s. Die große Differenz des Erstlaufs ist deshalb kein allgemeines Beschleunigungsversprechen. Der über Nacht unterbrochene Vergleich sowie dessen Wiederanlauf sind nicht als Vergleichsmessung enthalten.
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.
## Abgeschlossener Test mit 10.000 Dateien, vor Optimierung
## Completed test with 10,000 files, before optimization
| Phase | Dauer | Geschriebene Nutzdaten |
| Phase | Duration | Payload written |
|---|---:|---:|
| Erstlauf, zwei Stände | 554.4 s | 1.280.000 Byte |
| Änderungsabgleich | 459.3 s | 64.128 Byte |
| Finaler Abgleich | 84.1 s | 0 Byte |
| Initial run, two states | 554.4 s | 1,280,000 bytes |
| Catch-up round | 459.3 s | 64,128 bytes |
| Final round | 84.1 s | 0 bytes |
Der unabhängige Anwendungsclient verglich live und in vier historischen Ständen insgesamt 50.500 reguläre Dateipfade einschließlich Hardlinks, zusätzlich Symlinks und Metadaten. Alle Prüfungen waren erfolgreich. Diese zusätzliche Testprüfung dauert 600,7 s und gehört nicht zur gemessenen Dauer von `finalize`. Remount und Anwendungsneustart sind ebenfalls nicht enthalten.
The independent application client compared a total of 50,500 regular file paths including hardlinks, live and in four historical states, plus symlinks and metadata. All checks passed. This additional test check takes 600.7 s and is not part of the measured duration of `finalize`. Remount and application restart are not included either.
Der Kopierer erreichte 135.4 MiB Prozess-RSS. Journal und Index belegten am Ende 1.59 MiB. Ceph meldete vor der Bereinigung etwa 271.2 MiB zusätzliche Rohbelegung an der Quelle und 726.6 MiB am Ziel. Diese Werte enthalten auch internen Verwaltungsaufwand, Journal- und BlueFS/RocksDB-Wachstum.
The copier reached 135.4 MiB process RSS. Journal and index took 1.59 MiB at the end. Before the cleanup, Ceph reported about 271.2 MiB of additional raw usage at the source and 726.6 MiB at the target. These values also include internal overhead and journal and BlueFS/RocksDB growth.
## Umgesetzte Änderungen
## Implemented changes
- Vollständiges lokales Pfadinventar des unveränderlichen Quellsnapshots für Aufräumen und Überhangprüfung; erneute Quell-`stat`-Abfragen je Zielpfad entfallen. Unvollständige Inventare verhindern das Aufräumen.
- Keine erneuten Index-Schreibtransaktionen für identische Inode-Zeilen.
- Keine erneuten `setattr`-Aufrufe für bereits gleiche Besitzer, Rechte und mtime; Zielstatistik wird bei der Prüfung wiederverwendet.
- Datenpuffer passend zur Dateigröße bzw. Prüflänge, höchstens 4 MiB je Puffer.
- `AT_STATX_DONT_SYNC` nur für unveränderliche Snapshotpfade; Live-Zielpfade behalten normale Synchronisationssemantik. Cephs eigener [Mirror verwendet denselben Snapshot-Zugriff](https://github.com/ceph/ceph/blob/main/src/tools/cephfs_mirror/PeerReplayer.cc).
- A complete local path inventory of the immutable source snapshot for pruning and the check for surplus paths; repeated source `stat` calls per target path are gone. Incomplete inventories prevent pruning.
- No repeated index write transactions for identical inode rows.
- No repeated `setattr` calls for already identical owner, mode and mtime; the target stat is reused during verification.
- Data buffers sized to the file size or verification length, at most 4 MiB per buffer.
- `AT_STATX_DONT_SYNC` only for immutable snapshot paths; live target paths keep normal synchronization semantics. Ceph's own [mirror uses the same snapshot access](https://github.com/ceph/ceph/blob/main/src/tools/cephfs_mirror/PeerReplayer.cc).
## Grenzen und Reproduktion
## Limits and reproduction
MDS-Anfragen sind keine physisch gemessenen Datenträger-IOPS. Die Läufe sind einzelne Messungen auf einem gemeinsam genutzten Host, ohne zugesicherte Cache-Bedingungen. Es bleiben vollständige Metadatendurchläufe; für 200 Millionen Dateien ist weiterhin ein Änderungsplan nötig, der unveränderte Teilbäume überspringt. Die Ergebnisse sind keine Freigabe für diese Größenordnung.
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.
```sh
make dev-smallfiles-test
# kleinerer Test mit MDS-Zählern:
# smaller test with MDS counters:
FILES=2000 REPORT_DIR=/tmp/cephmig-smallfiles-report make dev-smallfiles-test
```
Die Testprogramme bereinigen bei Erfolg ihre eigenen Subvolumes, Snapshots, Claims und lokalen Zustandsdateien. Ceph kann freigewordenen Platz verzögert zurückmelden. Rohdaten, Binär-Hashes und Details stehen in [smallfiles-local.json](smallfiles-local.json).
On success, the test programs remove their own subvolumes, snapshots, claims and local state files. Ceph may report freed space with a delay. Raw data, binary hashes and details are in [smallfiles-local.json](smallfiles-local.json).
Zusätzlich bestanden die Go-Tests mit Race Detector und `go vet` für den nativen Build sowie der vollständige native Funktionstest mit großen/Sparse-Dateien, Blockdiff, historischen Snapshots, ACLs, Quotas, Hardlinks auf Symlinks/FIFOs, Abbruch und SIGKILL-Wiederaufnahme. Die erfolgreichen Test-Fixtures wurden entfernt.
In addition, the Go tests with the race detector and `go vet` for the native build passed, as did the complete native functional test with large/sparse files, blockdiff, historical snapshots, ACLs, quotas, hardlinks to symlinks/FIFOs, cancellation and SIGKILL resume. The fixtures of the successful run were removed.