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

learn more… | top users | synonyms

1
vote
1answer
34 views

Understanding the top command high load average and high CPU idle

DirectAdmin sent me the following top output: This is an automated message notifying you that the 5 minute load average on your system is 179.99. This has exceeded the 10 threshold. One Minute ...
5
votes
1answer
30 views

High %sy in top output, how to debug?

We have 2 identically configured servers and one of them is showing a high %sy while the other does not. This would seem to indicate that the system is busy doing something. Cpu(s): 28.1%us, ...
0
votes
1answer
17 views

Average CPU utilization of a process

I am trying to conduct some experiments for determining what the CPU utilization of my process is. I am familiar with the top and ps commands. Which would be a better solution for getting the average ...
0
votes
0answers
43 views

CPU load and power management (frequency)

question background In my understanding the load value (shown e.g. by top) allows (together with the knowledge how many CPU cores the system has) a very quick assessment which share of the ...
2
votes
0answers
55 views

Programmatically get CPUs 'detailed' usage, like top/htop

htop has a great way to show CPU usage. It shows the activity (usage in %) of each cores, and each core gauge is divided into three parts : blue: low priority processes green: normal processes red: ...
1
vote
1answer
83 views

How do I get the old procps-ng top(1) layout back (pre-3.3.10)?

Since updating to procps-ng 3.3.10 my top(1) looks like this: Instead of: Not only are these colours annoying & offensive, I can't get it to sort as the "old" top(1) (O no longer works, and ...
1
vote
0answers
13 views

How to interpret numerous processes with exact same RAM usage [duplicate]

I have a VM that processes files, parses the information and saves it to a database. I've been monitoring the resource usage and noticed /usr/sbin/console-kit-daemon --no-daemon.. Below you see a ...
5
votes
3answers
110 views

Start top with particular sorting

I'd like to start top with sorting set to resident memory size, instead of the default CPU usage. I don't see a way to do that from command line arguments or startup file. Obviously I can't echo "Oq" ...
1
vote
1answer
83 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?
1
vote
1answer
79 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 ...
2
votes
1answer
24 views

`top` not refreshing screen on exit

When I exit top, the prompt reappears at the bottom and I can see the bottom of the last thing it was showing. How can I get top to behave like less i.e. refresh the screen back to when I launched ...
1
vote
1answer
91 views

Find the process which is taking maximum CPU usage if CPU usage is more than 60%?

I am trying to measure the cpu usage of my ubuntu machine and if the cpu usage is more than 60%, then I need to find out the process who has the highest cpu usage and then send out an email saying CPU ...
1
vote
1answer
80 views

Total CPU usage and CPU usage under processes list is different in FreeBSD top implementation?

For some reason, overall CPU usage on my FreeBSD machine fluctuates between 1% and 85%, but the CPU usage in processes column never adds up to this amount. For example here the overall CPU usage is ...
3
votes
3answers
64 views

How to view a specific process in top

Are there any relatively strightforward options with top to track a specific process? Ideally by identifying the process by a human readable value? e.g. chrome or java. In other words, I want to view ...
2
votes
0answers
76 views

Why would whois take up 100% of the CPU?

Running top on my CentOS web server shows an instance of whois running from 99-100% of one of the CPUs. I've not knowingly used whois on this server before, would it be safe just to kill this ...
2
votes
4answers
428 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 ...
0
votes
1answer
57 views

Bash crashes when running common commands [closed]

Open Bash, run Top, and about 1/3 times, bash just closes. The other 2/3 times, it runs properly. The same thing occurs with other commands like "clear" or "/sbin/ifconfig" Any ideas what may be ...
1
vote
2answers
123 views

Extract text from one iteration of top

I want to execute the top command from my bash script the problem is that usually when I type the top command on the console , I exit by Ctrl+C. but how to exit from top when I run the top command ...
0
votes
0answers
28 views

How fast is a process reading/writting virtual memory?

So, we have top, htop, iotop, iostat, vmstat, etc, to measure many different things on Linux, but how can one measure how much MB/s a process is reading and writting to/from RAM, i.e., virtual memory? ...
0
votes
0answers
149 views

What's limiting my CPU usage in forked processes?

I am running some long-running programs (for scientific purposes) on a multi-core Linux box. The processes are controlled by a small daemon which restarts the next job when one finishes (I run 3-6 at ...
2
votes
1answer
226 views

Why highest priority threads are displayed with RT in top and htop?

In the top and htop tools, processes (or/and threads depending on display settings) having the highest realtime priority (99 from the userland API point of view) with either the scheduling policy ...
1
vote
1answer
32 views

How do I control the cycle length of “top” command

I have been told that "top" command only cycles once per second (I don't know if that's true) and I need it to show changes in processes way shorter than a second, how do I do that? What I need to ...
3
votes
3answers
283 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
1k views

Huge CPU load due to high system usage

Tasks: 747 total, 176 running, 560 sleeping, 0 stopped, 11 zombie Cpu(s): 10.5%us, 89.2%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st Mem: 74236420k total, 73285344k used, 951076k ...
1
vote
1answer
44 views

Memory usage stays high after compilation jobs

I am operating a small Linux VM with 1Gb of RAM. It is a fairly typical LAMP setup which takes about 16% of memory on normal usage I used the box to compile stuff yesterday, the memory went up to 60% ...
1
vote
0answers
29 views

Top forest view with filter, can I include all children?

If I'm using top in "forest" mode (V) and I restrict by PID (o PID=12345), can I also get top to show all the child processes in the same view? Ubuntu, top from procps-ng version 3.3.9
1
vote
1answer
203 views

How to redirect per-CPU top output to file?

I want redirect top output to a file, but I am interested in the per-CPU usage. Doing just #I only want to see processes belonging to myuser top -b -d 1 -u myuser > top.txt gives me stats ...
2
votes
2answers
175 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 ...
1
vote
2answers
83 views

How to use top with only showing CMD name

How do you use top with just showing the CMD name? I have used top with just showing the running process that I want; for example: $ top -p 19745 And if I want more than one PID, I would use: $ ...
1
vote
1answer
3k views

top command on multi core processor

I am using freescale IMX6 quad processor. I want to know if the top command lists the CPU usage of all 4 cores or of a single core. I am seeing an application's CPU usage being the same with 4 cores ...
3
votes
1answer
126 views

PBS equivalent of 'top' command: avoid running 'qstat' repeatedly

When I run several jobs on a head node, I like to monitor the progress using the command top. However, when I'm using PBS to run several jobs on a cluster, top will of course not show these jobs, and ...
0
votes
0answers
423 views

How to find the cpu and memory usage of a single process in linux

This question is similar to this SO. I wanted to find the CPU and memory utilization for a single process so I decided to use the top -p <$PID> as mentioned in the question. Here is my script. ...
3
votes
4answers
148 views

What is using memory? [closed]

According to htop and free, the machine I'm looking at is currently at 6631 / 11907 MB of RAM. That's more or less half of the RAM available. However when I sort top or htop by MEM%, the most memory ...
3
votes
2answers
738 views

Understanding %CPU while running top command [duplicate]

I am trying to understand what does %CPU means when I run top. I am seeing %CPU for my application as 400 or 500 most of the times. Does anyone knows what does this mean? What number is a high ...
1
vote
2answers
137 views

What does % utilization mean in htop if only 1 process can execute at a time?

I see that the htop command reports respective the % of utilisation of each CPU core and also that of the processes. We know that only 1 process can execute at a time in the CPU. How is it possible ...
3
votes
2answers
97 views

CPU percentage of a single process

How do I get the average CPU percentage (for every second) consumed by a single process since it starts until it ends (exists)? Could I make this with Top?
1
vote
2answers
508 views

What does “batch mode” mean for the top command?

I was reading about the top command and I came across something I don't quite understand: top options: -b Run in batch mode. This is useful for sending output from top to other programs or to ...
0
votes
1answer
74 views

The shell command “top” shows which processes from the /proc directory?

The manual page states, The top program provides a dynamic real-time view of a running system. It can display system summary information as well as a list of processes or threads ...
2
votes
2answers
163 views

How does a parallelized Python program look with top command?

I work on a shared cluster. I've seen people run parallelized c code on this cluster which, when I use top to see what processes are running, are shown to be using (for example) 400% of the CPU, ...
1
vote
0answers
120 views

top/ps/mpstat showing different output

When my top shows a load of 19/20 and my ps shows root@server:/home/nohup# ps -eo pcpu,pid,user,args | sort -k 1 -r | head -5 %CPU PID USER COMMAND 122131 18695 mysql /usr/sbin/mysqld xxxxx ...
0
votes
1answer
47 views

get cpu by user

Working with monit I need create an alert that get cpu usage of system users, so: top -b -n 1 -u user1 | awk 'NR>7 { sum += $9; } END { print sum; }' seems a good solution but I'm not sure about ...
1
vote
1answer
129 views

Virtual Memory Usage Exceeding Physical Drive Space

I have a machine running Ubuntu on Amazon EC2. The machine has a 43 Gb root drive and 30 Gb of RAM. I am running a processor and memory intensive process and I've noticed that it sometimes stalls for ...
2
votes
2answers
103 views

How to troubleshoot high load, when there are no obvious processes [duplicate]

I'm running Ubuntu 13.10 on a laptop. Recently, after waking from sleep, I noticed the computer was quite warm, checked top and discovered 1.00 load average. I shutdown Chrome, various daemons, no ...
2
votes
2answers
205 views

Tool for viewing top N items in stream

I'm looking for an existing Linux command-line tools that can accomplish the following: Consider there is an input stream /dev/inputstream which spews an infinite stream of data that looks like this: ...
9
votes
2answers
7k 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?
4
votes
1answer
61 views

top: how to cancel current command?

While browsing processes on a shared server in top I accidentally hit the r key which prompted me with renice. I had no clue what this was going to do with my input and found no way to go back. I ...
4
votes
1answer
2k views

Human readable memory sizes in top? [duplicate]

Is there an option in top to show memory sizes in human readable format? Example: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3960 phil ...
3
votes
2answers
167 views

What does it mean exactly when a processes “Time” has stopped in top?

I'll be looking into why we're getting critical swap alerts, and I'll find something like: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP COMMAND 14683 user1 30 10 16.0g 772m ...
1
vote
0answers
38 views

How can I hide a command line from (e.g.) top & htop? [duplicate]

I know that both support specifying the username, which can be forced using an alias in root-owned ~/.bashrc, but one can temporarily disable the alias by prepending the command with \, so what are ...
1
vote
0answers
29 views

About the usage of Memory in a linux server [duplicate]

I find my server's memory usage is so high, part of the output of command free is shown below: total used free shared buffers cached Mem: 82446460 81961412 ...