Expand description
StoragePrefetchEngine — Intelligent prefetch engine that learns access patterns and pre-warms the cache by predicting future access.
§Overview
The prefetch engine observes storage access events, maintains a sliding window of
recent accesses, and identifies co-access pairs (CIDs frequently accessed together
within a configurable time window). When a CID is accessed the engine scores all
known co-access partners using a recency-weighted count and returns up to
max_prefetch_hints sorted hints to the caller.
In addition to co-access correlation the engine detects per-CID access patterns
(Sequential, Repeated, Random, Strided, Unknown) to help callers adapt
their prefetch depth.
Structs§
- CoAccess
Pair - A pair of CIDs that have been observed to be accessed within the same time window.
- PeAccess
Event - A single storage access event recorded by the prefetch engine.
- PeConfig
- Configuration for
StoragePrefetchEngine. - PePrefetch
Hint - A predicted-access hint produced by the engine.
- PePrefetch
Stats - Aggregate statistics produced by
StoragePrefetchEngine::stats. - Storage
Prefetch Engine - Intelligent prefetch engine: records access events, identifies co-access pairs, detects per-CID access patterns, and generates prioritised prefetch hints.
Enums§
- PeAccess
Pattern - The access pattern detected for a single CID.
- PeAccess
Type - The kind of storage operation that was performed.