Struct rd_hashd_intf::params::Params
source · [−]pub struct Params {Show 27 fields
pub control_period: f64,
pub concurrency_max: u32,
pub lat_target_pct: f64,
pub lat_target: f64,
pub rps_target: u32,
pub rps_max: u32,
pub mem_frac: f64,
pub chunk_pages: usize,
pub file_frac: f64,
pub file_size_mean: usize,
pub file_size_stdev_ratio: f64,
pub file_addr_stdev_ratio: f64,
pub file_addr_rps_base_frac: f64,
pub file_write_frac: f64,
pub anon_size_ratio: f64,
pub anon_size_stdev_ratio: f64,
pub anon_addr_stdev_ratio: f64,
pub anon_addr_rps_base_frac: f64,
pub anon_write_frac: f64,
pub sleep_mean: f64,
pub sleep_stdev_ratio: f64,
pub cpu_ratio: f64,
pub log_bps: u64,
pub fake_cpu_load: bool,
pub acc_dist_slots: usize,
pub lat_pid: PidParams,
pub rps_pid: PidParams,
}
Expand description
Dispatch and hash parameters, can be adjusted dynamially.
Fields
control_period: f64
concurrency_max: u32
lat_target_pct: f64
lat_target: f64
rps_target: u32
rps_max: u32
mem_frac: f64
chunk_pages: usize
file_frac: f64
file_size_mean: usize
file_size_stdev_ratio: f64
file_addr_stdev_ratio: f64
file_addr_rps_base_frac: f64
file_write_frac: f64
anon_size_ratio: f64
anon_size_stdev_ratio: f64
anon_addr_stdev_ratio: f64
anon_addr_rps_base_frac: f64
anon_write_frac: f64
sleep_mean: f64
sleep_stdev_ratio: f64
cpu_ratio: f64
log_bps: u64
fake_cpu_load: bool
acc_dist_slots: usize
lat_pid: PidParams
rps_pid: PidParams
Implementations
sourceimpl Params
impl Params
pub const FILE_FRAC_MIN: f64 = 0.001f64
pub fn log_padding(&self) -> u64
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Params where
Params: Default,
impl<'de> Deserialize<'de> for Params where
Params: Default,
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more