|
|
@@ -1026,11 +1026,28 @@ backups or copies taken before the upgrade.
|
|
|
needed rewriting took about 6.5 minutes; 24,733 rows / a 339 MB env / 192 MB
|
|
|
of history that needed no rewriting took 190 s, of which 167 s was compacting
|
|
|
that one env (measured by a consumer, under a 900 MB memory cap).
|
|
|
-- **Memory:** plan with the ANONYMOUS memory (364 MiB in the second run). RSS /
|
|
|
- VmHWM also count the file-backed LMDB map (1.1 GB in that run, above its cap)
|
|
|
- which the kernel reclaims under pressure rather than killing anything, so an
|
|
|
- RSS above 1 GB on a 2 GB host is not by itself a reason to stop it. Since
|
|
|
- 2.17.1 history is rewritten one record at a time.
|
|
|
+- **Memory:** plan with the ANONYMOUS memory. RSS / VmHWM also count the
|
|
|
+ file-backed LMDB map, which the kernel reclaims under pressure rather than
|
|
|
+ killing anything, so an RSS above 1 GB on a 2 GB host is not by itself a
|
|
|
+ reason to stop it. Measured per phase (cgroup `memory.stat`, 22.5k documents,
|
|
|
+ 2.17.2):
|
|
|
+
|
|
|
+ | phase | anonymous max | page cache max |
|
|
|
+ |---|---|---|
|
|
|
+ | boot + row pass | 456 MB (load spike, then ~375) | 218 MB |
|
|
|
+ | **seal snapshot** (5 s) | **774 MB** | 259 MB |
|
|
|
+ | compaction (3 min) | 373 MB, flat | 263 MB |
|
|
|
+
|
|
|
+ The peak is the seal's snapshot: the in-memory store serialized, compressed
|
|
|
+ and read back to verify, roughly the working set again on top of it. It is
|
|
|
+ the same code path as the server's routine snapshots, so a host that
|
|
|
+ survives those survives the seal; the peak RSS at a routine "Snapshot
|
|
|
+ created" is the number to check. Compaction adds no anonymous memory.
|
|
|
+ Progress is NOT persisted per step: a boot killed before the end repeats the
|
|
|
+ row pass (fast, skips what is done), the snapshot and every compaction, so a
|
|
|
+ host that cannot fit the snapshot fails at the same point on every boot -
|
|
|
+ restore the pre-upgrade backup rather than retrying. Since 2.17.1 history is
|
|
|
+ rewritten one record at a time.
|
|
|
- **What it cannot reach:** copies made BEFORE that boot - backups, pre-upgrade
|
|
|
copies, replicas, released disk blocks. Rotate any credential that was stored
|
|
|
in plaintext.
|