mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 02:57:37 +01:00
2.6 KiB
2.6 KiB
| 1 | operation | resource | time | space | requests/entries | bound; enforcer | when exhausted | attribution |
|---|---|---|---|---|---|---|---|---|
| 2 | checkpoint | CPU | O(D H + D log P + R) | two resident entry representations: flat + COW leaves (about 6 MiB extra/TiB at 4 MiB chunks); O(D H) retained candidate deltas | changed entry leaves and reference paths only | coverage shape admission; immutable selected-root comparison | refuse invalid shape or stale prior | MapCheckpointPhases: captureNs, prepareNs, comparedEntryPages |
| 3 | checkpoint | memory | capture O(1); allocation O(D H) | flat entry vector + COW leaf backing entries; retained candidates pin changed versions | no whole candidate entry/ref vector copy | 1 GiB geometry admission charges both entry representations; retained changed versions remain pinned | shape refused before allocation; no weakening of pins | TestCoverageCheckpointReusesAnUnchangedReferenceTree |
| 4 | checkpoint | local I/O | O(D H) 4 KiB writes plus fsync latency | sidecar truncates free tail beyond 4x live bytes | leaf/index/root writes; WAL-before-page and extent sync | owned sidecar; both slot and candidate pins | I/O error latches; uncertain candidate stays pinned | MapCheckpointPhases: walSyncNs, extentSyncNs, writtenPages, publishNs |
| 5 | checkpoint | network | none for local map | none | zero filer/master calls | local map only | not applicable | map_ref_prepare.go |
| 6 | checkpoint | slots/locks | store capture O(1); sidecar serialization covers persistence | existing locks only | store -> descriptor -> live bookkeeping; no I/O under liveMu | existing sole publisher and proof domain | stale candidate refuses before slot I/O | chunk_lsn_map_v3.go; map_extent_pins.go |
| 7 | detach/stop | CPU | store tail work depends on dirty entries; empty tail independent of S | current eager map remains resident until process teardown | no whole-map copy/validation on empty-tail Close | native 1 TiB empty-tail store Close <10 s control | report Close error; preserve uncertain outcomes | StoreStopPhases; holder and presence serialization excluded |
| 8 | detach/stop | local I/O | final dirty-tail extent/checkpoint work plus fd closes | no new whole-map image for an empty tail | final flusher, map close, file close | normal final-flush owner; never shorten the tail | Close returns joined errors | StoreStopPhases: flusherStopNs, mapCloseNs, fileCloseNs |
| 9 | detach/stop | fds/goroutines | joins existing flusher and committer | no new workers | same existing files and worker ownership | Close completion shared by repeat callers | first Close receipt/result retained | StoreStopPhases: committerStopNs |
| 10 | create | local I/O | O(S) once | initial format1 all-Unknown map | one initial map and descriptor publication | existing valid immutable empty root | missing or corrupt root refuses open | createWALStoreV3Configured; not the later checkpoint path |