-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
structure size mismatch #857
Comments
The error originates from here: |
Hi @giampaolo , looks like only some processes
the processes of bash and sshd are fine:
but others are not:
so it's related to the process, what would you suggest me to investigate? |
@billcchung
I think this explains it all:
http://src.illumos.org/source/xref/illumos-gate/usr/src/uts/common/fs/proc/prvnops.c#1839 Python binary is 32bit while some processes could be 64bit. |
Apparently this happens only with cpu_times() / cpu_percent(). |
I made a change in 05defa0. Error still occurs but now it's at least the correct one:
|
Problem occurs even with
This is very weird. |
Also occurs as root, just to rule out any permission-related problem. The process above (1460) was owned by a regular user. |
Yes, the problem appears to be we cannot read CPU info of a 64bit process with a 32bit Python. |
Running psutil on solaris 10 (SunOS dhcp-10-140-112-88 5.10 Generic_142910-17 i86pc i386 i86pc Solaris),
while trying to get process cpu_percent I got:
any solutions?
The text was updated successfully, but these errors were encountered: