You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[manager/meta] optimize ReportEvent and host cache hot paths
Optimize the pure-local ReportEvent pipeline end to end: parse large HTTP bodies in request-owned buffers, use SIMD ASCII and NUL scans, flatten and intern request mutations, canonicalize versioned URIs without repeated parsing, inline the dominant one-spec task shape, and remove redundant temporary allocations.
Fuse exact single-location local RMW while preserving capacity, key-count, lifecycle, partial-failure and non-local backend semantics. Reuse LRU handles and bounded scratch, align metadata and local-LRU shard hashing, retire immutable values outside locks, and retain strict validation for every generic caller.
Accelerate GetHostCacheState with a bounded 4096-key probe and 16384-key parallel suffix, monotonic cancellation, ordinary and Mamba bitsets, request-scoped visibility parsing, serving-only filtering and strict non-NOENT error propagation. Preserve full materialization for P2P semantics and fail closed for malformed recovered EventReport URIs.
Add parser, URI, backend, capacity, lifecycle, concurrency, randomized differential, cancellation and ordered-error coverage. Document performance results, design invariants and rollback boundaries. Preserve the latest mu-main ReportEvent metrics commit unchanged.
Release validation on the merged mu-main tree passes 106 executable Bazel tests with one GPU-only skip. Pure-local measurements include about 106.32ms p50 for a 1M-key all-hit query with 4 workers, 84.38ms with 8 workers, and about 0.46ms for first-window cancellation; shared-host results are regression data, not an online SLA.
Copy file name to clipboardExpand all lines: docs/prometheus-en_US.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,8 +133,8 @@ every `kvcm.metrics.report_interval_ms`, default 20s).
133
133
|`manager.get_cache_location_hit_block_counter`| counter | Total blocks hit via GetCacheLocation (cumulative) |
134
134
|`manager.prefix_match_time_us`| gauge | Outer total latency for GetHostCacheState-style prefix matching (us) |
135
135
|`meta_searcher.indexer_get_time_us`| gauge | Wall time spent reading metadata through MetaIndexer (us) |
136
-
|`meta_indexer.get_io_time_us`| gauge |Metadata-backend wall time; local mode includes LRU/locks/copies and does not imply Redis I/O |
137
-
|`meta_searcher.host_projection_time_us`| gauge | GetHostCacheState visibility checks and host/spec projection time (us) |
136
+
|`meta_indexer.get_io_time_us`| gauge |Wall-time union of metadata-backend call intervals; local mode includes LRU/locks/copies, excludes parallel projection, and does not imply Redis I/O |
137
+
|`meta_searcher.host_projection_time_us`| gauge |Wall-time union of GetHostCacheState visibility and host/spec projection callback intervals (us) |
138
138
|`meta_searcher.host_prefix_reduce_time_us`| gauge | GetHostCacheState normal/Mamba host-prefix reduction time (us) |
139
139
|`meta_indexer.search_cache_hit_ratio`| gauge | Search cache hit ratio |
140
140
|`data_storage.create_keys_counter`| counter | Total created keys |
@@ -158,8 +158,9 @@ The full list depends on the active `MetricsReporter` type. The
158
158
The GetHostCacheState phase metrics above are nested:
159
159
`meta_indexer.get_io_time_us` is inside `meta_searcher.indexer_get_time_us`, and
160
160
the indexer/projection/reduction phases are inside `manager.prefix_match_time_us`.
161
-
Do not add them together. `get_io_time_us` is a historical name; with
162
-
`storage_type=local` it contains no Redis network operation.
161
+
Progressive local queries pipeline backend reads with projection, so these
162
+
intervals can overlap and must not be added together. `get_io_time_us` is a
163
+
historical name; with `storage_type=local` it contains no Redis network operation.
0 commit comments