perf(delivery): stream verified restore file pages

This commit is contained in:
2026-10-28 21:35:41 +08:00
parent 60a0dad94f
commit a436c659e9
3 changed files with 51 additions and 0 deletions
+5
View File
@@ -515,6 +515,11 @@ The native restore helper keeps two joined threads and partitions each fixed bat
into contiguous groups that minimize the heavier byte count. Ties prefer balanced
file counts. Copy order, synchronization, complete byte readback and final
nine-field witnesses are preserved; no extra worker or batch capacity is added.
After synchronization and complete byte verification, the native helper asks the
kernel to release clean cached pages for that restored file. Descriptor and path
witnesses are still checked afterwards. This per-file streaming hint avoids
retaining historical file contents in the fixed restore memory budget; it does
not change file bytes, durability, limits or the live filesystem checks.
Old configuration and maintenance receipts go into inactive
`recovery/ID/history/`. The new boot's Sandbox preparation owns cgroup recreation.
Unknown/nonempty targets and differing existing files are refused; partial restores