opencontainers / opencontainers/runc

Support adding a TID (thread IDs) to cgroup in thread mode

Open
#3,617 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.