pub struct TopoPreset {
pub name: &'static str,
pub description: &'static str,
pub topology: Topology,
pub memory_mib: usize,
pub forced_cpu_budget: Option<u32>,
}Expand description
A gauntlet topology preset.
Each preset defines a specific CPU topology for matrix testing.
See gauntlet_presets() for the full set.
Fields§
§name: &'static str§description: &'static strHuman-readable description; read by preset-audit tests only.
topology: Topology§memory_mib: usizeMemory budget for this preset’s verifier VM.
This caps the topology-derived 64 MiB/vCPU floor; deferred initramfs sizing may still raise the actual guest allocation when the test binary, kernel, or boot modules require more memory.
forced_cpu_budget: Option<u32>Forced no-perf host-CPU budget for cells running this preset.
None (every stock preset) leaves budget resolution to the
normal path (test’s cpu_budget, else auto-size to vCPU count plus
one service CPU, clamped to the allowed cpuset).
Some(n) pins the no-perf CPU mask to min(n, allowed host CPUs),
so a preset whose vCPU count exceeds n ALWAYS time-slices
(deliberate, continuous overcommit). On a host with fewer than n
allowed CPUs the budget collapses to the allowed set — deeper
overcommit, never a skip or hard error (a forced budget exists to
force overcommit; a smaller host just forces more of it). The
admission preflight and the verifier cell path apply the same
clamp. Consumed by the
verifier cell path (crate::verifier::collect_verifier_output).
The only preset that sets it (192cpu-11llc-smt) is also non-uniform,
hence verifier-only (the gauntlet path skips llc_cores presets —
see for_each_gauntlet_variant), so the forced budget is realized
exclusively in the verifier battery. A future uniform forced-budget
preset would additionally need the gauntlet variant path to honor
this field.
Auto Trait Implementations§
impl Freeze for TopoPreset
impl RefUnwindSafe for TopoPreset
impl Send for TopoPreset
impl Sync for TopoPreset
impl Unpin for TopoPreset
impl UnwindSafe for TopoPreset
Blanket Implementations§
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more