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<i32>,
pub use_hierarchy: Option<bool>,
}
Expand description
LinuxMemory : 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). Deprecated: kernel-memory limits are not supported in cgroups v2, and were obsoleted in [kernel v5.4]. This field should no longer be used, as it may be ignored by runtimes. [kernel v5.4]: https://github.com/torvalds/linux/commit/0158115f702b0ba208ab0
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<i32>
How aggressive the kernel will swap memory pages.
use_hierarchy: Option<bool>
Enables hierarchical memory accounting
Implementations§
Source§impl LinuxMemory
impl LinuxMemory
Sourcepub fn new() -> LinuxMemory
pub fn new() -> LinuxMemory
LinuxMemory for Linux cgroup ‘memory’ resource management
Trait Implementations§
Source§impl Clone for LinuxMemory
impl Clone for LinuxMemory
Source§fn clone(&self) -> LinuxMemory
fn clone(&self) -> LinuxMemory
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more