[HiCache] write_back: reclaim duplicated host copy first under host pressure (#33777)

This commit is contained in:
Zhiqiang Xie
2026-08-07 15:59:59 -07:00
committed by GitHub
parent eb3cc879e0
commit 3dc91366ac
4 changed files with 209 additions and 11 deletions
@@ -2786,6 +2786,8 @@ class UnifiedRadixCacheSuite:
cd = ancestor.component_data[ct]
if cd.value is not None and cd.host_value is None:
cd.host_value = cd.value.clone()
# A real backup registers duplicate tracking at its ack.
cache.tree_core._update_duplicate_tracking(ancestor)
def _simulate_backup_tree(self, cache):
"""Backup all non-root nodes (simulates write-through)."""