Merge pull request #124285 from kiashok/affinityCPU-windows

CRI: Add field to support CPU affinity on Windows
This commit is contained in:
Kubernetes Prow Robot 2024-10-21 21:14:51 +01:00 committed by GitHub
commit 53ab13397d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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; 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). // 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; 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 // ContainerMetadata holds all necessary information for building the container