Skip to content

Conversation

@israbbani
Copy link
Contributor

@israbbani israbbani commented Sep 4, 2025

This PR stacks on #56246.

For more details about the resource isolation project see #54703.

This PR adds the DeleteCgroup method (along with unit and integration tests) to the CgroupDriverInterface and the SysFsCgroupDriver to allow CgroupManager to clean up the cgroup hierarchy is graceful shutdown.

israbbani and others added 30 commits July 24, 2025 20:39
to perform cgroup operations.

Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
instead of clone for older kernel headers < 5.7 (which is what we have
in CI)

Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Ibrahim Rabbani <israbbani@gmail.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Ibrahim Rabbani <israbbani@gmail.com>
Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Ibrahim Rabbani <israbbani@gmail.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
fix CI.

Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: Ibrahim Rabbani <irabbani@anyscale.com>
Signed-off-by: irabbani <irabbani@anyscale.com>
CgroupDriverInterface and SysFsCgroupDriver for cleanup along with unit
and integration tests

- DeleteCgroup
- DisableController

Signed-off-by: irabbani <irabbani@anyscale.com>
@israbbani israbbani added go add ONLY when ready to merge, run all tests core Issues that should be addressed in Ray Core labels Sep 4, 2025
@israbbani israbbani changed the base branch from master to irabbani/cgroups-4 September 4, 2025 20:06
@israbbani israbbani changed the title [core] (cgroups 5/n) Adding clean up the following methods to CgroupDriverInterface and SysFsCgroupDriver [core] (cgroups 5/n) Adding clean up methods to CgroupDriverInterface and SysFsCgroupDriver Sep 4, 2025
@israbbani israbbani marked this pull request as ready for review September 4, 2025 20:49
@israbbani israbbani requested a review from a team as a code owner September 4, 2025 20:49
Base automatically changed from irabbani/cgroups-4 to master September 6, 2025 00:05
Signed-off-by: Ibrahim Rabbani <irabbani@anyscale.com>
Comment on lines +94 to +98
if (!delete_cgroup_s_.ok()) {
return delete_cgroup_s_;
}
cgroups_->erase(cgroup);
return delete_cgroup_s_;
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice!

<< "Error: " << strerror(errno);
}

// Tests for DeleteCgroup
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: kind of unnecessary comment given test names

@edoakes edoakes merged commit 9536fca into master Sep 8, 2025
5 checks passed
@edoakes edoakes deleted the irabbani/cgroups-5 branch September 8, 2025 17:40
jugalshah291 pushed a commit to jugalshah291/ray_fork that referenced this pull request Sep 11, 2025
… and SysFsCgroupDriver (ray-project#56255)

This PR stacks on ray-project#56246.

For more details about the resource isolation project see
ray-project#54703.

This PR adds the DeleteCgroup method (along with unit and integration
tests) to the CgroupDriverInterface and the SysFsCgroupDriver to allow
CgroupManager to clean up the cgroup hierarchy is graceful shutdown.

---------

Signed-off-by: Ibrahim Rabbani <irabbani@anyscale.com>
Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: jugalshah291 <shah.jugal291@gmail.com>
ZacAttack pushed a commit to ZacAttack/ray that referenced this pull request Sep 24, 2025
… and SysFsCgroupDriver (ray-project#56255)

This PR stacks on ray-project#56246.

For more details about the resource isolation project see
ray-project#54703.

This PR adds the DeleteCgroup method (along with unit and integration
tests) to the CgroupDriverInterface and the SysFsCgroupDriver to allow
CgroupManager to clean up the cgroup hierarchy is graceful shutdown.

---------

Signed-off-by: Ibrahim Rabbani <irabbani@anyscale.com>
Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: zac <zac@anyscale.com>
dstrodtman pushed a commit that referenced this pull request Oct 6, 2025
… and SysFsCgroupDriver (#56255)

This PR stacks on #56246.

For more details about the resource isolation project see
#54703.

This PR adds the DeleteCgroup method (along with unit and integration
tests) to the CgroupDriverInterface and the SysFsCgroupDriver to allow
CgroupManager to clean up the cgroup hierarchy is graceful shutdown.

---------

Signed-off-by: Ibrahim Rabbani <irabbani@anyscale.com>
Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Douglas Strodtman <douglas@anyscale.com>
justinyeh1995 pushed a commit to justinyeh1995/ray that referenced this pull request Oct 20, 2025
… and SysFsCgroupDriver (ray-project#56255)

This PR stacks on ray-project#56246.

For more details about the resource isolation project see
ray-project#54703.

This PR adds the DeleteCgroup method (along with unit and integration
tests) to the CgroupDriverInterface and the SysFsCgroupDriver to allow
CgroupManager to clean up the cgroup hierarchy is graceful shutdown.

---------

Signed-off-by: Ibrahim Rabbani <irabbani@anyscale.com>
Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
snorkelopstesting2-coder pushed a commit to snorkel-marlin-repos/ray-project_ray_pr_56255_10aaf56b-4f01-4ac8-85c5-01d7142718ae that referenced this pull request Oct 22, 2025
… and SysFsCgroupDriver

Original PR #56255 by israbbani
Original: ray-project/ray#56255
snorkelopstesting1-a11y added a commit to snorkel-marlin-repos/ray-project_ray_pr_56255_10aaf56b-4f01-4ac8-85c5-01d7142718ae that referenced this pull request Oct 22, 2025
…o CgroupDriverInterface and SysFsCgroupDriver

Merged from original PR #56255
Original: ray-project/ray#56255
landscapepainter pushed a commit to landscapepainter/ray that referenced this pull request Nov 17, 2025
… and SysFsCgroupDriver (ray-project#56255)

This PR stacks on ray-project#56246.

For more details about the resource isolation project see
ray-project#54703.

This PR adds the DeleteCgroup method (along with unit and integration
tests) to the CgroupDriverInterface and the SysFsCgroupDriver to allow
CgroupManager to clean up the cgroup hierarchy is graceful shutdown.

---------

Signed-off-by: Ibrahim Rabbani <irabbani@anyscale.com>
Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants