Questions tagged [top]
Command-line application for monitoring running processes.
159
questions
185
votes
1
answer
319k
views
What do VIRT, RES and SHR mean in the top command?
I've been learning about the top command. There are some terms on which I am confused. I need some clarification.
What are the WA, HI, SI and ST terms in the CPU(s) row, and also
VIRT, RES and SHR?
62
votes
2
answers
110k
views
What are the rcuos/rcuob processes I'm seeing in top?
I ran top, and I see lots of rcuos/rcuob processes. Here's a sample of top output:
top - 21:41:15 up 22 days, 19:20, 1 user, load average: 0.00, 0.01, 0.05
Tasks: 332 total, 1 running, 331 ...
52
votes
2
answers
97k
views
What is "cached" in the top command?
When running top, I get:
top - 09:10:52 up 18:37, 1 user, load average: 1.56, 1.33, 1.15
Tasks: 39 total, 1 running, 38 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.1%us, 0.6%sy, 1.0%ni, 92.5%...
35
votes
1
answer
15k
views
htop showing duplicate applications with very odd bizarre results upwards of 20,30,40 or more, see screen grab
I have attached screen shots of htop and it's bizarre results. Can anyone explain what is happening here? It shows this new copy.com app taking up like 500% of my memory if you count it up.
31
votes
5
answers
8k
views
How do I quit top without leaving the output on the terminal?
How do I get top to quit similarly to the way less quits, that is, not leaving behind its output on the screen?
This is the version I have:
procps-ng version 3.3.9
29
votes
2
answers
52k
views
How to run ''top'' command 1 time and exit?
Is there any switch to tell top command in order to one time scan the system and do not monitor it all time?
23
votes
2
answers
28k
views
top (table of processes) package on Ubuntu 16.04 LTS [duplicate]
When I run sudo apt install top, I get E: Unable to locate package top
I searched packages.ubuntu.com for top package on 32 bit Ubuntu 16.04 LTS, but there is none.
I wonder if it's correct or I'm ...
22
votes
2
answers
17k
views
Why don't the %MEM values in top add up to the total used memory?
I'm currently debugging performance issues with my VPS and for that I'm trying to understand which of the processes eat the most memory. Reading top, here's what I get:
Mem: 366544k total, ...
21
votes
1
answer
13k
views
Why doesn't htop display the same processes as top?
I have a home server sometimes running at a high CPU usage rate of about 50 to 70 percents.
In htop, my favorite process manager, I can sort the processes by CPU usage, but often there isn't any ...
20
votes
2
answers
8k
views
Why are some processes highlighted in top?
Why are some processes highlighted in top? Does highlight have special meaning? Thanks!
19
votes
1
answer
38k
views
How to force 'top' to show human readable values for %MEM RES and VIRT
How can I configure 'top' to show all values in human readable format instead of long numerics. I am using Ubuntu 14.04.
Sample output I am getting at the moment:
top - 11:39:56 up 14:46, 11 users, ...
18
votes
5
answers
40k
views
Find children of the process
is there any way to know, who are children of the specific process ? for example those children which their parent ID is foo ?
16
votes
4
answers
65k
views
add apps to top panel in ubuntu 12.04
Is there any way to add any app I wish to the top panel in Ubuntu 12.04? e.g, I have dropbox, mail, wireless and sound icons there. I'd like to add for example terminal, google earth or any app there.
...
14
votes
6
answers
96k
views
Getting cpu usage realtime
When I execute following command to get cpu usage , I get nice + user cpu usage.
top -b -n1 | grep "Cpu(s)" | awk '{print $2 + $4}'
Output:
14.5
Here I am getting problem is that the output ...
14
votes
1
answer
5k
views
GNOME system monitor and top showing different CPU usage
When I play a movie with SMPlayer (video:mpv) and I check my CPU usage with GNOME system monitor, it shows %4 or %5 CPU usage (1 second update interval), but htop shows %45 CPU usage:
top shows the ...
13
votes
2
answers
22k
views
How to echo output of a top into a text file?
I want to write batch or something, that will write output of top into a file on login.
I did top >> output-file, but it contains some strange character!
Can somebody give a simple tutorial ...
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.
...
7
votes
2
answers
6k
views
Why are memory statistics in top and htop different?
Whenever I use top and htop commands to see memory stats, they are always different as shown in figures. Which should I trust?
7
votes
1
answer
8k
views
How to find out which python script is using resources?
Can someone tell me how to find out which python script is using lots of system resources?
I can see with the 'top' command that a process called "python" is always near the top of the list.
2603 ...
7
votes
1
answer
4k
views
top like utility for network activity/ports by process
I'm looking for a utility to continuously monitor network traffic by process.
Something like top but instead of focusing on CPU/memory, I would like to see TCP and UDP ports and throughput for the ...
7
votes
2
answers
873
views
Why do top and lxtask show different degrees of memory usage?
Why does top show 730MB of RAM used, but the "Task Manager" shows 190MB?
Some more information on my system:
Lubuntu 14.04
VirtualBox
Screenshots:
6
votes
1
answer
812
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....
6
votes
2
answers
2k
views
How to change "niceness" while perfoming top command?
I know that I can change the niceness using this command:
renice [-n] priority [[-p] pid ...] [[-g] pgrp ...] [[-u] user ...]
But it would be much more convenient if I could do it while scanning the ...
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?
5
votes
2
answers
4k
views
Why does "top" show some processes running longer than the system's uptime?
I've got a problem with my system where phantomjs remains running after finishing its job. To debug this issue, two days ago I rebooted the system:
Today when I ran top, I saw this:
If I understand ...
5
votes
2
answers
2k
views
How to display cpu usage respectively?
Here is my cpu part of info(omitted unnecessary).
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 60
model name : Intel(R) Celeron(R) CPU G1840 @ 2.80GHz
...
5
votes
1
answer
4k
views
What exactly is meant by a "niced" and an "un-niced" user process?
I was using the "top " command and I came across the nice value. I am aware of the priorities and how a nice value indicates the priority of a process. But I can't seem to figure out what the term "...
5
votes
2
answers
2k
views
What tool can I use to monitor a network of PCs?
I want my system to act as the central system for the rest of my network of 10 PCs. I also want to monitor what's going on, and monitor the activity of other systems. So how can I do this? What are ...
5
votes
1
answer
6k
views
Difference between the results of the top command and System-Monitor,Why?
Why is there a huge difference between the outputs' of top command and the system monitor when both programs were run at the same time. Please find attached is the screen shot showing the huge ...
5
votes
1
answer
2k
views
Update rate of `top`
I've created the personal config file for top and I would like to change the update rate (the rate at which top updates data about the current processes). How do I do that?
5
votes
1
answer
5k
views
Gnome Shell and high cpu usage
I am running ubuntu 18.04 on a old(ish) laptop, it's a hp dv7 6180sl with upgraded ram (16gb) and SSD. It's old but still fast enough for my job.
Since a few ubuntu versions (I always do a complete ...
5
votes
1
answer
1k
views
View GPU processor activity in real time?
I wanted to know if there is such a terminal command or application that allows one to view the progress of the processes running on the GPU in real time. Basically, something like 'top' for the GPU.
...
5
votes
2
answers
10k
views
multi-core CPU usage
I am using the Windows Subsystem for Linux (WSL), and I am unexperimented in the capabilites of linux.
Recently, I've been wanting to get better insight in the CPU usage of processes, but I am getting ...
5
votes
0
answers
1k
views
Gnome Shell Memory Leak [closed]
I am running Ubuntu 17.10 with an Nvidia GTX 1070 and gnome-shell, also I have 16G of memory. Recently the process gnome-shell running after a few hours starts taking a lot of memory and the computer ...
4
votes
5
answers
2k
views
How can I run a program and watch its activity using top?
I have a small program which I compiled myself. It’s CPU intensive, so I want to watch the CPU usage when it’s working.
However, when I run ./myprog, I can’t run top immediately and sequentially.
4
votes
3
answers
5k
views
How to hide a running process ?
Using Ubuntu 12.04. is there any way to hide a running process ? That process shouldn't' display in system monitor,top,htop . There is no problem to remember the process id (PID) so observation of ...
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 ...
4
votes
1
answer
10k
views
Grep for a word in a file and show below and above lines too? [duplicate]
Possible Duplicate:
How to grep 2 or 3 lines, one containing the text I want, and the others just below it?
Say I have a file. I want to find a particular word in that file and show the line.
...
4
votes
1
answer
3k
views
How to set default nice value for a particular program?
Whenever I want to launch a program with a custom priority level, I have to type $nice -5 <Program> in the terminal.
I want to set the custom priority level to particular program as default ...
4
votes
1
answer
935
views
What is the "store" process?
Looking through top, I saw a process called "store" taking up one of my CPUs. What is this process? Perhaps it is referring to the app store? If so, I wonder why it is working in the background.
...
3
votes
3
answers
1k
views
How can I record a video like output of top command for set time period?
The top command outputs a kind of live view of processes and their use of resources in a system.
I'd like to start a program on a server installation, which starts a variety of different processes, ...
3
votes
3
answers
3k
views
How do I force "top" command to show processes greater than PID XXX
I want top command to show processes that are greater than PID xxx
is there a switch that can do that? also can I sort the output based on the PID number instead of the CPU usage?
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?
3
votes
2
answers
538
views
What is the difference between 'kill' and the 'k' option within 'top' in Linux?
I found out from http://www.tecmint.com/12-top-command-examples-in-linux/ (it's number 7 on that webpage) that you can use the k option to terminate a program. Would that work in the same way as ...
3
votes
1
answer
977
views
Top command - what do the "slash number" next to each process name mean?
I couldn't find what is the meaning of the /N below in the top command
rcuos/1
migration/1
kworder/1:0H
What do those numbers mean?
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 ...
2
votes
2
answers
169
views
What's the complement of `top -u`?
The top -u mary command allows me to see all jobs running by user mary.
What is the command to show the complement of that: all top processes except the jobs running by mary?
2
votes
5
answers
3k
views
How to check which processes are still active after a user session has logged out
I am needing to do some debugging work, and as a part of that debugging work I need to know if there are any processes still running after a user session has logged out. And I need to specifically be ...
2
votes
2
answers
3k
views
How to analyze video card RAM and GPU load? [duplicate]
I would like to analyze my video card performance (RAM, load, etc) the way that top, free and lscpu does for my main hardware.
Is there an app to do this?
2
votes
2
answers
8k
views
how to save CPU logs or GPU usage values?
folks!
I want to check my CPU logs continuously. I used top and htop commands. But I just check them during simulations.
Now I want to run a real ROBOT for approx 2 hours (my laptop would be on ...