Skip to main content

Questions tagged [top]

Command-line application for monitoring running processes.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

How to monitor system usage when running a script over multiple cors/threads?

I have written a specific script in Ubuntu 22.04 (it should also fit ti be run in 24.04) to monitor some system parameters while a specific command is running. The command in question is running ...
Assa Yeroslaviz's user avatar
1 vote
0 answers
58 views

strange process take a lot of CPU ! virus?

I have Ubuntu 22.04 server, running Apache, MariaBD, PHP, and a web app, facing to the Internet. Recently, the server always run 99% CPU, top command give the output as attached picture below. The dev ...
general2000vn's user avatar
0 votes
0 answers
127 views

How to identify where IOPS on zpool is coming from?

I am running a zpool which seems to always carry a load of ~300M writes. I am having trouble identifying why the load is so high. In the screenshot, i run zpool iostat 30 and observed the load ~300M ...
Trevor K Smith's user avatar
0 votes
1 answer
332 views

Why is top showing such massive cpu usage numbers?

I just installed 23.10 a few days ago and this started this morning. I tried to run git status and it seemed to hang. Then VSCode had to unexpectedly close. Then Chrome said it's taking a while so ...
mLstudent33's user avatar
0 votes
0 answers
56 views

Why sum of this process CPU(%) is not equal to total cpu(%) utilisation in top output

In the attached image of top command output, you can see the idle is 53.3% means CPU utilization is 52.7% but, sum of CPU% of all the process listed (Image cropped for CPU% > 0.0) is more than the ...
mallo's user avatar
  • 1
-4 votes
1 answer
540 views

Understanding top command output

Below is screenshot of top command output. I want to understand memory and cpu information in this top's summary view. I have following doubts: Are the numbers for us, sy, ni etc in %Cpu(s) in third ...
RajS's user avatar
  • 183
0 votes
1 answer
150 views

How can I remove (uninstall) top (table of processes)

Is there a way to remove (uninstall) top (table of processes)?
Chairman Meow's user avatar
0 votes
1 answer
365 views

How to manually give configuration file to top command?

I know that top behaviour can be changed interactively and can be stored as a cfg file as toprc and it will use that cfg automatically. Is there a way to write and feed the configuration file (stored ...
Bharath S's user avatar
-3 votes
1 answer
706 views

Why sum of all process CPU(%) is greater than total cpu(%) utilisation in top command [duplicate]

In a top command instance, the CPU utilisation (100-idle) was 14% but the top most process "Chrome" alone consumes 253%. I am unsure of how the chrome process consumes CPU more than 100%. ...
Bharath S's user avatar
1 vote
2 answers
2k views

Why sum of all process CPU(%) is not equal to total cpu(%) utilisation in top output

In the attached image of top command output, you can see the idle is 96.8% means CPU utilisation is 3.2% but, sum of CPU% of all the process listed (Image cropped for CPU% > 0.0) is more than the ...
Bharath S's user avatar
0 votes
0 answers
69 views

Very high values in top command Ubuntu

I am getting very high VIRT values of applications in the top command even though I just turned on my laptop. Also the laptop's fan is turning on very frequently even with just a browser and VSCode ...
Ayush Dhiman's user avatar
1 vote
0 answers
3k views

How is possible to clear kswapd0 with high CPU consumption?

I use Ubuntu 20.04 on my computer. When I use top -i command, I see one of the users consume a high amount of CPU for kswapd0. To terminate this, first of all I used ps -ax| grep kswapd0 and killed it....
Martin's user avatar
  • 11
2 votes
1 answer
396 views

Two startup daemon processes working together in wsl2?

We normally know that WSL2 normally do not have systemd it generally starts on init daemon! But recently from year 2022 we can also use systemd by enabling the sysboot to systemd in wsl.config. So I ...
Rahat Bin Taleb's user avatar
1 vote
1 answer
585 views

On Ubuntu, I don't know if this is normal but top command is showing a lot of activity. The downloads I installed are in a pic I uploaded below

Top command shows this: This typing for each picture thing is complicated because it's jumbling things together. But I did what I could to clean it up. I downloaded like 15 programs including blender,...
Doc's user avatar
  • 29
2 votes
0 answers
555 views

PSI Full IO / PSI some IO meaning in htop

In the above screenshot, i examine a large white bar in the CPU Avg chart. Additional, i see PSI full IO/PSI some IO quite large. I assume the white bar is IO wait of some sort. What exactly does PSI ...
Trevor K Smith's user avatar
0 votes
1 answer
55 views

how to run the top command with 'm' already pushed?

I want to run top so that it opens as if you hit the m key, what I really want is this: How to run ''top'' command 1 time and exit? But I want to a) have the 'm' key hit b) sort by ...
user1130176's user avatar
0 votes
0 answers
31 views

getting disallowed error for top command

while entering top command from a script getting the below error: praveen.kumar@MUM:/home/admin$ top -b -n 1 -d1 |grep "Cpu(s)"| awk -F' ' '{print $2}'|awk -F' ' '{print $1}' top: -d ...
Praveen Kumar's user avatar
0 votes
1 answer
501 views

What is command "confighandler"?

When I run top on my Ubuntu, I see a weird process which is always taking up 8-10% CPU. The COMMAND column says confighandler. It runs under root. When I run which confighandler, it desn't return ...
Jardo's user avatar
  • 103
1 vote
1 answer
2k views

Finding out specific processes that are running php commands shown in 'top -i'

I have been scouring the forums to find the next step in analysing what process specifically is requesting the usage of a php command shown when running the top -i in an Ubuntu 20.04 server cli. After ...
Doopz's user avatar
  • 131
0 votes
1 answer
646 views

Finding CPU and memory usage after running specific file

After running the python file, how can I get CPU and memory usage information using the top command for this file? When I'm trying to find that, I wrote the base of code on my python file to know what ...
M.S's user avatar
  • 3
1 vote
0 answers
142 views

"free -g" and top reporting wildly different memory usage on MySQL server

I am aware of buffers, cache, swap, etc. but can anyone explain this one to me? First, Here's a TOP output sorted by memory usage. Note that MySQL is using 39.4% of the RAM in the system. Every other ...
Tony Maro's user avatar
  • 307
0 votes
0 answers
212 views

Ubuntu is very slow, due to these processes or other issues?

TIME+ COMMAND ------------------ 73:39.09 gnome-shell 6:39.58 kswapd0 7:20.54 kcompactd0 46:26.92 Xorg ...
Willow Lu's user avatar
0 votes
1 answer
51 views

Help me interpret this output from `top`

This is from a Raspberry Pi B+. I am not sure whether it is overloaded and pegged to the max or whether it's doing ok. Too much information.
pitosalas's user avatar
  • 173
0 votes
0 answers
783 views

Very high load even nothing is done

I have the below Ubuntu server hosted by a commercial hoster. The hoster says he has no clue. Attached a screenshot from top where can be seen which processes are slowing down the server. It's more or ...
Peter VARGA's user avatar
6 votes
1 answer
3k views

How to set workspaces in Ubuntu 21.10?

How can a row of six workspaces be set in the top panel in Ubuntu 21.10?
Jacek Karwowski's user avatar
2 votes
2 answers
220 views

Launch top with filters?

Is there a way to run top with these filters by default: filters: '%CPU>0.0' + '!COMMAND=top' ? Can I pass that via command line options?
d0g's user avatar
  • 133
0 votes
0 answers
93 views

Why is my Ubuntu server running many tmux server processes?

I'm running Ubuntu 21.04 on a Raspberry Pi 4B. I'm viewing top to monitor what's going on and it is showing at the moment 11 'tmux: server' processes. Tmux is running, showing one window containing ...
Forkbeard's user avatar
  • 2,453
0 votes
2 answers
662 views

How to infer top command VSZ & Resident memory numbers active usage / free?

I have two vm's one with 2vCPU , 4GB RAM and other with 4vCPU and 8GB RAM Now I have installed / ran the same application(k8s pods) with same memory , cpu allocations , requests , limits on both the ...
Mozhi's user avatar
  • 121
0 votes
0 answers
1k views

Overall CPU utilization% of 'htop' is smaller than a process' cpu usage

Because of my stupidity, I can't provide any screenshot of such phenomenon. My 2-core system's cpu utilization(which is output of htop command) is smaller than the cpu usage of a process. For example, ...
양석우's user avatar
0 votes
0 answers
130 views

Output of `top` command not saved to variable

I created the follow bash script, called ./notify-me.sh, in Ubuntu: #!/bin/bash emailmessage=$(top -b -o %CPU) echo $emailmessage But when I run this script by doing ./notify-me.sh and pressing the ...
learningtech's user avatar
3 votes
1 answer
3k views

System information disabled due to load higher than 4.0 but it ain't higher than 4.0

On one of my Raspberry PI's I got the following warning after login: System information disabled due to load higher than 4.0 But top doesn't reflect that (see screenshot), am I missing something?
Matthijs de Jong's user avatar
3 votes
3 answers
3k views

Find the total CPU usage on Ubuntu server version 20.10 without installing additional tools

I need to find the total CPU(s) usage of the server without installing additional tools. Do I understand correctly that the field id of the top command in CPU(s) line can help me with it? Can I do 100 ...
genichm's user avatar
  • 131
1 vote
2 answers
2k views

how to find the jobs run by each local users

I am interested in finding what applications/scripts are executed by each linux user. I can find the number of jobs run by a specific user with the following command ps -u <USERNAME> -U <...
drmaa's user avatar
  • 313
1 vote
2 answers
5k views

How to show actual memory usage instead of "%MEM"

In Linux, when using top to see how much memory a process is using, how do you force the thing to actually tell you how much memory things are using (instead of having it obfuscate the actual value by ...
davidtgq's user avatar
  • 123
0 votes
0 answers
147 views

How do I launch the network manager pop-up menu window displayed in attachment within Ubuntu 18.04 and LXDE?

I would like to know: What is the name of the program that manages the network icon on the top bar of Ubuntu 18.04 with LXDE? The network icon I meant gets highlighted with a red circle on the ...
thosecars82's user avatar
-1 votes
2 answers
154 views

How do I interpret output from "top" command? How do I see actual CPU load?

I thought top showed how heavy the load was on the CPU (& mem). Baffled by results showing >275% CPU usage (see output from top at the bottom), I read a bit in the documentation, and it looks ...
Aephir's user avatar
  • 19
0 votes
0 answers
240 views

unknown users when running top command

When I run top command there is 1 users listed but then other users are listed in running proecesses they are message+, kernoops, and syslog, I am trying to work out if my system is compromised but am ...
papercup's user avatar
0 votes
1 answer
311 views

top command till a process runs out

I'm running a process and I want to store its CPU usage. So I used top command { test_case.sh > out.log ; } && { sleep 2s ; x=`pidof test_case` ; top -p $x -d 5 -b > cpu.log ; } But the ...
Avinash Baldi's user avatar
0 votes
0 answers
166 views

Unknown user 2003 running haiduc command in my vps

There is an unknown user named 2003 running command haiduc on my vps when i run the command 'top'. However the user 2003 does not exist. Does anybody know what this is?
user1034912's user avatar
0 votes
1 answer
1k views

How to get (from terminal) total number of threads per core?

I want to know how can I get the total number of running threads per core (in the runqueue) in the terminal (to be used in a bash script)?
Michel Gokan Khan's user avatar
6 votes
1 answer
835 views

How to set memory usage sort in top command as default?

I want to sort the memory usage in top command as default. So that i do not have to sort in every i run top command. How to do that? Thanks in advance....
Zozzizzez's user avatar
  • 495
2 votes
0 answers
571 views

Context menu missing when right-clicking on top panel in Ubuntu 20.04

I did a clean install of 20.04 a couple of days ago and have been customizing my machine since then. When I right-click on the top panel, the context menu doesn't appear. I am used to using earlier ...
Scott Semel's user avatar
4 votes
2 answers
5k views

Check how many processor cores my Python code is running on?

I want to check how many cores my Python script is using. Suppose that I have this code: while True: print('Hello World!') When I run top, it gives the CPU, Memory, percentage in addition to ...
singrium's user avatar
  • 7,020
0 votes
2 answers
2k views

Calculate CPU usage from top command

I have to display the CPU usage on my application and update it in real time. I am using following command to get the CPU usage: top -b -n 2 | grep Cpu | awk '{printf "CPU Load:%.2f\n", $(NF-13) + $(...
Waleed Naveed's user avatar
1 vote
1 answer
1k views

How to investigate an unknown process called `frontend` pegging CPU all the time

As my laptop (Dell precision 16Gb, ubuntu 18.4) had been slower than usual, I had a look at top. Here I have a process, called frontend pegging 50% of the CPU. PID USER PR NI VIRT RES ...
SeF's user avatar
  • 113
0 votes
1 answer
437 views

Distance between icons

Anybody knows how to change distance between icons in top panel ubuntu 18.04? I need to do it smaller
Maksim Ryabchenko's user avatar
1 vote
0 answers
527 views

Ubuntu Studio running slow after some months

I am a Ubuntu Studio user and general Linux novice. I installed the latest Ubuntu Studio on my Dell Vostro 400 Q6600 quad-core, and it ran perfectly for many months. Now it's unusable. When I boot up,...
Colin R. Turner's user avatar
0 votes
1 answer
1k views

Cannot see process of service in top or ps

Status of my Postfix service is systemctl status postfix: ● postfix.service - Postfix Mail Transport Agent Loaded: loaded (/lib/systemd/system/postfix.service; enabled; vendor preset: enabled) ...
MrCalvin's user avatar
  • 403
0 votes
1 answer
958 views

Monitor number of running processor cores via terminal

I have a server where there are 144 procs and is being used by multiple people with the same account id. Is there any way I can see how many processors are free (in the terminal) so that I can ...
mitra's user avatar
  • 23
11 votes
2 answers
19k views

How to permanently set refresh interval for top command?

I'm just looking at the tutorials for top command and came to know that the refresh interval can be overridden by hitting lower case s on the keyboard while the top command is displaying information. ...
Underoos's user avatar
  • 221