先关闭绑核心,发现速度对比:不绑定核心+SCX>绑核心+SCX
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user