-
-
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
Problems with network statistics on Solaris 10 #517
Comments
I think that instead of checking |
instead of testing ksp->ks_module is 'link'
and not system dependent _INT64_TYPE may be defined but kstat may still return the IO counters in 32-bit types. In addition, on SunOS, sizeof(long)==sizeof(long long)==8 so using 'k' and 'K' means the same, and we need to ue 'I' for unsigned 32 bit integers.
Fix #517 (net_io_counters on Solaris 10)
This was fixed in #680 |
Thank you!! On 9/6/2015 4:52 AM, giampaolo wrote:
|
* giampaolo/master: (33 commits) fix appveyor failure update TODO + GIT pre-commit script #678_ setup.py error on linux reverse change - don't call safe_remove on APPVEYOR fix review comments update history and credits giampaolo#517 The data type retrurned from kstat is interface dependent and not system dependent Fix giampaolo#517 by testing ksp->ks_name is a network interface instead of testing ksp->ks_module is 'link' avoid name cutoff in tests use os.path.normcase for Windows exe tests TestUnicode: Instead of using Python's executable, compile one if possible Fix test_memory_leaks Code review fixes fix test on Solaris fix test on Solaris fix test on Solaris fix test on Solaris swap -k is not supported in Solaris 10 Add ifaddrs.c for Solaris 10 move DUPLEX_UNKOWN fix outside of #if PSUTIL_HAVE_IOPRIO ...
We’ve been evaluating psutil for suitability in a cross-platform machine statistic gathering application that we maintain for internal use. We’ve had several issues on Solaris and the attached patch file contains changes that made to get it working on Solaris 10.
This patch is not ready to merge, but I would be happy to get feedback to make it acceptable.
Patch - https://gist.github.com/lymanepp/c5e403df4cbd73561d9a
Kstat output (server 1) - https://gist.github.com/lymanepp/2d105d01da798760f2c5
Kstat output (server 2) - https://gist.github.com/lymanepp/2b6c103ff97fdf5995f2
The text was updated successfully, but these errors were encountered: