Skip to main content

TaskSystemConfig

Struct TaskSystemConfig 

Source
pub struct TaskSystemConfig { /* private fields */ }
Expand description

Immutable sizing and bandwidth policy for one task system.

Implementations§

Source§

impl TaskSystemConfig

Source

pub const fn new(cpu_count: usize) -> Self

Creates a configuration with the project defaults.

Source

pub const fn cpu_count(self) -> usize

Returns the topology size.

Source

pub const fn fair_slice_ns(self) -> u64

Returns the fair service request.

Source

pub const fn timing_granularity_ns(self) -> u64

Returns the scheduler timing granularity used to bound EEVDF lag.

Source

pub const fn balance_interval_ns(self) -> u64

Returns the balancing interval.

Source

pub const fn rr_quantum_ns(self) -> u64

Returns the default round-robin quantum.

Source

pub const fn rt_period_ns(self) -> u64

Returns the RT bandwidth period.

Source

pub const fn rt_runtime_ns(self) -> u64

Returns the RT runtime budget.

Source

pub const fn deadline_cap_percent(self) -> u8

Returns the Deadline admission cap in percent.

Source

pub const fn thread_capacity(self) -> usize

Returns the maximum number of published scheduler threads.

Source

pub const fn batch_limit(self) -> usize

Returns the maximum work items processed at one safe point.

Source

pub const fn pi_chain_limit(self) -> usize

Returns the maximum owner-chain depth of one PI graph transaction.

Source

pub const fn with_deadline_cap_percent(self, percent: u8) -> Self

Overrides the Deadline admission cap.

Source

pub const fn with_balance_interval_ns(self, interval_ns: u64) -> Self

Overrides the minimum interval between owner-CPU fair migrations.

Source

pub const fn with_rt_bandwidth(self, period_ns: u64, runtime_ns: u64) -> Self

Enables Linux-style RT group bandwidth with an explicit period and quota.

Source

pub const fn with_thread_capacity(self, capacity: usize) -> Self

Overrides the scheduler thread capacity prepared by every CPU.

Source

pub const fn with_batch_limit(self, limit: usize) -> Self

Overrides the bounded scheduler work batch.

Source

pub const fn with_pi_chain_limit(self, limit: usize) -> Self

Overrides the maximum owner-chain depth of one PI graph transaction.

Trait Implementations§

Source§

impl Clone for TaskSystemConfig

Source§

fn clone(&self) -> TaskSystemConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for TaskSystemConfig

Source§

impl Debug for TaskSystemConfig

Source§

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

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

impl Eq for TaskSystemConfig

Source§

impl PartialEq for TaskSystemConfig

Source§

fn eq(&self, other: &TaskSystemConfig) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for TaskSystemConfig

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.