-
-
Notifications
You must be signed in to change notification settings - Fork 439
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
Comments
The CPU percentage displayed is per core, so when you have 16 CPU core (or threads) active, the maximum would be 1600%. |
@webcaptcha are you using the default sampling interval (1.5s) or something more frequent? |
Can you provide a copy of your |
Same for me on Fedora and Debian. Even though I have 8C/16T, laptop at the summer just burns your knees, so you have to monitor what to close, and htop just shouldn't be running in the background. Not critical, but others do not experience high CPU usage by htop itself. I also did not find any relevant bug reports except this one. My thoughts at first was that this high CPU usage is just at this exact point of the time when it refreshes info, but top shows exactly the same with independent refresh rate. Here is mine Details
I did not changed default refresh rate, I have only added sensors info, CPU frequency, majfaults and "hide userland process threads" or something like that. |
Forgot to mention, my CPU is AMD too: |
Could you try to disable CPU frequency or CPU temperature and check whether the behavior persists. |
This comment was marked as spam.
This comment was marked as spam.
This fixes high load: Subject: [PATCH] Commented function
---
Index: linux/LinuxProcessTable.c
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/linux/LinuxProcessTable.c b/linux/LinuxProcessTable.c
--- a/linux/LinuxProcessTable.c (revision fc54b885ef75b8edacc4a9758f29b51e16025d34)
+++ b/linux/LinuxProcessTable.c (date 1725503862876)
@@ -629,6 +629,7 @@
* Read /proc/<pid>/maps (process-shared data)
*/
static void LinuxProcessTable_readMaps(LinuxProcess* process, openat_arg_t procFd, const LinuxMachine* host, bool calcSize, bool checkDeletedLib) {
+ return;
Process* proc = (Process*)process;
proc->usesDeletedLib = false; |
There are two reasons for reading
The problem with these is BTW not the routine itself, but that the kernel is slow in providing these information. The parsing of these lines is already heavily optimized to avoid slow libc functions where ever possible. |
Nice useful features! Can I disable them? |
Yes.
|
Unchecking "Highlight out-dated/removed programs (red) / libraries (yellow)" is the solution of this issue for me! |
For me unchecking "Highlight out-dated/removed programs (red) / libraries (yellow)" only reduces the cpu load. |
Sorry for some delay from my side. Here in Ukraine the life is funny |
Here is my config config
|
Does hitting Shift+H (disable showing threads) help? |
cpu consumption reduces by 2, was about 11-14, with shigt+h its 5-7 |
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.
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
The text was updated successfully, but these errors were encountered: