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

Performance Issues #12

Open
ghost opened this issue Aug 11, 2017 · 11 comments
Open

Performance Issues #12

ghost opened this issue Aug 11, 2017 · 11 comments
Assignees

Comments

@ghost
Copy link

ghost commented Aug 11, 2017

I installed gtop on OSX and Raspberry Pi and I noticed very high cpu usage comparable to other monitoring solutions (htop using 1% or less). Raspberry Pi was sitting at 100% CPU utilization just for gtop and OSX was anywhere between 5-15% CPU usage at any given time. Are performance improvements on the roadmap?

@aksakalli
Copy link
Owner

Well, node environment consumes more resources by its nature but 15% is really huge for a desktop machine. I tried in Intel Core 2 Quad Q9550 and Intel i7 7500U CPU linux machines, it usually lies around 2.5% CPU usage. I will look into that. (Let me try on my Raspberry Pi Zero.)

@aksakalli aksakalli self-assigned this Aug 11, 2017
@ghost
Copy link
Author

ghost commented Aug 11, 2017

Sure thing, regarding the Raspberry Pi here is my version/kernel:

pi@pivpn:~ $ node -v
v6.11.1

pi@pivpn:~ $ npm -v
3.10.10

pi@pivpn:~ $ uname -a
Linux pivpn 4.9.35+ #1014 Fri Jun 30 14:34:49 BST 2017 armv6l GNU/Linux

nodejs is for armv6 installed. Had to download the archive since the raspberry pi version in the repo wouldn't work.

@joaodlf
Copy link

joaodlf commented Aug 14, 2017

I've noticed the same, which I thought was quite funny in the ironic sense :), granted I'm testing this on a very small specced machine: 2 CPUs, 6GB RAM.

screen shot 2017-08-14 at 08 22 12

@ghost
Copy link
Author

ghost commented Aug 14, 2017

Performance is about at 1.5% on an i7 4770k @ 4.0GHz but it is enough to fully utilize the CPU on a Raspberry Pi OC'd to 1GHz. Is this just an issue with node?

@aksakalli
Copy link
Owner

aksakalli commented Aug 14, 2017

I tried in Raspberry Pi Zero: it consumes 100% CPU and makes it totally unresponsive. It is due to rendering routine. In every rendering cycle, bitmap is converted into unicode characters and updated in the terminal. It takes takes too much CPU time.

Possible solution/workaround ideas:

  • making rendering routine rate configurable for slow machines (thus the dashboard would become less responsive)
  • a lite version flag for less capable but less resource consumer version (need to design and implement a new dashboard only depens on blessed)
  • options to disable some panels like in Add command line flags for which windows to show #16
  • other optimizations???

What do you suggest?

@ghost
Copy link
Author

ghost commented Aug 14, 2017

Options for #16 are a good choice in my opinion from the features and performance perspective. Is there any way to optimize the rendering routine itself to be less CPU intensive (or would that require blessed)? I'd also say rendering rate option could be lumped into #16 in addition to the command line options. Unfortunately, I am not a NodeJS expert so I cannot give much insight there. :(

@Johnybe
Copy link

Johnybe commented Aug 18, 2017

Hi,
On my Fedora 26 gtop is on the top of memory and cpu consumming..........little bit strange for a monitoring tool

@aadrian
Copy link

aadrian commented Aug 28, 2017

On Scaleway machines, gtop has the highest CPU consumption among all processes :( .

@rajudev
Copy link

rajudev commented Sep 14, 2017

I was about to report a new issue for this, and came across this issue here. Here is the amount of CPU usage gtop consumes on my machine. Core i5 second Gen, 4 GB of RAM It is using higher CPU resource than firefox.
selection_001

@aadrian
Copy link

aadrian commented Sep 14, 2017

This tool is very cool.

What a pitty that we can't really use it because of this performance issue :( .

Most companies do not allow the use of monitoring tools that have such high resource usage.

@vogler
Copy link

vogler commented Jan 11, 2023

https://github.com/ClementTsang/bottom is a nice alternative.
On my RPi3 gtop is around 10% CPU whereas bottom is 1.5%.

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

6 participants