diff --git a/test/e2e_node/util_machineinfo_linux.go b/test/e2e_node/util_machineinfo_linux.go index d89e8e28c22..721a4b8d701 100644 --- a/test/e2e_node/util_machineinfo_linux.go +++ b/test/e2e_node/util_machineinfo_linux.go @@ -60,17 +60,6 @@ func isMultiNUMA() bool { return numaNodes > 1 } -func getSMTLevel() int { - cpuID := 0 // this is just the most likely cpu to be present in a random system. No special meaning besides this. - out, err := exec.Command("/bin/sh", "-c", fmt.Sprintf("cat /sys/devices/system/cpu/cpu%d/topology/thread_siblings_list | tr -d \"\n\r\"", cpuID)).Output() - framework.ExpectNoError(err) - // how many thread sibling you have = SMT level - // example: 2-way SMT means 2 threads sibling for each thread - cpus, err := cpuset.Parse(strings.TrimSpace(string(out))) - framework.ExpectNoError(err) - return cpus.Size() -} - func getUncoreCPUGroupSize() int { cpuID := 0 // this is just the most likely cpu to be present in a random system. No special meaning besides this. out, err := os.ReadFile(fmt.Sprintf("/sys/devices/system/cpu/cpu%d/cache/index3/shared_cpu_list", cpuID)) diff --git a/test/e2e_node/util_machineinfo_unsupported.go b/test/e2e_node/util_machineinfo_unsupported.go index a5d6687706e..a9eed499316 100644 --- a/test/e2e_node/util_machineinfo_unsupported.go +++ b/test/e2e_node/util_machineinfo_unsupported.go @@ -38,10 +38,6 @@ func isMultiNUMA() bool { return false } -func getSMTLevel() int { - return 1 -} - func getUncoreCPUGroupSize() int { return 1 }