htop is an interactive process viewer for Linux. It is a text-mode application (for console or X terminals) and requires ncurses.
Questions tagged [htop]
126 questions
0
votes
0 answers
Can't write a simple program to force hard page faults
I want to experiment with hard page faults so I need a program to produce them and some tools to profile what is happening. However, every program I find/write produces no hard faults.
This is a typical program that should do the trick. Alloc a lot…

averysimpleman
- 1
- 1
0
votes
1 answer
Several node instances being created for a simple Hello world program
I am very new to Javascript and NodeJS.
I was running a simple helloworld programs as follows
Program 1
const durationInSeconds = 10;
console.log('Hello World');
setTimeout(() => {
console.log(`Program has been running for ${durationInSeconds}…

Joe Race
- 178
- 10
0
votes
0 answers
How to tell if my program is running on cores and/or threads (slurm/mpirun, htop)
I am attempting to run a parallelized (OpenMPI) program on 48 cores, but am unable to tell without ambiguity whether I am truly running on cores or threads. I am using htop to try to illuminate core/thread usage, but it's output lacks sufficient…

mkasemer
- 1
- 3
0
votes
0 answers
One microservice running as multiple processes
I have deployed a Java based micro-service on a 16 core linux machine.
When I run htop command, I see the microservice listed 10-14 times with different PID but all the values in the remaining columns like (USER, PRI, NI, VIRT, RES, SHR, S, CPU%,…

Ankit PrabhatKumar
- 53
- 5
0
votes
0 answers
Logging HTOP to a file with condition
I need to log HTOP output to a file
log top 5 process.
Log only if the overall CPU usage exceeds 10%

sha
- 11
- 2
0
votes
1 answer
how can i create a splitted variable output for a bash program, like htop does to show variable outputs on different sections of the terminal
im trying to write a bash script and i want it to be able to divide the screen in 2 sections and show a message on one of them and the output of a command in the other without having to split the terminal window just like htop or nvtop. I looked it…

Piyayo9
- 1
0
votes
1 answer
Aggregate Top CPU Using Processes
When I run top -n 1 -d 2 | head -n 12; it returns processor usage for some processes sorted by %cpu desc as desired, but I'm not convinced that the results are aggregated as they should be. I'm wanting to put these results in a file maybe like
while…

lmat - Reinstate Monica
- 7,289
- 6
- 48
- 62
0
votes
0 answers
Gitlab CI job's script runs multiple time
I have only one job in Gitlab CI:
develop:
stage: deploy
tags:
- intellect
only:
- develop
before_script:
- npm i
script:
- ng build --output-path /var/www/oko-front-develop
after_script:
- echo "Deploy test…

Narrador
- 33
- 4
0
votes
1 answer
Trying to get normalized CPU usage for node process
I'm trying to calculate the normalized cpu percentage for my node process. My goal is to get it to match the output that I have in my htop for the pid but I'm unable to do so. My code is below along with my htop output.
import { cpuUsage } from…

pythonNovice
- 1,130
- 1
- 14
- 36
0
votes
0 answers
CPU usage at 100% when running SMACH state machine in ROS
I currently have a python node that runs a Smach state machine (library linked here: http://wiki.ros.org/smach). I'm using ROS noetic.
The state machine starts in an IDLE state which looks like this:
class Idle(smach.State):
def __init__(self):
…

BlazeRunner738
- 81
- 1
- 8
0
votes
1 answer
Passing processes into Docker container
let's say, I'm trying to get 'visible' all processes on docker host inside my container.
Is it possible to pass they in, so ps or htop could make them printed?

Andrew
- 13
- 4
0
votes
0 answers
debugging a CPU creep issue
I am investigating a CPU creep that happens on my machine. Below it the htop output screenshot.
]
The htop output shows multiple entries for each application. I am assuming that it is one for each thread. Is my assumption correct ?
One of the…

liv2hak
- 14,472
- 53
- 157
- 270
0
votes
1 answer
Htop cpu bar red, 100% kernel time
I found some similar topics but no helpful solution was found. Since I have some more information to provide, I opened this issue.
My PyTorch script frequently gets stuck on a training server.
Htop shows that there is only one green CPU bar while…

wstcegg
- 141
- 1
- 9
0
votes
1 answer
Difference between a "worker" and a "task" for concurrent.futures.ProcessPoolExecutor
I've got an "embarrassingly parallel" problem running on python, and I thought I could use the concurrent.futures module to parallelize this computation. I've done this before successfully, and this is the first time I'm trying to do this on a…

Drphoton
- 164
- 9
0
votes
0 answers
too many celery processes running
I have a tornado application with a celery application initiated like this.
celery worker --app=pluto -l INFO -Q pluto -c 4 -Ofair --logfile=pluto-celery.log
The application is eating lot of memory, when I do an htops i see a lot of celery…

vijay shanker
- 2,517
- 1
- 24
- 37