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

htop is using much cpu itself #1484

Open
webcaptcha opened this issue May 24, 2024 · 3 comments
Open

htop is using much cpu itself #1484

webcaptcha opened this issue May 24, 2024 · 3 comments
Labels
Linux 🐧 Linux related issues support request This is not a code issue but merely a support request. Please use the mailing list or IRC instead.

Comments

@webcaptcha
Copy link

I'm on KDE Plasma on Wayland session

Terminal emulator - Alacritty
When I run htop it's usually shows around 15% CPU with peaks up to 25%

Is it ok? For example on the screenshot at the same time Firefox was playing video.
Screenshot_20240524_174128

If it needed I can make a video but almost all time it uses than numbers of CPU

CPU - AMD 7840HS
GPU - intergrated
RAM - 32GB

htop default config

@Explorer09
Copy link
Contributor

The CPU percentage displayed is per core, so when you have 16 CPU core (or threads) active, the maximum would be 1600%.
Do you consider this takes too much CPU usage?

@BenBE BenBE added support request This is not a code issue but merely a support request. Please use the mailing list or IRC instead. Linux 🐧 Linux related issues labels May 26, 2024
@natoscott
Copy link
Member

@webcaptcha are you using the default sampling interval (1.5s) or something more frequent?
Looks like you have over 2000 processes running there - visiting each in /proc does take a small amount of time and it all adds up. You might find some additional insights by adding the UTIME and STIME columns and observing htop there as well (I expect you'll see much higher kernel time than user time).

@BenBE
Copy link
Member

BenBE commented May 27, 2024

Can you provide a copy of your htoprc configuration file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux 🐧 Linux related issues support request This is not a code issue but merely a support request. Please use the mailing list or IRC instead.
Projects
None yet
Development

No branches or pull requests

4 participants