opencontainers / opencontainers/runc
Support adding a TID (thread IDs) to cgroup in thread mode
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 13.5k
- Forks
- 2.3k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 30
Description
Currently the Manager interface supports only adding a process by calling Apply(pid int), but there's no support for adding a thread on thread mode.
Perhaps the current method can be utilized to either add a process or a thread, depending on the cgroup's mode.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Manager interface in libcontainer/cgroups/cgroups.go, especially Apply(pid int), and inspect how cgroup thread mode currently handles process IDs. Determine how the interface should accept a thread ID without breaking process-mode behavior; done means thread IDs can be added to a thread-mode cgroup through the supported Manager API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100