Questions tagged [top]

Command-line application for monitoring running processes.

Filter by
Sorted by
Tagged with
0 votes
0 answers
34 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
64 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
  • 163
0 votes
1 answer
41 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
0 answers
17 views

Snap applications do not startup randomly

There are some applications like firefox and chromium, spotify that are now recommended to be installed from snap. When I do that on ubuntu 20.04 and ubuntu 22.10, they randomly stop launching. Win-...
Tatty Man's user avatar
0 votes
1 answer
39 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
133 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
0 votes
2 answers
612 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
49 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
567 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
188 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
531 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
228 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
43 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
23 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
237 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
848 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
500 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
107 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
144 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
40 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
  • 163
0 votes
0 answers
627 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
2k 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
3 votes
2 answers
157 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?
Dan's user avatar
  • 143
0 votes
0 answers
79 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,413
0 votes
2 answers
213 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
91 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 ...
John's user avatar
  • 121
3 votes
1 answer
2k 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
2k 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
827 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 <...
Mian Ahmad's user avatar
1 vote
2 answers
4k 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
123 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
91 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
196 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
226 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
121 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
903 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
680 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
  • 455
2 votes
0 answers
496 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
  • 6,552
0 votes
2 answers
1k 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
407 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
470 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
729 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
600 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
8 votes
2 answers
14k 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
  • 191
0 votes
1 answer
449 views

what happens when pressing Enter when "top" command is run

when I run top, I see list of Linux processes. but when I press Enter, it will change and I don't understand what happens. Also when I press other button f,g and h somethings happens. please explain ...
Amir reza Riahi's user avatar
2 votes
2 answers
673 views

KSysGuard Reporting Memory Usage Incorrectly

A couple of times recently I've noticed my laptop running a bit slow and the disk light flickering a lot. It's an i7 with SSD and 12GB RAM, so I'm not really expecting much slowness when just ...
flim's user avatar
  • 31
2 votes
3 answers
877 views

cutting 'used memory' from top command

Using the top -b -n1 command I can get the resources utilised by my system for that instance. However, I actually need specific values out of it. I need things like, overall CPU usage, overall memory ...
resound's user avatar
  • 23