-
-
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
psutil.cpu_count() should not be cached (also reflects on Process.cpu_percent()) #1055
Labels
Comments
giampaolo
added a commit
that referenced
this issue
May 12, 2017
OK, I don't remember why but it seems we don't want to cache it. |
Reason not to cache it, at least on Linux: it's possible to disable CPUs at runtime.
|
This was referenced May 19, 2017
giampaolo
changed the title
psutil.cpu_count() and cache
psutil.cpu_count() should not be cached (also reflects on Process.cpu_percent())
May 19, 2017
Also |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is mainly a note to self because I don't remember why I did it, but
cpu_count()
return value is currently cached after first call. Figure out whether we want to keep it that way.The text was updated successfully, but these errors were encountered: