Add cri fields for windows cpu affinity

Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
This commit is contained in:
Kirtana Ashok 2024-06-05 21:43:46 -07:00
parent 4f796c02f7
commit f67208058c
2 changed files with 830 additions and 538 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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