pub struct CacheResidencyReport {Show 54 fields
pub logical_cached_tokens: u64,
pub key_value_blocks: u64,
pub compressed_latent_blocks: u64,
pub device_blocks: u64,
pub host_blocks: u64,
pub disk_blocks: u64,
pub current_device_bytes: u64,
pub peak_device_bytes: u64,
pub current_host_bytes: u64,
pub peak_host_bytes: u64,
pub current_disk_bytes: u64,
pub peak_disk_bytes: u64,
pub in_flight_write_blocks: u64,
pub in_flight_write_bytes: u64,
pub peak_in_flight_write_bytes: u64,
pub in_flight_host_demotion_blocks: u64,
pub in_flight_host_demotion_bytes: u64,
pub peak_in_flight_host_demotion_bytes: u64,
pub mutable_tail_bytes: u64,
pub protected_recent_blocks: u64,
pub protected_prefix_blocks: u64,
pub per_layer: Vec<CacheLayerResidencyReport>,
pub per_layer_overflow_layers: u64,
pub per_layer_overflow: CacheLayerResidencyStats,
pub host_promotions: u64,
pub disk_promotions: u64,
pub host_demotions: u64,
pub disk_demotions: u64,
pub transfer_bytes: u64,
pub transfer_wait: Duration,
pub evictions: u64,
pub discarded_sliding_blocks: u64,
pub block_seals: u64,
pub tail_allocations: u64,
pub demand_hits: u64,
pub demand_misses: u64,
pub in_flight_waits: u64,
pub queue_capacity: usize,
pub queue_peak_occupancy: usize,
pub queue_backpressure: u64,
pub cancellations: u64,
pub failures: u64,
pub prefill_full_attention_blocks: u64,
pub prefill_full_attention_bytes: u64,
pub decode_full_attention_blocks: u64,
pub decode_full_attention_bytes: u64,
pub attention_scratch_peak_bytes: u64,
pub prompt_cache_saves: u64,
pub prompt_cache_loads: u64,
pub prompt_cache_bytes: u64,
pub imported_buffered_shards: u64,
pub process_rss_bytes: Option<u64>,
pub process_minor_page_faults: Option<u64>,
pub process_major_page_faults: Option<u64>,
}Expand description
Aggregated logical device/disk and physical host residency observations.
Fields§
§logical_cached_tokens: u64Absolute token count represented by the longest layer.
key_value_blocks: u64Sealed key/value blocks.
compressed_latent_blocks: u64Sealed compressed-latent/rotary blocks.
device_blocks: u64Blocks cataloged on the execution device.
host_blocks: u64Blocks cataloged in host memory.
disk_blocks: u64Blocks cataloged on disk.
current_device_bytes: u64Current logical device bytes, including mutable tails.
peak_device_bytes: u64Peak successfully admitted logical device bytes.
current_host_bytes: u64Current physical host allocation capacity.
peak_host_bytes: u64Peak successfully admitted physical host allocation capacity.
current_disk_bytes: u64Current logical disk bytes.
peak_disk_bytes: u64Peak successfully admitted logical disk bytes.
in_flight_write_blocks: u64Blocks whose host buffers are owned by background disk writes.
in_flight_write_bytes: u64Physical host capacity owned by disk writes.
peak_in_flight_write_bytes: u64Peak physical host capacity owned by background disk writes.
in_flight_host_demotion_blocks: u64Blocks retaining both device and host allocations during demotion.
in_flight_host_demotion_bytes: u64Physical host capacity charged during device demotion.
peak_in_flight_host_demotion_bytes: u64Peak physical host capacity charged during device demotion.
mutable_tail_bytes: u64Current bytes in mutable tails.
protected_recent_blocks: u64Recent blocks protected from device demotion.
protected_prefix_blocks: u64Prefix or sink blocks protected for attention.
per_layer: Vec<CacheLayerResidencyReport>Current per-layer rows, sorted and bounded.
per_layer_overflow_layers: u64Number of active layers folded into the overflow row.
per_layer_overflow: CacheLayerResidencyStatsExact aggregate of omitted and unidentifiable layers.
host_promotions: u64Host-to-device promotions.
disk_promotions: u64Disk-to-device promotions.
host_demotions: u64Device-to-host demotions.
disk_demotions: u64Resident-to-disk demotions.
transfer_bytes: u64Logical bytes copied by promotions and demotions.
transfer_wait: DurationHost time spent at transfer ownership boundaries.
evictions: u64Blocks evicted after configured tiers were exhausted.
discarded_sliding_blocks: u64Sliding-window blocks discarded as invisible.
block_seals: u64Completed block seals.
tail_allocations: u64Mutable tail allocations.
demand_hits: u64Demand hits.
demand_misses: u64Demand misses.
in_flight_waits: u64Requests that joined an existing transfer.
queue_capacity: usizeEffective bounded disk request queue capacity.
queue_peak_occupancy: usizePeak observed queue occupancy.
queue_backpressure: u64Requests delayed by queue capacity.
cancellations: u64Requests canceled by reset or truncation.
failures: u64Cache transfer or persistence failures.
prefill_full_attention_blocks: u64Blocks scanned by full attention during prefill.
prefill_full_attention_bytes: u64Logical bytes scanned by full attention during prefill.
decode_full_attention_blocks: u64Blocks scanned by full attention during decode.
decode_full_attention_bytes: u64Logical bytes scanned by full attention during decode.
attention_scratch_peak_bytes: u64Peak logical scratch bytes used by attention.
prompt_cache_saves: u64Successful prompt-cache saves.
prompt_cache_loads: u64Successful prompt-cache loads.
prompt_cache_bytes: u64Logical bytes written or cataloged for prompt caches.
imported_buffered_shards: u64Imported persistent shard count.
process_rss_bytes: Option<u64>Optional peak process resident-set size.
process_minor_page_faults: Option<u64>Optional cumulative minor page faults.
process_major_page_faults: Option<u64>Optional cumulative major page faults.
Trait Implementations§
Source§impl Clone for CacheResidencyReport
impl Clone for CacheResidencyReport
Source§fn clone(&self) -> CacheResidencyReport
fn clone(&self) -> CacheResidencyReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more