A command-line system monitor tool that produces a frequently-updated list of processes.

learn more… | top users | synonyms

0
votes
0answers
11 views

what is the difference between top and htop? [duplicate]

When I top and search for a code I am running, it shows only 10% memory usage, and a single entry in top. But when I run htop, it shows 15 entries of exactly the same command each using up-to 10% of ...
3
votes
3answers
826 views

Setting the TOPCOLORS environment variable

I don't seem to be able to find any examples on the Internet for this environment variable, which top will apparently read and use to display colours. How would I set this variable correctly so top ...
1
vote
1answer
44 views

What does `perf-<PID>.map` mean? [on hold]

I'm working on a project that requires me to interpret results given by the perf top command while jobs are running. Our job involves using a JVM-backed system, so naturally running that command ...
0
votes
1answer
13 views

What is the threshold for top to label a process as idle

With the top command I can toggle, whether to list idle processes or not. What is the CPU usage limit for a process to show up as idle or non-idle?
4
votes
4answers
16k views

What is the difference between ps and top command?

What is the difference between ps and top command ? I see that both can display information about running processes . Which one should be used when ?
1
vote
1answer
384 views

upowerd consuming 100% cpu

upowerd is consuming nearly 100% of CPU. I am currently affected by this issue on both a Lenovo Thinkpad E520 and on a desktop PC running Core i7 and Asus Z170a motherboard. Both run Kubuntu 15.10. ...
2
votes
1answer
30 views

Is it possible to freeze task order in htop?

In htop I would like to order processes by CPU utilization but the top processes bounce back and forth so it is difficult to view the details of each process. I would like to be able to sort in ...
29
votes
2answers
41k views

What units of time does “top” use?

If I issue the "top" command and receive results such as: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 00001 bob 25 0 77380 1212 1200 R 95.8 0.0 89122:13 fee ...
0
votes
0answers
20 views

Can't see processes of particular users in top

The Linux command top isn't working properly. If I type u, for which user, and then my account xxxxxx, I see all my jobs. If I type 68852563 (consultant account), then I see nothing. OS: Red Hat ...
0
votes
1answer
11 views

Since when Disks statistics in `top` command are counted?

I've got these disk statistics shown in top command: $ top | head | tail -n1 Disks: 1095425909/52T read, 1016012571/52T written. It's quiet high number for only 37 day uptime. Are these numbers ...
0
votes
1answer
26 views

What could be the cause for going to uniterruptable deep sleep state for this particular make process?

I am trying to understand 'D' state correctly. In my case, the following process went to 'D' state: make -f freac/CMakeFiles/freac_objs.dir/build.make freac/CMakeFiles/freac_objs.dir/build It is ...
1
vote
2answers
36 views

How to use top in a shell script to track memory consumption of a process?

I was wondering if there was a way to use top or another program to track the memory consumption of a script I will be running. I was using runtime.totalMemory - runtime.freeMemory But that'...
4
votes
2answers
2k views

Is there a way to get “top” to run exactly once and exit?

I find the output of the shell command top to be a simple and familiar way to get a rough idea of the health of a machine. I'd like to serve top's output (or something very similar to it) from a tiny ...
0
votes
2answers
42 views

What does it mean that a page fault may or may not involve auxillary storage access in making that page available

From manpage of top nMaj -- Major Page Fault Count The number of major page faults that have occurred for a task. A page fault occurs when a process attempts to read from or ...
2
votes
1answer
17 views

Do RES and USED of a process include the cache and buffer of the process?

In the output of top, I heard that RES of a process is the part of RAM occupied by the process, and includes the process' code, data, and shared libraries which are in RAM. I wonder if RES of a ...
0
votes
1answer
33 views

Does top read some system files?

If I am correct, the output of free comes from reading /proc/meminfo. In the output of top, is the summary of memory part not specific to a process also coming from /proc/meminfo? which system ...
0
votes
1answer
18 views

How to show USED in the output of top?

top doesn't show USED (a part of virtual memory) by default. How can I make it visible? Thanks.
0
votes
0answers
17 views

Understanding shared objects in virtual memory, in the output of top

In the output of top, does SHR for a process consist of only the following parts all the shared objects in RAM, e.g. shared libraries and shared data in RAM, shared between the process and any ...
4
votes
2answers
166 views

Differences and relations between VIRT and USED in output of top?

From manpage of top VIRT -- Virtual Memory Size (KiB) The total amount of virtual memory used by the task. It includes all code, data and shared libraries plus pages that ...
0
votes
0answers
32 views

Ubuntu guest CPU steal 99.7 %

I'm currently running a VPS which appears to have some very strange problems. Running top gives me 99.7 % CPU steal. It's always the same value and started 3 days ago. The same thing happened a while ...
2
votes
1answer
67 views

Is there an equivalent to top but for network I/O?

Is there a program that I can use to list processes based on their current network I/O usage? top does CPU, and on FreeBSD at least, it will also do disk I/O if you pass it -m io (I assume that there'...
2
votes
1answer
50 views

How does iotop calculate the relative I/O activity?

I am running some heavy I/O processes on my workstation and recently installed iotop to monitor them. Here's a recent screenshot: I'm a bit confused about the readings in the IO> column. It ...
1
vote
2answers
124 views

Top command output explanation (in embedded system)

Can someone please help me understand the output that I get from the top command? This is the point that the oom-killer is invoked and kills my main application. What exactly is under the VSZ and %VSZ?...
14
votes
5answers
37k views

Change top's sorting back to CPU

A former coworker did something to top that whenever it runs as root the data is sorted by MEM usage instead of the default CPU usage. According to multiple searches, the man page and even the options ...
2
votes
2answers
32 views

Process Scheduling Information Extraction

I want to extract the process having highest utilization on each processor core and then output its information (PID etc.) to a file. How can I do it by using either top or ps command? Thanks.
2
votes
1answer
41 views

Sort processes by start time

Is there a way to view processes by the time they were started? top and htop have an option for sorting by how much time a process has been running, but I would like to sort by when the process began ...
54
votes
6answers
141k views

How to find which processes are taking all the memory?

I'm looking for somthing like top is to CPU usage. Is there a command line argument for top that does this? Currently, my memory is so full that even 'man top' fails with out of memory :)
0
votes
1answer
284 views

MySQL process showing in top but no errors logged

I am seeing the following in TOP 2311 mysql 20 0 1324M 646M 9188 S 0.0 17.1 0:00.00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=...
1
vote
3answers
2k views

Is there a valid alternative to top for OpenBSD?

I like very much htop, on GNU/Linux is very nice, I would like a similar software for OpenBSD 5.6. Anyone knows something about that?
8
votes
5answers
4k views

Understanding top and load average

I'm observing a high load average on a certain machine (about 9) in all three load fields. I understand load as the number of processes in state "run" / currently desiring CPU time. Am I correct at ...
0
votes
1answer
2k views

CPU idle is high, but processes are struggling to keep up as if the cpu is under heavy load

My centos is barely usable. Often times the terminal becomes totally unresponsive for several seconds, but that may just be lag from ssh, which would be strange because my server is connected to a ...
1
vote
2answers
57 views

Why does `nohup top` cut the output lines?

I want to use nohup to periodically log the output of top (every 15s). For that, I log into the server with SSH, carry out the following command, and log out again: nohup top -b -c -d15 & The -...
0
votes
1answer
102 views

Java process seems to always be bound to a single CPU

This is a bit of a puzzler. I have 28 VMs, running on ESXi 5.5, each with 6 vcpus assigned to them. They're not particularly loaded, and they're not running anything other than a single java process ...
142
votes
7answers
172k views

How to display `top` results sorted by memory usage in real time?

How can I display the top results in my terminal in real time so that the list is sorted by memory usage?
7
votes
1answer
35k views

How to check which process is using most memory

When I check free in one of Prod server it showing 70% of memory is being used: total used free shared buffers cached Mem: 164923172 141171860 23751312 ...
1
vote
2answers
57 views

Tracking/Monitoring Short-Lived CPU-Intensive Process on one CPU

So I've been working with this issue for some time now, and I'm having trouble finding the tools to troubleshoot this problem, which I have to imagine exist. So here's the basics of my problem: We ...
0
votes
1answer
54 views

Where is all my RAM going

On our RHEVM server, when i run free -m command it tells that 23117MB "Used -(Buffers+cache)" of RAM is in use, And Free "Free+(Buffers+cache)" is 9120MB Total usable RAM is 30759MB Actual used ...
6
votes
5answers
9k views

Top says 100% CPU used, but 50% of cores idle?

top - 08:43:16 up 96 days, 22:16, 1 user, load average: 4.03, 3.92, 3.98 Tasks: 199 total, 1 running, 198 sleeping, 0 stopped, 0 zombie Cpu0 : 0.0%us, 0.5%sy, 50.0%ni, 49.5%id, 0.0%wa, 0....
0
votes
1answer
26 views

Webserver compromised, strange processes running

So currently my debian server is generating large amount of outgoing traffic. Most likely compromised and used to attack other targets. The top command shows this PID USER PR NI VIRT RES ...
11
votes
4answers
7k views

How can I receive top-like CPU statistics from the shell?

I'm trying to get an accurate read of my used CPU (in percent) from top. This is the command I'm running for testing: top -n1 | awk '/Cpu\(s\):/ {print $2}' This returns: 10.7%us, Which is the ...
1
vote
1answer
81 views

Understanding the top command output on an ARM multicore computer

Ran the top command to check CPU performances and memory usage on the New RPi3 while running a browser. Since we have a 4× ARM Cortex-A53, 1.2GHz, how should I read the result? $ top Mem: 327132K ...
10
votes
4answers
3k views

Alert when running process finishes

There are a few questions and answers on here with regard to being alerted when a process completes/exits(1, 2) – but these all assume that the user has issued said process themselves, and thus can ...
1
vote
1answer
160 views

cpu usage is 100% but top doesn't show any process using it

First of all, I forgot to save the process list. I had to reboot the server so I can't give much information. I have a small VPS. The cpu usage was 100% in both top and in the control panel graphs, ...
0
votes
3answers
88 views

Linux + how to verify the CPU performance

I have few servers that I manage in my origination ( red-hat 5 ) my users complain about the bad CPU performance grep processor /proc/cpuinfo processor : 0 processor : 1 can I ...
67
votes
6answers
69k views

How to display meminfo in megabytes in top?

Sometimes it is not comfortable to see meminfo in kilobytes while you have several gigs of RAM. In Linux it looks like that: And here is how it looks in Mac OS X: Is there a way to display ...
1
vote
0answers
69 views

Virtual CPU utilization(multi core CPU)- Identify the process

I am in a road block and trying to understand the below. Red hat Linux has been installed in a Intel Xeon CPU. We have a 6 core virtual CPU's. I am trying to find out which job is consuming more of ...
4
votes
1answer
149 views

The sum of % in the CPU column doesn't match the total CPU % row [duplicate]

I don't understand why the sum of % in the cpu column in top doesn't match the total CPU % row: Text version with slightly different values: ubuntu@server:~$ top top - 23:20:21 up 5:18, 3 users, ...
1
vote
0answers
142 views

Periodically get CPU usage for single process

I've got a problem with the kswapd0 process (pid 52), which from time to time would start to use 25% of the cpu (one full core). I usually stop it with the command sudo sh -c "echo 1 > /proc/sys/...
0
votes
1answer
79 views

Downsides of processes with high virtual size but low RAM and GPU memory use

I have noticed that some of my processes take a lot of virtual size in my computer. I understand that the virtual size of a process is the sum of memory it is actually using, memory it has mapped into ...
0
votes
2answers
48 views

Launch top command showing all cores immediately

I know that once you run top if you press [1] you can see the load on each processor (let's forget the multi-threading issue) and if you press [s] you can configure the refresh time. How can I put ...