Skip to main content

Module resource

Module resource 

Source

Structs§

ByteLruCache
Byte-limited LRU cache with an optional entry cap.
CgroupMemoryAvailability
Reclaim-aware headroom under the binding finite cgroup ancestor.
CgroupMemoryProbeFailure
Fail-closed evidence from an active cgroup controller probe.
Governed
A value whose live memory is coupled to a process-wide reservation.
MaterializationPolicy
MemoryAvailability
Provenance-preserving memory availability for the current process.
MemoryGovernor
Process-wide byte-accounting governor for large allocations.
MemoryReservation
RAII guard for bytes reserved on a MemoryGovernor ledger; dropping it releases the reservation. Hold it exactly as long as the accounted allocation is live.
ProblemHints
Hints that flip strict mode on regardless of n/p — used when a code path is structurally operator-only and any dense fallback would be a bug.
RayonSafeOnce
Lazy-init cache safe to call from inside rayon par_iter.
ResourcePolicy

Enums§

CgroupMemoryLimit
The exact syntax of one cgroup-v2 memory.max value.
CgroupMemoryObservation
The process’ typed cgroup memory provenance.
CgroupMemoryProbeFailureKind
Why a live cgroup memory hierarchy could not be observed safely.
DerivativeStorageMode
MatrixMaterializationError
MemoryAvailabilitySource
Which observation is the binding ceiling on memory available to this process.
MemoryReservationError
Typed refusal from MemoryGovernor::try_reserve.

Constants§

LIBRARY_ROW_CHUNK_TARGET_BYTES
The library-default streamed row-chunk target (8 MiB), shared as a const so compile-time consumers (e.g. device tile geometry) stay in lockstep with ResourcePolicy::default_library without a runtime policy query.
OWNED_DATA_CACHE_MAX_ENTRIES

Traits§

ResidentBytes

Functions§

dense_f64_bytes
Checked byte footprint of a dense nrows × ncols f64 matrix.
memory_availability_probe_count
Number of completed OS/cgroup availability probes in this process.
prediction_chunk_rows
Select the row count for prediction-time covariance work.
process_available_memory_bytes
The process’s available-memory figure in bytes, saturating to usize. Convenience over process_memory_availability for planners that only need the scalar.
process_memory_availability
The process’s memory availability: one observation, taken once, shared by every planner in the process.
resample_memory_availability
Take a fresh reading of the OS and cgroup memory observations.
rows_for_target_bytes
Returns how many rows to stream per chunk so that each chunk uses approximately target_bytes given a row width of cols f64 entries.