You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ginkgo.By("Admit two guaranteed pods. Both consist of 1 containers, each pod asks for cpus from 2 NUMA nodes. CPUs should be assigned from closest NUMA")
ginkgo.By("Admit two guaranteed pods. Both consist of 1 containers, each pod asks for cpus from 2 NUMA nodes. CPUs should be assigned from closest NUMA")
910
916
podMap:=make(map[string]*v1.Pod)
911
917
forpodID:=0; podID<2; podID++ {
912
918
numCores:=0
@@ -916,7 +922,7 @@ func runPreferClosestNUMATestSuite(ctx context.Context, f *framework.Framework,
916
922
// subtract one to accommodate reservedCPUs. It'll only work if more than 2 cpus per NUMA node.
917
923
cpusPerNUMA:=len(cpus)
918
924
ifcpusPerNUMA<3 {
919
-
e2eskipper.Skipf("Less than 2 cpus per NUMA node on this system. Skipping test.")
925
+
e2eskipper.Skipf("Less than 3 cpus per NUMA node on this system. Skipping test.")
920
926
}
921
927
numCores+=cpusPerNUMA-1
922
928
}
@@ -936,6 +942,89 @@ func runPreferClosestNUMATestSuite(ctx context.Context, f *framework.Framework,
ginkgo.By("Admit two guaranteed pods. Both consist of 1 containers, each pod asks for cpus from 2 NUMA nodes. CPUs should be assigned from closest NUMA")
952
+
cntName:="ps-container-0"
953
+
954
+
// expect same amount of cpus per NUMA
955
+
cpusPerNUMA, err:=getCPUsPerNUMANode(0)
956
+
framework.ExpectNoError(err)
957
+
iflen(cpusPerNUMA) <5 {
958
+
e2eskipper.Skipf("Less than 5 cpus per NUMA node on this system. Skipping test.")
959
+
}
960
+
podMap:=make(map[string]*v1.Pod)
961
+
forpodID:=0; podID<2; podID++ {
962
+
// asks for all but one cpus from one less than half NUMA nodes, and half from the other
963
+
// plus add one less than half NUMA nodes, to accommodate for reserved cpus
0 commit comments