Skip to content

Fall back to cgroup for container-aware PIDs - #129

Open
draarivpatel-ui wants to merge 1 commit into
rs:masterfrom
draarivpatel-ui:fix-container-cgroup-fallback
Open

draarivpatel-ui wants to merge 1 commit into
rs:masterfrom
draarivpatel-ui:fix-container-cgroup-fallback

Conversation

@draarivpatel-ui

Copy link
Copy Markdown

Fixes #70.

Summary

  • Keep the existing /proc/self/cpuset mixing behavior.
  • Fall back to /proc/self/cgroup when cpuset is unavailable in a container.
  • Add focused tests for cpuset preference, cgroup fallback, and hosts without either file.

Verification

  • go test ./...
  • go vet ./...

Copilot AI balanced review requested due to automatic review settings November 25, 2026 19:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

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.

'/proc/self/cpuset' not found inside the container

2 participants