Skip to content

Commit c008682

Browse files
committed
compare with actual CPU ID's in cpusets
Signed-off-by: Niranjan M.R <mniranja@redhat.com>
1 parent 51e7a7f commit c008682

File tree

1 file changed

+6
-1
lines changed
  • test/e2e/performanceprofile/functests/13_llc

1 file changed

+6
-1
lines changed

test/e2e/performanceprofile/functests/13_llc/llc.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,9 +786,14 @@ var _ = Describe("[rfe_id:77446] LLC-aware cpu pinning", Label(string(label.Open
786786
ccx, err := getCCX(0)
787787
Expect(err).ToNot(HaveOccurred())
788788
L3CacheGroupSize = ccx.Size()
789-
if len(numaInfo[0]) == L3CacheGroupSize {
789+
// Get actual CPU ID's from Numa Node 0
790+
numaNode0Cpus := cpuset.New(numaInfo[0]...)
791+
792+
// Compare if L3 cache group CPUs match NUMA Node 0 CPUs
793+
if ccx.Equals(numaNode0Cpus) {
790794
Skip("This test requires systems where L3 cache is shared amount subset of cpus")
791795
}
796+
792797
nosmt = transformToNoSMT(coresiblings)
793798
if len(numaInfo) < 2 {
794799
Skip(fmt.Sprintf("This test need 2 Numa nodes. The number of numa nodes on node %s < 2", cnfnode.Name))

0 commit comments

Comments
 (0)