From c3ebaf6d77caca90fbb7923afca3fbbf55f52f88 Mon Sep 17 00:00:00 2001 From: yehlemias Date: Wed, 19 Nov 2025 13:14:00 +0800 Subject: [PATCH] feat: support cpu numa affinity --- pkg/consts/qos.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/consts/qos.go b/pkg/consts/qos.go index 16a4b7ae..34e4f53d 100644 --- a/pkg/consts/qos.go +++ b/pkg/consts/qos.go @@ -138,6 +138,15 @@ const ( // For cgroup v1, the cpu burst value is calculated using cpu.cfs_quota_us * (cpu_burst_percent / 100) // For cgroup v2, the cpu burst value is calculated using cpu.max * (cpu_burst_percent / 100) PodAnnotationCPUEnhancementCPUBurstPercent = "cpu_burst_percent" + + // PodAnnotationCPUEnhancementNumaAffinity provides a mechanism to enable numa-affinity + // for A SINGLE Pod to avoid contentions on cpu cores. + // + // - this enhancement is only supported for dedicated-cores and shared-cores, for now and foreseeable future. + // - shared cores with numa-affinity and dedicated cores with numa-affinity can share different cpu cores in + // - same numa nodes. + PodAnnotationCPUEnhancementNumaAffinity = "cpu_numa_affinity" + PodAnnotationCPUEnhancementNumaAffinityEnable = "true" ) // const variables for pod annotations about qos level enhancement in network