Questions tagged [htop]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1
votes
0answers
25 views

What is the real command to know the total real time CPU % status on Linux env and what is the ideal value

I understood that top and htop give a lot of info in real-time on the server status. But what really gives me the total CPU of the server? can I rely on the id column from top command: %Cpu(s): 1.9 ...
0
votes
0answers
36 views

Why does htop show kernel using 0% memory?

I'm running freebsd with ZFS and moving a few TB of data currently and while watching it "flow in" I noticed in htop that the kernel has been actively helping migrate a zfs snapshot into a pool and it ...
0
votes
1answer
47 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 ...
0
votes
0answers
31 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,...
1
vote
0answers
25 views

performance monitoring 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
0answers
24 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
2answers
84 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.
0
votes
1answer
33 views

Apache uses 9GB of RAM but htop only shows 2.7GB of used RAM. Why?

My website is very slow at some times of the day, and I'm on the quest of finding out why. I'm currently looking into Apache memory usage and I have 2 tools that are supposed to tell me how much RAM ...
1
vote
0answers
89 views

htop reports high CPU% for process with low CPU% in visualization

I am trying to get a practical understanding of load in a server application. The application reads a large volume of data on a TCP connection. When I examined CPU utilization with htop, the process ...
1
vote
0answers
25 views

Why one application is shown several times in htop? [duplicate]

I run a simple Python script in a docker container (single process, no multiprocessing or multithreading). When looking at it with ps (one instance): root@srv ~# ps -ef | grep homemonitor root ...
1
vote
0answers
23 views

Show workpload per processor, not per thread [duplicate]

I have a quad core processor with hyper threading. I want do display the workload per physical core (there are 4) but i am only able to display the workload per thread (there are 8). Is there any way ...
1
vote
0answers
91 views

htop - how can I enable the new metrics for “delay accounting”?

htop has some new metrics: PERCENT_CPU_DELAY (CPUD%) The percentage of time spent waiting for a CPU (while runnable). Requires CAP_NET_ADMIN. PERCENT_IO_DELAY (IOD%)...
0
votes
0answers
116 views

No locks available

I am using ssh logging on a remote server and ran a parallel computing application. I use htop to monitor the CPU usage. But after running a long time, htop exit and shows: htop: too may open files ...
2
votes
0answers
53 views

Using killall with -u and -o options

I wanted to confirm some details with the killall -o option. I tested it on some ssh connections I created under the user rick. First I printed a list of all of ricks ssh connections along with the ...
0
votes
1answer
180 views

In the command column of htop, sometimes the full path is displayed, and sometimes it isn't. Why?

Above is htop running in a terminal emulator. In the command column, some of the processes have their full path, eg. /usr/bin/python3, and some of them have just the command name, eg. caja, xonsh. ...
2
votes
1answer
129 views

Htop signals seem not to be sent on (K)Ubuntu 18.04

I am on Ubuntu 18.04 (Kubuntu), running through Konsole. I have a node process I can see in htop if I F4 and search for node. I highlight it and use F9 to send it a signal (tried SIGINT, SIGQUIT, ...
3
votes
1answer
681 views

htop / top with specifying process name filter on the command line - at program startup?

I'm on Ubuntu 18.04. I'm already aware that I can start htop, and then hit F4 for filter, then type or paste a process name search query (say, gphoto2 for looking for gvfs-gphoto2-volume-monitor....
1
vote
1answer
69 views

Distribution of threads among CPUs?

lscpu gives: Thread(s) per core: 2 Core(s) per socket: 32 When running an intensive 32-threads process, why does htop show almost 100% CPU activity on #1-32, but very little activity on #33-64? ...
1
vote
1answer
108 views

What is pool in htop? [closed]

What is DedicatedWorker and pool? How can I see their thread and source in bash for instance if I want to know where pool is getting initiated and on which port it is running? As shown in the image, ...
0
votes
1answer
447 views

htop - why does cpu% much higher than cpu core %?

So I have htop running on my RHEL 7.5 64-bit and noticed something I've not seen before. I have 4-core and it shows that the % used fluctuates but never over 95% for each one. However, when I look ...
0
votes
1answer
426 views

htop and crontab

I have a crontab like this for root user: 9 17 * * * TERM=xterm /bin/bash /root/htop_stat.sh htop_stat.sh: /usr/bin/echo q | /usr/bin/htop -C | /usr/bin/aha --line-fix | /usr/bin/html2text -width ...
1
vote
1answer
212 views

Aggregate usage stats by user

I'd like to look at the aggregated usage information at a user level. Basically hoping for a tool similar to htop but with the option to sum up all the processes for a user, for every user.
0
votes
1answer
62 views

How to record PID and its command every 15s?

For troubleshooting purpose, I'd like to record PID and its command every 15s and write them to a text file. The desired output: TimeStamp, PID, Command
3
votes
1answer
1k views

ps -a fails to find a process which is running

I could find a process named typora from htop but I cannot trace it from ps or pstree $ ps -a | grep -i typora 9696 ttys003 0:00.01 grep -i typora $ pstree | grep -i typora | |--- 09713 ...
4
votes
1answer
1k views

Top showing virtual memory usage of hundreds of gigabytes

On a new virtual machine, top shows that a process of mine consumes 100 GB of virtual memory. I've read that it's possible because of overcommit, however, it's a bit too much. I've never seen anything ...
1
vote
1answer
488 views

htop - See/Filter all the instances of a binary

I have a binary that I will be running multiple times in parallel, each instance executed with different input from the command line. I wanted htop to list only these processes so that I can compare ...
0
votes
0answers
166 views

htop interpetation of multiple entries per process

In the following htop snapshot, what is the meaning of multiple entries of the same process (in terms of command line, not pid) e.g. what is the meaning of having say more than 7-8 firefox entries ...
1
vote
1answer
285 views

Running Script via Crontab With Different Result?

I have the following script: #!/bin/bash /usr/bin/echo q | /usr/bin/htop -C | /usr/bin/aha --line-fix | /usr/bin/html2text -width 999 | /usr/bin/grep -v "F1Help\|xml version=" > htop.txt It just ...
2
votes
1answer
75 views

Looking at htop, I see a process associated with a tab in firefox that isn't open. What gives?

Earlier today I was ordering a yard sign for a local politician, via their website, through Firefox. Just now I was doing some work in R, and checking htop to make sure I wasn't going to make my ...
0
votes
1answer
474 views

htop summary only display

Is there a way to run htop but display only the graphs (I don't want to see the individual processes)? I saw this question which seems to suggest no - I'm wondering if that has changed.
2
votes
1answer
434 views

Htop sorting CPU% column incorrectly

Sometimes when I'm trying to diagnose what process is hogging all of my laptop's resources, I notice that htop will sort the CPU% column incorrectly. Example below: The “CPU%” column is highlighted ...
1
vote
0answers
62 views

What is “!!” command shown in top result

I run two drupal 8 websites on an amazon ec2 instance. They are portfolio sites. below is server details. [ec2-user@ip-xx-0-0-xx ~]$ uname -a Linux ip-xx-0-0-xx 4.4.15-25.57.amzn1.x86_64 #1 SMP Wed ...
2
votes
0answers
22 views

How to check a process is running in which core? [duplicate]

I have a very computationally intensive job(single threaded) running in my system, and htop is showing one of the core is ~100% utilized. Obviously, the job is scheduled to this core. But, I am ...
0
votes
0answers
133 views

Why does htop start so quickly?

I tried to read info about processes from /proc/ just like htop and top do. It seems like the value for "CPU%" in htop or top is calculated by summing up the values utime and stime in the stat file ...
1
vote
0answers
667 views

Interpreting memory usage in htop

Trying to diagnose a memory issue using htop. As can be seen on the Mem-bar at the top, 9.05 out of 9.5 GB is used. Question 1: How do I determine what's eating up all my memory? The output from ...
2
votes
0answers
248 views

htop: any way to see a sorted tree view from a sub level?

When using htop, I generally find that viewing process sorted by RES makes most sense when looking for performance and other issues in macOS. One problem I have is that Google Chrome (and other ...
4
votes
1answer
1k views

Why does htop shoot to 100% CPU upon opening?

Whenever I open htop, it shows CPU usage suddenly shooting up to 100% on a singe core. I take it gathering statistics for htop is not that intensive?! Why does htop suddenly show this spike?
1
vote
1answer
424 views

How to only show processes from single program in htop. Filter not working for VS code

I'm trying to filter the view in htop to only show the processes associated with Visual Studio Code. I launch VS code on a default install on Ubuntu with code . so that is the filter i'm using. In the ...
7
votes
1answer
4k views

Lots of red in htop — does that mean my tasks are tripping over each other?

I've read that the color red indicates "kernel processes." Does that mean little daemons that are regulating which task gets to use the CPU? And by extension, transaction costs in an oversubscribed ...
2
votes
1answer
1k views

Htop load average 30

I'm running an application which, for now, uses the bakery algorithm for syncronizing n processes, but with this method I do a lot of busy waiting on my CPU, in fact as you can see from the title, I ...
1
vote
0answers
424 views

How to programmatically change background color in htop

Is there anyway to programmatically change the background color in htop? When system load reaches a certain threshold, I'd like to change the color from the default black to, say, orange or red, to ...
8
votes
3answers
3k views

How to change the layout of the CPU meters in the htop?

Why does the same version of htop have so different layout of the CPU meters? How to switch between the layouts? Layout 1 htop --version htop 2.0.2 - (C) 2004-2018 Hisham Muhammad Released under the ...
0
votes
1answer
480 views

`ps` showing much higher ram usage than `htop`

I usually monitor my server resource usage. I am using htop for monitoring. When running htop the memory usage is 1.3G, which is fine for me. But I tried to view the memory used by each process. For ...
0
votes
2answers
177 views

Overlaying text onto of htop output

How do you filter the output of a constantly updating bash command so that text is overlayed on top of the output? I'm using tmux to show multiple htop processes across numerous servers. ...
1
vote
1answer
65 views

When running multicore jobs, will I lose performance if system load averages above the number of cores?

I do a lot of statistical analysis with R, and heavily utilize large multicore instances on AWS. Mostly for hyperparameter searches, cross-validation, and bootstrapping. Say I have an instance ...
0
votes
1answer
328 views

most information of htop output disappears

I got this problem since this morning, htop gives following outputs: Most information disappears, does anyone know what I did wrong for this? Thanks! Edit: Here are a few things I tried: remove &...
1
vote
0answers
447 views

htop shows different number of processes for Chromium browser on Linux vs FreeBSD

htop output on a Linux machine shows lots of processes for Chromium browser while it only shows few processes for Chromium on FreeBSD. Why is there any difference? Linux: FreeBSD: Also, my ...
2
votes
0answers
160 views

How can I tell if my GPU is a bottleneck?

I already know of utilities like htop that can be used to (roughly) tell if a process is primarily bottlenecking at disk read/write speeds, network IO, not being parallel, or being parallel but ...
1
vote
0answers
937 views

Kill running process

I own some old processes on a shared compute server. They consume a lot of CPU and according to htop they're in the running-state: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ ...
0
votes
1answer
331 views

How does one “nice” a PID via htop after the process has begun?

Let's say I'm running a multicore process. How do I "nice" this via htop after submission?