pub struct CacheUse {
pub eager_bytes: u64,
pub lazy_bytes: u64,
pub budget: u64,
pub segments: u64,
pub evicted_segments: u64,
pub evicted_bytes: u64,
pub evicted_rows: u64,
pub written_back: u64,
pub direct_reads: u64,
pub suppressed_write_backs: u64,
}Expand description
What the tier is holding and what it is allowed to hold — the row a
dashboard prints and Admin.StorageInfo carries.
Fields§
§eager_bytes: u64Bytes in the eager pool (commits and tags under the shipped policy).
lazy_bytes: u64Bytes in the lazy pool, across every live segment.
budget: u64The cap. 0 is unlimited.
segments: u64Live lazy segments.
evicted_segments: u64Segments unlinked since this store was opened.
evicted_bytes: u64Bytes those segments held. Applied output: what actually left the filesystem, measured before the unlink, not a projection.
evicted_rows: u64Rows those segments held.
written_back: u64Objects written back by a first read.
direct_reads: u64Reads served by inflating the object directly out of the pack and caching NOTHING — the cheap ones the admission policy declined. Applied output: the counter says the policy ran, which a size alone could not.
suppressed_write_backs: u64Write-backs declined because the caller declared the read a
validation read (suppress_write_back) — a receive-pack’s
connectivity walk, not a reader.
Applied output, and the only way to tell the suppression ran from a store that simply had nothing to cache: a pool that stays empty proves nothing on its own, and this counter moving proves the gate fired.
Implementations§
Trait Implementations§
impl Copy for CacheUse
impl Eq for CacheUse
impl StructuralPartialEq for CacheUse
Auto Trait Implementations§
impl Freeze for CacheUse
impl RefUnwindSafe for CacheUse
impl Send for CacheUse
impl Sync for CacheUse
impl Unpin for CacheUse
impl UnsafeUnpin for CacheUse
impl UnwindSafe for CacheUse
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.