Questions tagged [htop]
The htop tag has no summary.
164 questions
4
votes
1
answer
430
views
What are numeric users that otherwise don't seem to exist in htop?
Result from htop showing a user called 524288:
[Main] [I/O]
PID USER PRI NI VIRT RES SHR S
49724 newbyte 20 0 227M 2492 2224 S
49726 524288 20 0 1780 1344 1156 S
...
0
votes
0
answers
29
views
Starting htop from konsole vs launcher acts different - Slackware 15.0 KDE
I want to ask mostly out of curiosity to understand, what detail can have impact on behavior of htop program (or any other in the future) in following case. By default I had htop v3.1 installed, but ...
0
votes
1
answer
327
views
Command-line option to disable too many processes in htop
By default, htop shows many more processes than other tools (top, ps). The solution is to press H, as mentionned in Why are there many processes listed under the same title in htop?, to get the "...
0
votes
1
answer
272
views
How to analyse cause of memory usage not shown by htop
How can I best debug the following issue from here on?
I have a
python application
running in a podman container which has
plenty disk I/O due to a numpy memmap of two huge files, one input file ...
1
vote
0
answers
268
views
CPU cores at 100% despite very few processes using the CPU
On my system htop is constantly showing 100% load on four out of the eight logical cores on my system (system specs below). The issue is that it's a freshly installed Ubuntu Server 22.04 and there are ...
0
votes
1
answer
164
views
How do i get the bash command below to stop echoing these bash alias not found errors?
I think these bash commands were created with the intention of increasing htops refresh interval, cant remember where i found them. However I have since figured out all that was needed to do to get it ...
2
votes
1
answer
219
views
How to disable logical processors in OpenBSD?
It is well known that OpenBSD disables hyper-threading by default. However, htop shows 16 CPUs: 8 online and 8 offline, which takes extra space on the screen and is not very informative.
Moreover, ...
0
votes
1
answer
128
views
Discrepancy between values in htop and /proc/meminfo
From the author of htops answer
https://stackoverflow.com/questions/41224738/how-to-calculate-system-memory-usage-from-proc-meminfo-like-htop/41251290#41251290
I got to know that the total memory in ...
0
votes
0
answers
283
views
How to identify which process is causing a high memory consumption?
I am running a virtualized Arch Linux machine.
From time to time, it shows a high memory consumption and I do not know the reason because basically, the machine is sitting idle.
# ps aux --sort=-%mem ...
4
votes
0
answers
2k
views
Can I reset htop settings to defaults *within htop*
I change htop settings by accident from time to time, and sometimes I don't know what I've changed. It's really easy when just about every key changes a setting.
Is there any way to reset the ...
1
vote
0
answers
145
views
htop always show one cpu usage full [closed]
I have a server with two cpus (24 core * 2), recently, I noted that htop always report one cpu is fully usage
But I cant find any threads with highly cpu usage by htop, top or ps -ef
I have tried:
...
0
votes
1
answer
401
views
Show I/O rates of all processes in htop?
htop 3.2.2 running as a regular user only shows I/O rates (IO_RATE/IO_READ_RATE/IO_WRITE_RATE) for some processes and "N/A" for others.
Running as root shows I/O for all processes.
How can I ...
0
votes
1
answer
531
views
Multiple green lines in Htop: what do they mean?
htop gives unlimited multiple green lines under white line on linux.
What do multiple green lines mean?
And how can I prevent it?
It seems that each takes a certain amount of memory
1
vote
0
answers
182
views
DELL R730XD 256GB memory but just showed 251GB on linux with command `free -h` and `htop` , why?
A DELL R730XD server with 32GiB * 8, totaling 256GB of memory, is correctly recognized as 256GB in the BIOS. When checking the memory information using "dmidecode -t memory" in Linux, the ...
2
votes
2
answers
569
views
htop - more space for CPUs when many CPUs
I like htop a lot, with fewer CPUs there is a bar next to each CPU showing how much it is utilised, however at 127 CPUs the usage bar is gone... I would like to know how to spread the CPUs over the ...
13
votes
1
answer
4k
views
How to switch htop tab?
I recently see that there is new "I/O" (blue one) on htop, how to switch to that tab?
1
vote
1
answer
720
views
How to interpret the colors in htop's memory bar? [duplicate]
I have the following htop output:
What are the green, blue, and yellow bars respectively in this memory output?
3
votes
2
answers
590
views
Why does `htop` display `$'\t'` as `?` in `sort` command?
I was running a pipe command with one section being the following:
sort -t $'\t' -T . -k1,1g
When I was monitoring htop I saw this instead:
What is the reason behind this? Does this mean my command ...
0
votes
0
answers
2k
views
htop shows more kthr than Tasks
If htop shows more "kthr" than Tasks for me, how to interpret that? Shouldn't Tasks include all kernel threads, meaning it should always be Tasks >= kthr?
Ubuntu 18.04.5, htop 2.1.0
0
votes
1
answer
185
views
How to view quickly spawned/killed processes on a Fedora Linux machine?
On Windows, there is a program available for download which is part of what's called the sysinternals suite of tools. This program is called Process Explorer 64 aka ProcExp64. The program is useful ...
0
votes
2
answers
950
views
Find out which process is using CPU 0
I've applied CPUAffinity to certain systemd services. I've checked Cpus_allowed_list from /proc/PID/status, and it works fine.
Now I want to find out which process is using CPU 0 or CPU 1, how can I ...
0
votes
0
answers
62
views
"java -Xshare:auto -Des.netsworkaddress.cache.ttl=60..." What is it? Can I unistall it in some way?
I am reviewing a web service with Ubuntu 18.04.6 that is reported to load the sites mounted in it so slow. Reviewing the process running with htop, I detected that much of the memory is used by ...
3
votes
1
answer
723
views
How can I use htop or top to monitor CPUs' usage and output the infomation to a file?
I want to monitor the CPUs' usage when a program is running. I came out with the idea, that htop has the CPU usage information on the top. I wonder if I can somehow run htop, make it refresh every 0.1 ...
3
votes
1
answer
8k
views
How to let htop display as much as possible cores in one row
My workstation have 256 logic cores, and it seems htop can only display 4 cores usage in one row. So there are 64 rows to display cpu usage, thus I can't see any process information in htop. And I do ...
17
votes
2
answers
6k
views
Why Google Chrome is reserving Terabytes scale virtual memory?
My system was running slow recently and I checked htop to identify resource consumption. RES Column is 213M which is quite normal for chrome. I was surprised after looking at VIRT column, Google ...
4
votes
1
answer
991
views
ctrl+z doesn't send htop to the background
I'm using zsh on macOS 12.4, apple M1.
When I run htop normally using the command htop and use ctrl+z it behaves as expected and sends the process to the background. I can evoke it again using the fg ...
0
votes
1
answer
1k
views
Why does htop show half of the memory that the same machine on windows shows?
was out exploring in the binary jungle and found that my htop on Ubuntu WSL2 showed half the memory that windows shows. So, I'm running a 32GB machine, but htop only admits it having 16GB. Anyone know ...
7
votes
2
answers
9k
views
What is this color bar for in htop page
I have a 48-CPU UBUNTU and it has loaded with lots of processes. Here is the htop page,
At core section, the green bar means the usage from normal user, the red one represents the kernel usage, but ...
3
votes
0
answers
2k
views
Why htop shows that total % CPU usage of processes is more than 400% on a 4 core/4 thread system?
I'm running some intensive tasks on my Linux (Manjaro) server and the CPU is at 100% of all its cores, but I saw that the percentages of CPU use per process sum to a much higher number than 400% on my ...
1
vote
0
answers
2k
views
How can I hide all the idle processes in htop?
top hides all the idle processes with the -i flag. From man of the top:
PERFORMANCE/ACCURACY TRADEOFF
Calculating detailed memory statistics is fundamentally resource-intensive.
To reduce the ...
1
vote
1
answer
756
views
Minimize htop thread window?
I'm on a system with 48 threads and the view for usage is taking up 4/5 of the vertical screen space. Is there a way to toggle the CPU usage window to just view the active PIDs?
1
vote
1
answer
757
views
Are these threads in htop using any resources?
My node application spawns ffmpeg processes. In htop, there are a bunch of ffmpeg processes I would have expected to have ended but they are still shown in htop. The threads in green are the process ...
2
votes
1
answer
3k
views
top shows different pid for threads of same process. How to fix it?
when i do a ps -efT (where -T = Show threads, possibly with SPID column.), i see all the threads have the same PID, which is as expected.
myroot 24958 24958 7942 0 20:20 pts/12 00:00:00 java -...
0
votes
2
answers
204
views
List Running Commands of All Windows
You can list the process ID of each widow with this command:
wmctrl -lp
Does there exist a command that shows the running command of each window (kind of like htop has a column for "Command"...
1
vote
1
answer
1k
views
Filter processes by state in htop
Is there a way to filter processes in htop by their state — e.g., only show running processes (state R)?
0
votes
1
answer
107
views
What is the `/` command displayed by htop?
I’m running FreeBSD 12.1-RELEASE on my home server.
From time to time, the server’s HDDs thrash for hours on end, even though the server itself should be idle. (I have no cron jobs scheduled, and I ...
-1
votes
1
answer
2k
views
Ubuntu: server is doing nothing, but memory is full
My server is actually on this state:
I am executing htop as root, so I'd see everything.
Sorting by MEM%, I see al processes under 1%. And this even in tree view).
But what does it mean when memory ...
7
votes
2
answers
3k
views
how to make the htop wrap command line
Now I am using htop to show the process of my server, but I face a problem that when the command is very long, I just see part of the command and I did not know the full information of the process, is ...
0
votes
0
answers
257
views
htop command displays 996GB instead of 1024GB for RAM
I have a little issue that I can't understand.
I have 8x128GB sticks of RAM, which makes 1024GB of RAM.
But the command htop displays 996G and not 1024G as expected.
You can see the following ...
2
votes
1
answer
1k
views
Unclear htop output when measuring IO usage of a dummy process
I write a simple test.sh script which only does this: while true; do cp ./target-file ./target-file.tmp; done wherein target-file is created using dd if=/dev/urandom of=target-file bs=1M count=100 and ...
0
votes
0
answers
162
views
htop - why duplicate line when I run program?
I used htop to check the system monitor.
I run the program app.py but I saw 2 line display app.py run.
Is my app.py duplicate run?
3
votes
1
answer
1k
views
htop not showing threads of processes on Mac
I am running a java program from inside IntelliJ IDEA (an IDE) on a Mac. The program spawns 2 threads.
I have installed htop and I am trying to see the process along with the spawned threads (they are ...
1
vote
0
answers
58
views
What does state "I" mean in htop? [duplicate]
I have recently observed an undocumented state "I" displayed in htop output.
The default help message doesn't disclose any information about this hidden state.
Given all processes that ...
0
votes
1
answer
59
views
Run program without permission
I'm using Debian 10, and today I suddenly realize my CPU up to 100 percent and I use htop to saw which process take action, and I saw my system try to unrar a file in my download directory but I don't ...
7
votes
1
answer
3k
views
htop CPU% at ~100% but bar graph shows every core much lower
I'm using Debian 9 to host a game server. Specifically, I'm hosting about 10 instances of the game Don't Starve Together.
The other day I noticed one of those instances (which was getting a lot of ...
0
votes
1
answer
485
views
Can htop show more than 4 characters of CPU% data?
I'm trying to measure the CPU% consumed by my app on a multi-core machine, meaning htop CPU% reports can go over 100%. I'm trying to get a simple read on CPU usage difference when I run my app in one ...
1
vote
1
answer
697
views
How to use top or htop to gather filtered time series
My goal is to track the resource usage of a certain command in a easily parse-able time-series. Here's an example where I'm tracking all the node commands for 3 batches:
top -b -n3 | grep node ...
3
votes
0
answers
1k
views
hidden(?) process is taking 20GB of RAM Ubuntu
I have a PC with 64 GB of RAM in my work. I am noticing that there is something that is taking a lot of my memory, sometimes 20 GB or even more than 40 GB. I could not find which process is ...
0
votes
1
answer
1k
views
Why process is using more than 100% of CPU
I need to know why those processes are using so many CPUs. Are there any commands or tools to check?
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND ...
5
votes
2
answers
503
views
What are these threads named disk$0, disk$1, etc.?
I am using Ubuntu 20.04 LTS. The kernel version is 5.4.0-42.
Here is an example program:
// mre.c
// Compile with: cc -o mre mre.c -lSDL2
#include <stdio.h>
#include <SDL2/SDL.h>
int main(...