Skip to content

Switch to cgroup for job control and associated settings#205

Merged
sjpb merged 10 commits intomasterfrom
feat/enable_cgroup
Feb 5, 2026
Merged

Switch to cgroup for job control and associated settings#205
sjpb merged 10 commits intomasterfrom
feat/enable_cgroup

Conversation

@elelaysh
Copy link
Contributor

@elelaysh elelaysh commented Jan 26, 2026

  • Switch ProctrackType to proctrack/cgroup, which is the recommended setting
    (was disabled for compatibility with CI running in containers)
  • TaskPlugin=task/cgroup,task/affinity to bind jobs to allocated CPUs
  • JobAcctGatherType=jobacct_gather/cgroup instead of jobacct_gather/linux
  • Add verifications to the test1 scenario, verifying that job resource limits work

- switching ProctrackType to proctrack/cgroup, which is the recommended setting
  (was disabled for CI)
- Enabling TaskPlugins task/cgroup,task/affinity to bind jobs to
  allocated cpuset
- SelectTypeParameters=CR_Core_Memory to also limit memory
@elelaysh elelaysh requested a review from a team as a code owner January 26, 2026 11:28
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly enables cgroup-based process tracking and resource management for Slurm by updating the default configuration. The addition of Molecule tests to verify the cgroup limits is a valuable improvement. My review focuses on improving the new tests' robustness and maintainability. I've identified a bug in a test failure message, some fragile logic that relies on globbing, and opportunities to make the tests more readable by naming tasks.

@elelaysh elelaysh force-pushed the feat/enable_cgroup branch 6 times, most recently from 7b7ead8 to 75a63f0 Compare January 26, 2026 14:00
enable cpuset for whole user.slice hierarchy
in cgroup. So that we can enable the cpuset controller for it.
@elelaysh elelaysh changed the title enable ProctrackType cgroup, along with CR_Core_Memory, task/cgroup,task/affinity plugins Switch to cgroup for job control and associated settings Jan 26, 2026
@elelaysh
Copy link
Contributor Author

ready for review

elelaysh and others added 2 commits February 5, 2026 14:23
Co-authored-by: Steve Brasier <33413598+sjpb@users.noreply.github.com>
@elelaysh elelaysh requested a review from sjpb February 5, 2026 13:37
Copy link
Collaborator

@sjpb sjpb left a comment

Choose a reason for hiding this comment

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

LGTM

@sjpb sjpb merged commit 7fb7f44 into master Feb 5, 2026
27 checks passed
@sjpb sjpb deleted the feat/enable_cgroup branch February 5, 2026 14:44
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