Struct podman_api::models::LinuxMemory
source · pub struct LinuxMemory {
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§
§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 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 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<LinuxMemory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<LinuxMemory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<LinuxMemory> for LinuxMemory
impl PartialEq<LinuxMemory> for LinuxMemory
source§fn eq(&self, other: &LinuxMemory) -> bool
fn eq(&self, other: &LinuxMemory) -> bool
source§impl Serialize for LinuxMemory
impl Serialize for LinuxMemory
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more