e2e: node: address linter errors

remove now-unused code

Signed-off-by: Francesco Romani <fromani@redhat.com>
This commit is contained in:
Francesco Romani
2025-08-28 13:24:02 +02:00
parent 9aed0813e6
commit bf6a55cd06
2 changed files with 0 additions and 15 deletions

View File

@@ -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))

View File

@@ -38,10 +38,6 @@ func isMultiNUMA() bool {
return false
}
func getSMTLevel() int {
return 1
}
func getUncoreCPUGroupSize() int {
return 1
}