pub struct LinuxMemory {
pub check_before_update: Option<bool>,
pub disable_oom_killer: Option<bool>,
pub kernel: Option<i64>,
pub kernel_tcp: Option<i64>,
pub limit: Option<i64>,
pub reservation: Option<i64>,
pub swap: Option<i64>,
pub swappiness: Option<u64>,
pub use_hierarchy: Option<bool>,
}
Expand description
LinuxMemory for Linux cgroup ‘memory’ resource management
Fields§
§check_before_update: Option<bool>
CheckBeforeUpdate enables checking if a new memory limit is lower than the current usage during update, and if so, rejecting the new limit.
disable_oom_killer: Option<bool>
DisableOOMKiller disables the OOM killer for out of memory conditions
kernel: Option<i64>
Kernel memory limit (in bytes).
kernel_tcp: Option<i64>
Kernel memory limit for tcp (in bytes)
limit: Option<i64>
Memory limit (in bytes).
reservation: Option<i64>
Memory reservation or soft_limit (in bytes).
swap: Option<i64>
Total memory limit (memory + swap).
swappiness: Option<u64>
How aggressive the kernel will swap memory pages.
use_hierarchy: Option<bool>
Enables hierarchical memory accounting
Trait Implementations§
Source§impl Clone for LinuxMemory
impl Clone for LinuxMemory
Source§fn clone(&self) -> LinuxMemory
fn clone(&self) -> LinuxMemory
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LinuxMemory
impl Debug for LinuxMemory
Source§impl<'de> Deserialize<'de> for LinuxMemory
impl<'de> Deserialize<'de> for LinuxMemory
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 LinuxMemory
impl PartialEq for LinuxMemory
Source§impl Serialize for LinuxMemory
impl Serialize for LinuxMemory
impl StructuralPartialEq for LinuxMemory
Auto Trait Implementations§
impl Freeze for LinuxMemory
impl RefUnwindSafe for LinuxMemory
impl Send for LinuxMemory
impl Sync for LinuxMemory
impl Unpin for LinuxMemory
impl UnwindSafe for LinuxMemory
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