iwatake2222 / rotop

top command for ROS 2

Home Page:https://pypi.org/project/rotop/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

High CPU load using GUI

SammyRamone opened this issue · comments

Running rotop without GUI is fine, however if I use the GUI, I get around 500% CPU load. Looks a bit like a busy waiting problem.
My system:
Ubuntu 22.04 running in WSL2
Python 3.10
rotop 1.0.0

Thank you for reporting the issue!
I also faced the similar issue when running rotop on Docker. The GUI library may not work well in a virtual machine. I'll investigate on it

@SammyRamone
The new version with a workaround has been released. Please see if it works in you PC.
In my PC, CPU usage decreased from 200 % to 5% in WSL. However, in AWS EC2, it decreased from 1000% to 50%. I'm not sure why the CPU usage is still a little high...

pip3 install rotop==1.0.2

It is much better now. I get around 30% CPU load in my WSL, which is fine for me.
Thanks for fixing it 🙂