Skip to main content

AtomicLockStats

Struct AtomicLockStats 

Source
pub struct AtomicLockStats {
Show 16 fields pub contrib_wait_ns: AtomicU64, pub contrib_hold_ns: AtomicU64, pub node_factors_wait_ns: AtomicU64, pub node_factors_hold_ns: AtomicU64, pub factor_body_ns: AtomicU64, pub task_wall_ns: AtomicU64, pub ws_lock_wait_ns: AtomicU64, pub n_tasks: AtomicU64, pub phase_scaling_ns: AtomicU64, pub phase_permute_ns: AtomicU64, pub phase_symmetric_pattern_ns: AtomicU64, pub phase_tree_setup_ns: AtomicU64, pub phase_thread_ws_ns: AtomicU64, pub phase_leaves_ns: AtomicU64, pub phase_scope_ns: AtomicU64, pub phase_collect_ns: AtomicU64,
}
Expand description

Lock-contention + phase telemetry for the rayon-parallel multifrontal driver. Atomic fields aggregate across worker threads via fetch_add. Driver-phase fields are written once by the calling thread and use atomics only for uniformity (no contention there). Snapshot via snapshot() after the factor returns. See NumericParams::parallel_telemetry.

Fields§

§contrib_wait_ns: AtomicU64

Cumulative time spent waiting to acquire contrib_blocks.

§contrib_hold_ns: AtomicU64

Cumulative time spent holding contrib_blocks (excluding wait).

§node_factors_wait_ns: AtomicU64

Cumulative time spent waiting to acquire node_factors_out.

§node_factors_hold_ns: AtomicU64

Cumulative time spent holding node_factors_out (excluding wait).

§factor_body_ns: AtomicU64

Cumulative time spent inside factor_one_supernode itself, excluding the lock brackets above. Aggregated across workers, so on an 8-thread run this can exceed wall time by ~8×.

§task_wall_ns: AtomicU64

Cumulative wall time of the entire scope.spawn(...) closure body across all tasks (includes lock waits, factor_body, and per-task control flow like the snode lookup, fast-exit check, pending-decrement, and recursive spawn). Aggregated across workers. Compute task_wall_agg / T to compare against phase_scope_ns: the gap is rayon idle (worker waiting for an eligible task) or scope spawn/join overhead.

§ws_lock_wait_ns: AtomicU64

Cumulative wait time on the per-worker Mutex<FactorWorkspace>. Expected to be near zero (each worker has its own slot); non-zero values mean rayon scheduled two tasks onto the same worker queue before the first finished (an event that would also imply a worker idle elsewhere).

§n_tasks: AtomicU64

Number of parallel tasks executed.

§phase_scaling_ns: AtomicU64

compute_scaling_with_cache + scaling_pivot_order build.

§phase_permute_ns: AtomicU64

permute_csc_values (P·A·Pᵀ rebuild).

§phase_symmetric_pattern_ns: AtomicU64

permuted.symmetric_pattern().

§phase_tree_setup_ns: AtomicU64

is_root + parents + pending atomic counters + contrib_blocks / node_factors_out mutex setup.

§phase_thread_ws_ns: AtomicU64

Per-worker FactorWorkspace provisioning, including local_contribs.resize_with(n_snodes, ...).

§phase_leaves_ns: AtomicU64

Leaves collection (single linear pass over supernodes).

§phase_scope_ns: AtomicU64

The rayon::scope itself — sums to the parallel hot-loop wall time plus rayon overhead. Compare against factor_body_ns / T to see worker utilization.

§phase_collect_ns: AtomicU64

Final epilogue: node_factors_out.into_inner() + the postorder iteration that builds final_nodes and aggregates inertia.

Implementations§

Trait Implementations§

Source§

impl Debug for AtomicLockStats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AtomicLockStats

Source§

fn default() -> AtomicLockStats

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.