specs-go/config: add Core Scheduling support#1114
Open
kailun-qin wants to merge 1 commit intoopencontainers:mainfrom
Open
specs-go/config: add Core Scheduling support#1114kailun-qin wants to merge 1 commit intoopencontainers:mainfrom
kailun-qin wants to merge 1 commit intoopencontainers:mainfrom
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 <kailun.qin@intel.com>
Contributor
Author
|
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). |
AkihiroSuda
reviewed
Aug 24, 2022
| type LinuxCoreSchedPids struct { | ||
| // Pids are the threads. | ||
| Pids []int `json:"pids,omitempty" platform:"linux"` | ||
| // Tgids are the processes. |
Member
There was a problem hiding this comment.
Did you mean thread groups?
AkihiroSuda
reviewed
Aug 24, 2022
| // 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. |
AkihiroSuda
reviewed
Aug 24, 2022
| } | ||
|
|
||
| // LinuxCoreSchedPids defines the PIDs that Core Scheduling supports for setting and copying 'task cookies'. | ||
| // 'PID == 0' implies the current process. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 kailun.qin@intel.com