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: f64concurrency_max: u32lat_target_pct: f64lat_target: f64rps_target: u32rps_max: u32mem_frac: f64chunk_pages: usizefile_frac: f64file_size_mean: usizefile_size_stdev_ratio: f64file_addr_stdev_ratio: f64file_addr_rps_base_frac: f64file_write_frac: f64anon_size_ratio: f64anon_size_stdev_ratio: f64anon_addr_stdev_ratio: f64anon_addr_rps_base_frac: f64anon_write_frac: f64sleep_mean: f64sleep_stdev_ratio: f64cpu_ratio: f64log_bps: u64fake_cpu_load: boolacc_dist_slots: usizelat_pid: PidParamsrps_pid: PidParamsImplementations
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
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more