Struct rd_agent_intf::slices::SliceConfig
source · pub struct SliceConfig {
pub cpu_weight: u32,
pub io_weight: u32,
pub mem_min: MemoryKnob,
pub mem_low: MemoryKnob,
pub mem_high: MemoryKnob,
}
Fields§
§cpu_weight: u32
§io_weight: u32
§mem_min: MemoryKnob
§mem_low: MemoryKnob
§mem_high: MemoryKnob
Implementations§
source§impl SliceConfig
impl SliceConfig
pub const DFL_SYS_CPU_RATIO: f64 = 0.10000000000000001f64
pub const DFL_SYS_IO_RATIO: f64 = 0.10000000000000001f64
pub const DFL_MEM_MARGIN: f64 = 0.25f64
pub fn dfl_mem_margin(total: usize, fb_prod: bool) -> u64
Trait Implementations§
source§impl Clone for SliceConfig
impl Clone for SliceConfig
source§fn clone(&self) -> SliceConfig
fn clone(&self) -> SliceConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SliceConfig
impl Debug for SliceConfig
source§impl Default for SliceConfig
impl Default for SliceConfig
source§impl<'de> Deserialize<'de> for SliceConfig
impl<'de> Deserialize<'de> for SliceConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for SliceConfig
impl PartialEq for SliceConfig
source§fn eq(&self, other: &SliceConfig) -> bool
fn eq(&self, other: &SliceConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SliceConfig
impl Serialize for SliceConfig
impl StructuralPartialEq for SliceConfig
Auto Trait Implementations§
impl Freeze for SliceConfig
impl RefUnwindSafe for SliceConfig
impl Send for SliceConfig
impl Sync for SliceConfig
impl Unpin for SliceConfig
impl UnwindSafe for SliceConfig
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