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

Mininet POX Remote controller CPU usage always 0.0 with psutil #1926

Closed
lorenzomonta opened this issue Mar 7, 2021 · 0 comments
Closed

Mininet POX Remote controller CPU usage always 0.0 with psutil #1926

lorenzomonta opened this issue Mar 7, 2021 · 0 comments

Comments

@lorenzomonta
Copy link

Summary

  • OS: { Ubuntu 20.04.2 LTS }
  • Architecture: { Virtualbox 6.1 }
  • VM Mininet -> https://github.com/mininet/mininet
  • Psutil version: { 5.8.0 }
  • Python version: { 3.8.5 }
  • Type: {
    #!/urs/bin/python

import psutil, os, subprocess

pid = /find process pid/

for i in range(10000):
print(round(psutil.Process(pid).cpu_percent(interval = 0.2), 1), round(psutil.Process(pid).memory_percent(memtype="rss"), 1))
}

Description

{{{
When I run this script, I always get the same values: CPU 0.0 and Memory 0.3, why? what am I doing wrong?
thank you
}}}

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