Questions tagged [htop]
The htop tag has no usage guidance.
155
questions
0
votes
0
answers
31
views
htop shows lower memory consumption than free -h or top
I have a laptop with Artix Linux installed. When I check my RAM usage using htop, it shows significantly lower memory usage than free -h. Here's an example:
htop:
Mem[||||||||||||| 1.45G/7.60G]...
0
votes
1
answer
33
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
25
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
29
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 ...
0
votes
1
answer
63
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 ...
1
vote
1
answer
367
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
284
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
521
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
41
views
How to change the bars in htop
How can I change the bars symbol in htop | to something more visible like. █ ?
I did find configure instructions for colors and the measurements but not how to change this symbol.
0
votes
0
answers
452
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
96
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
201
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
26
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 ...
2
votes
1
answer
343
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 ...
1
vote
1
answer
2k
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 ...
11
votes
2
answers
3k
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
456
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
452
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 ...
5
votes
1
answer
7k
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 ...
2
votes
0
answers
1k
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
906
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
362
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
467
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 ...
0
votes
1
answer
1k
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
131
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
677
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
75
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
789
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 ...
1
vote
1
answer
935
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
130
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 ...
1
vote
1
answer
446
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
93
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?
2
votes
0
answers
659
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
48
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
40
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
2k
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
236
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
345
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 ...
2
votes
0
answers
643
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
995
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 ...
3
votes
2
answers
319
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(...
2
votes
2
answers
382
views
Cumulative resource usage
I'm managing a few compute servers w/ roughly 20 users each. I'm using htop to view current resource usage, however it would be very helpful to have a log of a specific user's cumulative memory and ...
1
vote
1
answer
2k
views
Why htop shows no use of IO when iotop does?
I just started to pvmove --alloc anywhere on an luks2 encrypted PV.
The commands takes a long time, and as expected, in iotop I can see the commands invoked for this operation are taking a fair bit of ...
0
votes
1
answer
2k
views
pidstat %CPU vs htop %CPU of a process
I'm using the pidstat to monitor the cpu usage of a process and it shows 100%. For the same process the htop or top shows 200% for the same process.
The system has 16 cores, and the process i am ...
0
votes
1
answer
421
views
htop inaccurate on macOS
I'm trying to monitor the resource usage on an iMac 'remotely' (it's actually in Target Display Mode), so I installed htop via Homebrew.
The problem is, htop doesn't seem to be accurate in ...
0
votes
1
answer
2k
views
monitoring a process each 1 sec and directing output to a file
I have a task in which I have to analyze a file transfer between a ftp client and a server.
I know about htop command.
If the file transfer takes 15 secs, then I want the htop command to run each ...
2
votes
1
answer
2k
views
Is there a way to collapse the list of processors in htop?
Now that I have a computer with 64 processors, I have a real display problem with htop.
When I look at the screen in my console, all I see are the 64 processors and nothing about what's running (well,...
4
votes
1
answer
3k
views
How to monitor the performance of "iptables" kernel module?
I would like to know how much CPU / memory my current iptables rules consume.
I have tried looking in ps and htop, but even with kernel threads displayed and did not see anything related to iptables.
...
0
votes
0
answers
662
views
How does htop calculate times? (Impossible times shown)
I was running what was supposed to be a small make job on a small node in our cluster, but a sorting process seemed to be overwhelming the allocated RAM, so I killed it after 20 hours (same jobs on ...
2
votes
2
answers
1k
views
How to show only processes which consume more than certain % of memory using htop
Is there a way to show the processes using htop which consume say > 10% or CPU? I am a bit overwhelmed by the huge swaths of information.