-
Notifications
You must be signed in to change notification settings - Fork 551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
specs-go/config: add Core Scheduling support #1114
base: main
Are you sure you want to change the base?
Conversation
Linux kernel 5.14 adds the support for Core Scheduling. This allows setting and copying core scheduling 'task cookies' between the container process and the threads (PID), processes (TGID), and process groups (PGID), which helps define groups of tasks that can be co-scheduled on the same core. These groups can be specified either for security usecases or for performance usecases. opencontainers#1113 Signed-off-by: Kailun Qin <[email protected]>
Dear spec maintainers, would you please kindly take a look at the proposal when you get a chance? We do have some specific usage and asks here: #1113 (comment). |
type LinuxCoreSchedPids struct { | ||
// Pids are the threads. | ||
Pids []int `json:"pids,omitempty" platform:"linux"` | ||
// Tgids are the processes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean thread groups?
// LinuxCoreSchedPids defines the PIDs that Core Scheduling supports for setting and copying 'task cookies'. | ||
// 'PID == 0' implies the current process. | ||
type LinuxCoreSchedPids struct { | ||
// Pids are the threads. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean processes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And in which PIDNS?
} | ||
|
||
// LinuxCoreSchedPids defines the PIDs that Core Scheduling supports for setting and copying 'task cookies'. | ||
// 'PID == 0' implies the current process. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is "current?
Linux kernel 5.14 adds the support for Core Scheduling.
This allows setting and copying core scheduling 'task cookies' between
the container process and the threads (PID), processes (TGID), and
process groups (PGID), which helps define groups of tasks that can be
co-scheduled on the same core. These groups can be specified either for
security usecases or for performance usecases.
#1113
Signed-off-by: Kailun Qin [email protected]