noxrepo / pox

The POX network software platform
https://noxrepo.github.io/pox-doc/html/
Apache License 2.0
619 stars 470 forks source link

Cpu consumption #257

Closed lorenzomonta closed 3 years ago

lorenzomonta commented 3 years ago

How can I view the cpu consumption of the pox controller?

MurphyMc commented 3 years ago

Same way you view the CPU consumption of any process, really. Like "top" on Unix-like systems, or Task Manager on Windows.

lorenzomonta commented 3 years ago

What is the name of the process associated with the POX controller? How I can find the pid of the POX controller process?

@MurphyMc

Can you help me please?

MurphyMc commented 3 years ago

POX is written in Python, so the process name is probably whatever your Python interpreter is called (e.g., python3).

I guess you find the PID the same way you find any PID. If Mininet is running POX, then it seems like Mininet would be in the best position to know. Or you could use POX's misc.pidfile component to save the PID to a file...?

lorenzomonta commented 3 years ago

POX is written in Python, so the process name is probably whatever your Python interpreter is called (e.g., python3).

I guess you find the PID the same way you find any PID. If Mininet is running POX, then it seems like Mininet would be in the best position to know. Or you could use POX's misc.pidfile component to save the PID to a file...?

Could be "python3 -u /home/mininet/pox/pox.py forwarding.l3_detectionEntropy"?

@MurphyMc

MurphyMc commented 3 years ago

Yes, that's certainly POX.

lorenzomonta commented 3 years ago

Yes, that's certainly POX.

Thank you very much!