Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
93ba338
add fine-grain L1-L2 data xfer statistics
hxieustc May 5, 2026
47cacf0
add fine-grain L1-L2 data xfer metrics to /metrics
hxieustc May 5, 2026
6836c89
add fine-grain L1-L2 data xfer statistics for hi_mamba_radix_cache
hxieustc May 5, 2026
8daf369
add fine-grain L1-L2 data xfer statistics for hybrid_cache
hxieustc May 5, 2026
da90db6
add fine-grain L1-L2 data xfer statistics for unified_radix_cache
hxieustc May 5, 2026
dc85240
show fine-grain transfer statistics in debug mode
hxieustc Jun 1, 2026
bb37290
add fine-grain xfer statistics to disagg
hxieustc Jun 3, 2026
0fa635c
Fix HiCacheAck test consumers
hxieustc Jun 3, 2026
47563ca
Skip HiCache transfer timing when disabled
hxieustc Jun 3, 2026
2bbd28e
Record blocking HiCache write-back transfers
hxieustc Jun 3, 2026
70df64b
Remove redundant HiCache transfer counters
hxieustc Jun 3, 2026
aa68fd5
Fix HiCache transfer metric registration
hxieustc Jun 4, 2026
9f25427
Tighten HiCache transfer metric accounting
hxieustc Jun 4, 2026
c14fcb7
Fix HiCache write-through ack state handling
hxieustc Jun 4, 2026
2848801
Keep HiCache transfer totals with metrics
hxieustc Jun 4, 2026
de5c539
fix(hicache): remove duplicate write_through_pending_id init in Unifi…
hxieustc Jun 4, 2026
7c93e07
fix(hicache/metrics): wire enable_metrics to HybridCacheController an…
hxieustc Jun 4, 2026
20f97cb
fix(hicache/metrics): fix byte estimation for hybrid sidecar pool tra…
hxieustc Jun 5, 2026
f50d1ca
fix(hicache/mamba): add enable_metrics and extra_metric_labels params…
hxieustc Jun 5, 2026
50c8c71
fix(hicache/dsa): propagate enable_metrics and extra_metric_labels to…
hxieustc Jun 5, 2026
6afe77a
fix(hicache/metrics): pass resolved_pool_transfers to _make_hicache_a…
hxieustc Jun 5, 2026
ee6b918
fix(hicache/mamba): add enable_metrics and extra_metric_labels params…
hxieustc Jun 5, 2026
ce12ca8
fix(hicache/metrics): make L1/L2 transfer metrics emit real data on CUDA
ishandhanani Jun 8, 2026
cc7a395
test(hicache/metrics): add CPU unit tests for L1/L2 transfer metrics
hxieustc Jun 8, 2026
98fd202
test(hicache/metrics): add Prometheus exposition tests
hxieustc Jun 8, 2026
f47933a
test(hicache/metrics): fix registration and minor test adjustments
hxieustc Jun 8, 2026
1823d82
test(hicache/metrics): trim to 9 essential tests
hxieustc Jun 8, 2026
169c7ad
fix: apply black formatting fixes
hxieustc Jun 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def __init__(
storage_backend=server_args.hicache_storage_backend,
model_name=server_args.served_model_name,
storage_backend_extra_config=hicache_storage_backend_extra_config,
enable_metrics=server_args.enable_metrics,
extra_metric_labels=server_args.extra_metric_labels,
)

self.ongoing_offload = {}
Expand Down Expand Up @@ -219,17 +221,15 @@ def check_offload_progress(self):
def _check_offload_progress(self, finish_count):
"""Check the progress of offload from device to host."""
while finish_count > 0:
_, finish_event, ack_list = self.cache_controller.ack_write_queue.pop(0)
finish_event.synchronize()
for ack_id in ack_list:
(
req,
host_indices,
incremental_tokens,
start_time,
start,
end,
) = self.ongoing_offload.pop(ack_id)
ack = self.cache_controller.ack_write_queue.pop(0)
ack.finish_event.synchronize()
matched = False
for ack_id in ack.node_ids:
entry = self.ongoing_offload.pop(ack_id, None)
if entry is None:
continue
matched = True
req, host_indices, incremental_tokens, start_time, start, end = entry

self._mark_offload_finished(req.rid)
prior_hash = (
Expand All @@ -247,6 +247,11 @@ def _check_offload_progress(self, finish_count):
state = self.offloaded_state.get(req.rid)
start_offset = state.prefill_len if state is not None else start
self._release_finished_req(req, start_offset)
if matched:
self.cache_controller.record_l1_l2_transfer_complete(
direction="offload",
ack=ack,
)
finish_count -= 1

def _release_finished_req(self, req: Req, start_offset: int):
Expand Down
Loading
Loading