mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +00:00
Merge pull request #124285 from kiashok/affinityCPU-windows
CRI: Add field to support CPU affinity on Windows
This commit is contained in:
commit
53ab13397d
File diff suppressed because it is too large
Load Diff
@ -1055,6 +1055,19 @@ message WindowsContainerResources {
|
||||
int64 memory_limit_in_bytes = 4;
|
||||
// Specifies the size of the rootfs / scratch space in bytes to be configured for this container. Default: 0 (not specified).
|
||||
int64 rootfs_size_in_bytes = 5;
|
||||
// Optionally specifies the set of CPUs to affinitize for this container.
|
||||
repeated WindowsCpuGroupAffinity affinity_cpus = 6;
|
||||
}
|
||||
|
||||
// WindowsCpuGroupAffinity specifies the CPU mask and group to affinitize.
|
||||
// This is similar to the following _GROUP_AFFINITY structure:
|
||||
// https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/miniport/ns-miniport-_group_affinity
|
||||
message WindowsCpuGroupAffinity {
|
||||
// CPU mask relative to this CPU group.
|
||||
uint64 cpu_mask = 1;
|
||||
// Processor group the mask refers to, as returned by
|
||||
// GetLogicalProcessorInformationEx.
|
||||
uint32 cpu_group = 2;
|
||||
}
|
||||
|
||||
// ContainerMetadata holds all necessary information for building the container
|
||||
|
Loading…
Reference in New Issue
Block a user