Skip to main content

qualia_core_db/net/qdnf/cells/
mod.rs

1//! In-process cell scaling (E10.5) and fail-closed AF_XDP (E10.6).
2//!
3//! [`pass_budget`] charges the 42 MiB Sentinel ceiling as **accounting**.
4//! [`scaling`] admits 1..=16 cells against one host budget with equal-share
5//! fairness. [`hardware`] samples process RSS and NUMA; idle joules stay
6//! unmeasured. [`af_xdp`] never opens a zero-copy NIC on this Linux userspace.
7
8pub mod af_xdp;
9pub mod hardware;
10pub mod pass_budget;
11pub mod scaling;
12
13pub use af_xdp::{open_af_xdp, silent_zero_copy_fallback, umem_registered, AfXdp};
14pub use hardware::{
15    idle_energy_measured, idle_joules, numa_measured, numa_node, rapl_energy_uj, rss_bytes,
16    rss_measured,
17};
18pub use pass_budget::{
19    charge_pass, pass_maps_process_rss, reclaim_pass, PassCharge, PassGuard, PassOutcome,
20    SENTINEL_PASS_TOTAL,
21};
22pub use scaling::{fair_grant, HardwareObservation, ScaleHost, MAX_SCALE_CELLS};