Skip to content

Comments

[cgroups2] Introduce cgroups2::disable to disable a controller.#536

Closed
DevinLeamy wants to merge 1 commit intoapache:masterfrom
DevinLeamy:disable-controller
Closed

[cgroups2] Introduce cgroups2::disable to disable a controller.#536
DevinLeamy wants to merge 1 commit intoapache:masterfrom
DevinLeamy:disable-controller

Conversation

@DevinLeamy
Copy link
Contributor

Allows a controller to be disabled on a cgroup. A test is introduced.

We additionally move the read and write utilities so that they are accessible when we read the cgroup.subtree_control control file.

Allows a controller to be disabled on a cgroup. A test is introduced.

We additionally move the read and write utilities so that they are
accessible when we read the cgroup.subtree_control control file.

TEST_F(Cgroups2Test, ROOT_CGROUPS2_EnableAndDisable)
{
ASSERT_SOME(cgroups2::create(TEST_CGROUP));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we want to call enable_controllers here to ensure the root cgroup has the cpu controller enabled, right?

@bmahler bmahler closed this in 15e0015 Mar 26, 2024
@DevinLeamy DevinLeamy deleted the disable-controller branch April 1, 2024 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants