Struct cgroups_rs::hugetlb::HugeTlbController [−][src]
pub struct HugeTlbController { /* fields omitted */ }
Expand description
A controller that allows controlling the hugetlb
subsystem of a Cgroup.
In essence, using this controller it is possible to limit the use of hugepages in the tasks of the control group.
Implementations
Constructs a new HugeTlbController
with root
serving as the root of the control group.
Whether the system supports hugetlb_size
hugepages.
Check how many times has the limit of hugetlb_size
hugepages been hit.
Get the limit (in bytes) of how much memory can be backed by hugepages of a certain size
(hugetlb_size
).
Get the current usage of memory that is backed by hugepages of a certain size
(hugetlb_size
).
Get the maximum observed usage of memory that is backed by hugepages of a certain size
(hugetlb_size
).
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for HugeTlbController
impl Send for HugeTlbController
impl Sync for HugeTlbController
impl Unpin for HugeTlbController
impl UnwindSafe for HugeTlbController
Blanket Implementations
Mutably borrows from an owned value. Read more
Apply a set of resources to the Controller, invoking its internal functions to pass the kernel the information.
Attach a task to this controller by thread group id.