Top is a UNIX program that shows system usage in real time.

learn more… | top users | synonyms

1
vote
1answer
1k views

Top is showing % CPU > 100?

top is showing several processes with CPU % greater than 100%. What does this indicate?
4
votes
2answers
2k views

Specify top's screen width in batch mode

I am logging the output of: top -b -n1 -c so I can keep track of which processes are using how much memory and CPU each minute. When top shows the full command line (-c), the command line text gets ...
4
votes
2answers
5k views

Is it possible to 'hide' a process from the listing of `ps` or `top` on Linux

First, I presume that if this is possible it would need to be done as root (or as a user who shares root's UID of 0). How can a process be launched so that it does not show up in a ps aux or ps ef or ...
0
votes
1answer
1k views

disparity between `top`'s given CPU % and process CPU usage total

I've noticed that there are sometimes (large) differences between the reported total CPU usage and a summation of the per-process CPU utilization given by apps like top and wmtop. As an example: I ...
18
votes
7answers
22k views

Linux “Top” command for Windows Powershell?

I am looking for a PowerShell cmdlet that can provide similar functionality to the Linux Top app. Something that refreshes at some given interval and displays the process list with CPU % util. I have ...
24
votes
3answers
23k views

Why is the CPU usage reported by top in Linux over 100%?

I've seen the CPU usage go over 100%. How is this possible? Is it because I have four CPU cores, so 100% isn't really the max? Also, when a program does this, what else can I do in top besides using ...
4
votes
4answers
8k views

Writing a CPU/RAM usage log over a period of time to file on CentOS

I'm looking for an application or line of code that would let me observe a process, save the info in a number of variables, then put the gathered info on a file. I've been trying with variations of ...
3
votes
2answers
1k views

Where is my CPU usage going?

My Ubuntu 10.04 Lucid virtual machine is saying it's at 100% CPU usage... but all I'm running is Thunderbird. According to top, CPU usage should be ~25.9%... How do I interpret this conflicting output ...
0
votes
4answers
969 views

How can I free memory on linux

When I use top to see memory usage, I have 65gb ram but only 1.3gb of it free and remaining is shown as used. When I ran my program It gives memory insufficiency error. Although no other program is ...
2
votes
1answer
2k views

Understanding top output in Linux

I'm trying to determine the CPU usage of a program by looking at the output from Top in Linux. I understand that %us means userspace and %sy means system/kernel etc. But say I see 100%us. Does this ...
23
votes
2answers
10k views

Linux: Is there something similar to “top” for I/O?

My disk often is utilized, but top (and htop, a custom replacement) show nothing suspicious. Is there a way to sort processes by I/O (more specific: disk) utilization? EDIT Found out using iotop ...
5
votes
1answer
2k views

How does top calculate the memory figures on Linux?

I'm a bit confused on how the memory figures add up in top. If I've understood correctly, the amount of "really" used memory is total - free - buffers - cached. In the example below that would be ...
6
votes
5answers
5k views

individual cpu % in 'top' output

Usually to view individual cpu % we press '1' in the interactive mode of top. However I am not able to figure out the logic to get the same output in batch mode i.e, top -n1b I am redirecting this ...
2
votes
4answers
48 views

automate: finding non-used servers from a list of servers

i posted this on stack overflow but a user recommended i post here. sorry for cross posting: 0 vote down star i have access to a few linux clusters at school. sometimes they are busy and ...
1
vote
1answer
937 views

Color-coded top in FreeBSD

In Ubuntu (karmic), I can issue top and then press 'Z' or 'B' to color-code or enable bold. Is there any way (hack or otherwise) to do this in FreeBSD (7.2)?
3
votes
2answers
779 views

%CPU for a process

Looking at the output of top on our server, one of my colleagues told me that the fact that some processes got less than 100 "%CPU" was because I was running too many processes. He added that based on ...
3
votes
1answer
3k views

Cpu usage in the output of top

I am looking at the output of top. top - 16:11:19 up 31 days, 2:37, 10 users, load average: 17.01, 16.99, 17.00 Tasks: 470 total, 18 running, 452 sleeping, 0 stopped, 0 zombie ...
2
votes
1answer
6k views

average load and total %CPU in top

I thought the average load by uptime and the summation of %CPU of all running processes in top (#9 column) should agree. But it seems not true. Here is my little experiments: On one server: $ top -b ...
1
vote
1answer
2k views

Memory percentage in top (linux)

Just wondering (1) is the memory percentage in top for a process is relative to memory or relative to memory+swap? (2) if it is the former, how can I get the latter? Vice versa. (3) To determine ...
5
votes
3answers
2k views

Where does the command “top” get its information from in linux?

Which files does the linux command "top" read from in order to build its table of data? Specifically, I'd like to be able to find the data for the "command" column based off of a PID.
5
votes
2answers
374 views

What is the colorized version of the Linux “top” program?

I didn't know "top" had a nicer colorized version like this. What is the command? Does anyone recognize this?