Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU affinity on many core windows #317

Closed
giampaolo opened this issue May 23, 2014 · 5 comments
Closed

CPU affinity on many core windows #317

giampaolo opened this issue May 23, 2014 · 5 comments

Comments

@giampaolo
Copy link
Owner

From picky...@gmail.com on August 16, 2012 04:06:44

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;
}

Original issue: http://code.google.com/p/psutil/issues/detail?id=317

@giampaolo
Copy link
Owner Author

From g.rodola on December 13, 2012 08:41:57

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.

Status: FixedInSVN
Labels: OpSys-Windows Milestone-0.6.2 64bit

@giampaolo
Copy link
Owner Author

From g.rodola on March 02, 2013 04:12:28

Updated csets after the SVN -> Mercurial migration: r2 == revision ??? r1560 == 
revision 039c1bc71093

@giampaolo
Copy link
Owner Author

From g.rodola on April 07, 2013 18:21:49

Status: FixedInHG

@giampaolo
Copy link
Owner Author

From g.rodola on April 11, 2013 02:17:39

Labels: -Milestone-0.6.2 Milestone-0.7.0

@giampaolo
Copy link
Owner Author

From g.rodola on April 12, 2013 11:21:26

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant