先关闭绑核心,发现速度对比:不绑定核心+SCX>绑核心+SCX

(cherry picked from commit 1eba73acbe)
This commit is contained in:
2026-02-28 23:27:44 +08:00
committed by ianchb
parent b185f84cce
commit b4bc0ef269

View File

@@ -43,7 +43,8 @@ def get_last_n_cores_per_socket(n=32):
cpu_str = ",".join(segments) cpu_str = ",".join(segments)
total = len(segments) * n total = len(segments) * n
print(f" CPU binding: taskset -c {cpu_str} ({total} cores, last {n} per socket)") print(f" CPU binding: taskset -c {cpu_str} ({total} cores, last {n} per socket)")
return f"taskset -c {cpu_str}" #return f"taskset -c {cpu_str}"
return f""
## CPU core binding: dynamically select the last 32 cores of each socket (64 cores total) ## CPU core binding: dynamically select the last 32 cores of each socket (64 cores total)