pub enum HardMode {
Soft,
Strict,
}Expand description
Controls whether numaperf enforces strict NUMA policies or falls back gracefully.
§Soft Mode (default)
In soft mode, numaperf does its best to honor NUMA policies but will degrade gracefully when kernel features or privileges are unavailable. Operations succeed with reduced guarantees, and the actual enforcement level is reported to the caller.
§Strict Mode
In strict mode, numaperf requires that all requested policies can be fully enforced. If a policy cannot be guaranteed (due to missing privileges, kernel features, or hardware), the operation fails with a structured error.
Strict mode is useful for:
- Production systems where NUMA locality is critical
- Benchmarking with guaranteed placement
- Detecting configuration issues early
Variants§
Soft
Best-effort enforcement with graceful degradation.
Strict
Strict enforcement; fail if policy cannot be guaranteed.
Implementations§
Trait Implementations§
impl Copy for HardMode
impl Eq for HardMode
impl StructuralPartialEq for HardMode
Auto Trait Implementations§
impl Freeze for HardMode
impl RefUnwindSafe for HardMode
impl Send for HardMode
impl Sync for HardMode
impl Unpin for HardMode
impl UnwindSafe for HardMode
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
Mutably borrows from an owned value. Read more