Struct oci_spec::runtime::LinuxMemory [−][src]
pub struct LinuxMemory {
pub limit: Option<i64>,
pub reservation: Option<i64>,
pub swap: Option<i64>,
pub kernel: Option<i64>,
pub kernel_tcp: Option<i64>,
pub swappiness: Option<u64>,
pub disable_oom_killer: Option<bool>,
pub use_hierarchy: Option<bool>,
}
Expand description
LinuxMemory for Linux cgroup ‘memory’ resource management.
Fields
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).
kernel: Option<i64>
Kernel memory limit (in bytes).
kernel_tcp: Option<i64>
Kernel memory limit for tcp (in bytes).
swappiness: Option<u64>
How aggressive the kernel will swap memory pages.
disable_oom_killer: Option<bool>
DisableOOMKiller disables the OOM killer for out of memory conditions.
use_hierarchy: Option<bool>
Enables hierarchical memory accounting
Trait Implementations
Returns the “default value” for a type. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for LinuxMemory
impl Send for LinuxMemory
impl Sync for LinuxMemory
impl Unpin for LinuxMemory
impl UnwindSafe for LinuxMemory
Blanket Implementations
Mutably borrows from an owned value. Read more