Files
seaweedfs/seaweed-block/docs/design/map-checkpoint-resource-grid.tsv
T

2.6 KiB

1operationresourcetimespacerequests/entriesbound; enforcerwhen exhaustedattribution
2checkpointCPUO(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 deltaschanged entry leaves and reference paths onlycoverage shape admission; immutable selected-root comparisonrefuse invalid shape or stale priorMapCheckpointPhases: captureNs, prepareNs, comparedEntryPages
3checkpointmemorycapture O(1); allocation O(D H)flat entry vector + COW leaf backing entries; retained candidates pin changed versionsno whole candidate entry/ref vector copy1 GiB geometry admission charges both entry representations; retained changed versions remain pinnedshape refused before allocation; no weakening of pinsTestCoverageCheckpointReusesAnUnchangedReferenceTree
4checkpointlocal I/OO(D H) 4 KiB writes plus fsync latencysidecar truncates free tail beyond 4x live bytesleaf/index/root writes; WAL-before-page and extent syncowned sidecar; both slot and candidate pinsI/O error latches; uncertain candidate stays pinnedMapCheckpointPhases: walSyncNs, extentSyncNs, writtenPages, publishNs
5checkpointnetworknone for local mapnonezero filer/master callslocal map onlynot applicablemap_ref_prepare.go
6checkpointslots/locksstore capture O(1); sidecar serialization covers persistenceexisting locks onlystore -> descriptor -> live bookkeeping; no I/O under liveMuexisting sole publisher and proof domainstale candidate refuses before slot I/Ochunk_lsn_map_v3.go; map_extent_pins.go
7detach/stopCPUstore tail work depends on dirty entries; empty tail independent of Scurrent eager map remains resident until process teardownno whole-map copy/validation on empty-tail Closenative 1 TiB empty-tail store Close <10 s controlreport Close error; preserve uncertain outcomesStoreStopPhases; holder and presence serialization excluded
8detach/stoplocal I/Ofinal dirty-tail extent/checkpoint work plus fd closesno new whole-map image for an empty tailfinal flusher, map close, file closenormal final-flush owner; never shorten the tailClose returns joined errorsStoreStopPhases: flusherStopNs, mapCloseNs, fileCloseNs
9detach/stopfds/goroutinesjoins existing flusher and committerno new workerssame existing files and worker ownershipClose completion shared by repeat callersfirst Close receipt/result retainedStoreStopPhases: committerStopNs
10createlocal I/OO(S) onceinitial format1 all-Unknown mapone initial map and descriptor publicationexisting valid immutable empty rootmissing or corrupt root refuses opencreateWALStoreV3Configured; not the later checkpoint path