You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working on a Intel Xeon Platinum 8175M * 2 machine, (24c 48t)*2. psutil.cpu_count() returns 96.
I want to specify the process working on different nodes, but when I set psutil.Process().cpu_affinity([48]), a strange behavior occurs as shown below.
In _pswindows.py, 48 is in the list of allcpus, so it accepts the id and passes to proc_cpu_affinity_set, and goes wrong.
So I think whether it is an unwanted behavior of proc_cpu_affinity_set on server that has multiple cpu sockets, or allcpus should be corrected and 48 in this case should be raise by a ValueError: Invalid CPU 48.
The text was updated successfully, but these errors were encountered:
Summary
Description
Working on a Intel Xeon Platinum 8175M * 2 machine, (24c 48t)*2.
psutil.cpu_count()
returns 96.I want to specify the process working on different nodes, but when I set
psutil.Process().cpu_affinity([48])
, a strange behavior occurs as shown below.In _pswindows.py, 48 is in the list of
allcpus
, so it accepts the id and passes toproc_cpu_affinity_set
, and goes wrong.So I think whether it is an unwanted behavior of
proc_cpu_affinity_set
on server that has multiple cpu sockets, orallcpus
should be corrected and 48 in this case should be raise by a ValueError: Invalid CPU 48.The text was updated successfully, but these errors were encountered: