-
Notifications
You must be signed in to change notification settings - Fork 46
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
CPU usage and pause problem #5
Comments
Hello @chihsheng1220, How many PDCs are you trying to connect with? PMU will spawn a new process (PID) for each connection. If you try to decrease your reporting rage it might help as well. |
Hi @sstevan , Only one PDC I was trying to connect with. I have tried with 1 frames/second already; however, the problem still existed. I have no idea which part is improper. Do you have any suggestion to deal with it? Code:
Thanks for your help. Jim |
Hey @chihsheng1220, sorry for the huge delay. Can you please verify that solution offered by @novicas really solves your issue (check pull request #6 )? You can actually change only this part of the script from above and let us know if it works:
|
Hi @sstevan , I have tried added some execution pause already, but the problem still existed. I used PMU Connection Tester to simulate reconnecting situation. PMU will spawn a new process (PID) for each connection and never be killed. How could I close each disconnection process? By the way, PMU crashed if I use "kill -9 PID" command for killing PID. Jim |
Hey @chihsheng1220, Have you tried the script above? |
Yes, I've tried the script above already. import lcd_i2c_driver time.sleep(10) SPI_PORT = 0 if name == "main":
` |
Hi,
I tried to use your project example(randomPMU.py) running on Raspberry pi 3 couple weeks ago, and I found that cpu usage was up to 100%. Sometimes, it paused during the process of sending data message.
After I checked task mamager, it was created a lots of PID.
Need a help to solve this problem.
Thanks,
Jim
The text was updated successfully, but these errors were encountered: