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
What steps will reproduce the problem?
1. run print(p.get_cpu_affinity()) on many core (>32) hardware.
What is the expected output?
cannot set/get process affinity above core 31
What do you see instead?
What version of psutil are you using? What Python version?
0.6.0
On what operating system? Is it 32bit or 64bit version?
Windows server 2008 R2 (64bit)
Please provide any additional information below.
I want change process affinity mask on 48 core server, but psutil doesn't
support 64-bit affinity mask. It truncates affinity mask to 32-bit value, so I
did some change. It works.
https://code.google.com/p/psutil/source/browse/trunk/psutil/_psutil_mswindows.c#1974 from
if (! PyArg_ParseTuple(args, "l", &pid)) {
return NULL;
}
to
if (! PyArg_ParseTuple(args, "LK", &pid)) {
return NULL;
}
https://code.google.com/p/psutil/source/browse/trunk/psutil/_psutil_mswindows.c#2002 from
if (! PyArg_ParseTuple(args, "lk", &pid, &mask)) {
return NULL;
}
to
if (! PyArg_ParseTuple(args, "LK", &pid, &mask)) {
return NULL;
}
I should have fixed this in r1560 .
Once you have a chance to try it please confirm everything is ok as I haven't
that many cores to actually test against.
From picky...@gmail.com on August 16, 2012 04:06:44
Original issue: http://code.google.com/p/psutil/issues/detail?id=317
The text was updated successfully, but these errors were encountered: