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).

Set the limit (in bytes) of how much memory can be backed by hugepages of a certain size (hugetlb_size).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

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.

Create this controller

Set notify_on_release

Set release_agent

Does this controller already exist?

Delete the controller.

Attach a task to this controller.

Attach a task to this controller by thread group id.

Get the list of tasks that this controller has.

The file system path to the controller.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.