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

learn more… | top users | synonyms

38
votes
3answers
36k 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 ...
5
votes
2answers
3k views

cpu load measure with hyperthreading on linux

How can I get the true usage of a multicore hyperthreading enabled cpu? For example lets consider a 2 core CPU, expressing 4 virtual cores. A single threaded workload would now show up as 100% in ...
0
votes
1answer
9 views

What's the equivalent of top -H -p <pid> on OS X?

I need to monitor the CPU usage of threads created by a given process. In *nix one can use top -H -p <pid>, but that not available in OS X. An equivalent of ps -eLo ...
0
votes
1answer
21 views

Find location of process running in top command

When I run 'top' I see a process running named "watchdog" I read up on watchdog via the man page ala Google but I don't have that program installed. I've done a whereis and checked the /dev file to no ...
0
votes
0answers
20 views

Gnome 3 on openSuse 42.1 : “sleep 1” Command High CPU Usage

I am experiencing intense cycles of high CPU usage on my openSuse laptop. I have noticed my browser intermittently freezing up (and my fan speeding up) and I checked htop and this is what it looks ...
1
vote
0answers
16 views

How to choose columns for top command in batch mode?

$ top -bn1 | head top - 15:16:52 up 11 days, 5:01, 4 users, load average: 0,00, 0,03, 0,11 Tasks: 411 total, 1 running, 408 sleeping, 0 stopped, 2 zombie %Cpu(s): 4,5 us, 0,6 sy, 0,0 ni, ...
0
votes
0answers
49 views

What kswapd is doing when there is no swap

The top look like this: KiB Mem : 3989652 total, 30976 free, 1480440 used, 2478236 buff/cache KiB Swap: 0 total, 0 free, 0 used. 2276236 avail Mem PID USER PR NI ...
1
vote
1answer
674 views

“top” like utility for AMD GPUs on a headless machine

For monitoring CPU usage, there is top (well, I use htop). Is there a top-like utility for GPUs? I have an ATI Radeon HD 4650 in a computer running Debian Squeeze (x86). Thing is, it's running ...
0
votes
0answers
30 views

Linux top (procps) discrepancy in numbering of CPUs for process list vs summary

I am using the top utility on a CentOS 6.7 system (procps version 3.2.8) and am observing inconsistent numbering in its output. My box has an Intel(R) Xeon(R) CPU E5-2690 v2 which has 10 cores with ...
11
votes
3answers
9k views

top command in cygwin?

I am starting to use Cygwin(64) on my Windows 8 laptop, however, the top command is not recognized. I have read online that I need to get the procps package, but it is not available on the 'Cygwin ...
7
votes
2answers
14k views

“Cannot allocate memory” while no process seems to be using up memory

I am not competent on server issues, any help is much appreciated. When try to start a python/django shell on a linux box, I am getting OSError: [Errno 12] Cannot allocate memory. free -m seems to ...
0
votes
0answers
69 views

how do I get the PID list and USERNAME of each of those PIDs in LINUX using python?

I am trying to get the PID's and their respective usernames for displaying something similar to the top command in linux. I managed to get the list of PIDs but I am unable to fetch any username for ...
6
votes
3answers
4k views

Is there a way to show windows processes in Cygwin constantly

I would like to monitor processes from a cygwin shell, using top or a variant. The reason for this is its realtime reporting and constant updates. However under cygwin, top will not report on windows ...
0
votes
0answers
29 views

High load after killing processes

My Linux home server (a RPi 2 with Raspbian) had a script running every 5 minutes from a cron job (an old rpi2pachube.sh). It usually runs a Transmission daemon. I just discovered that that script ...
0
votes
1answer
36 views

Using `top` to output only the running processes, PIDs and users?

I'd like to run top -n 1 so that it only outputs a list of running processes, their PIDs and the user that has run them (the "COMMAND", "PID" and "USER" columns). I don't need any of the other ...
0
votes
1answer
78 views

Should I trust htop or top when it comes to RES memory?

I am writing a program to test some memory usage metrics on our systems and I want to hit a target memory consumption. You execute my program via meminflate.exe -G 103.1 if you want to take up 103.1 ...
3
votes
2answers
1k views

Where has all my memory gone?

I have a linux server that keeps using up all its memory and I can't see what is using it. Running top gives the following response: Tasks: 103 total, 1 running, 102 sleeping, 0 stopped, 0 ...
0
votes
1answer
284 views

What would cause a high `%wa` value when there is nothing performing heavy io?

I have a 92.3%wa value on top right now under linux and when I run iotop -a, I see nothing causing heavy io. What might be the cause of the large %wa value and how can I go about diagnosing this? The ...
1
vote
1answer
52 views

how to check how much memory processes take?

As we know in Linux machines, we have RAM memory and swap memory. My first question is: What is the reason that the swap memory is increasing – because high level of using the RAM memory or ...
0
votes
3answers
103 views

Find *where* the executable is for a currently running process

If I have 2 executables (/path/to/gcc/myapp.exe, and /path/to/intel/myapp.exe) where one is compiled with an intel compiler and one is compiled with standard gcc, running both will show up in top as ...
0
votes
1answer
51 views

Why Menu Meter and htop report inconsistent occupied memory and total memory?

On my Macbook Pro running OS X 10.10.3, Menu Meter and htop seem to be reporting inconsistent memory results:
2
votes
1answer
22 views

How can I safely remove timeout from a script?

I started a script with timeout --signal 2 --kill-after 10 14400 and now decided that it should rather run as long as it must, so I need to remove that timeout from the running script. top -p ...
4
votes
2answers
5k views

Difference between nice value and priority in the top output

top, by default, lists both columns. I am curious as to what is the difference. I checked out the man pages and cannot figure it out: Priority: h: PR -- Priority The priority of the task. ...
7
votes
5answers
7k 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 ...
1
vote
0answers
40 views

Top -l returning always 0.0 CPU usage when requesting single PID

On Mac OS X 10.9 (Mavericks) & 10.10 Yosemite I’m unable to get the correct CPU usage for a single process using the top -l command for example top -l 1 -ncols 3 -pid <pid> Even though I ...
1
vote
2answers
38 views

how to make top show multiple CPUs (no toggling)

Is there any way to make top show multiple CPUs by default? I know how to toggle (1) But I'm running it on batch mode and the output is redirected to a file.
4
votes
1answer
3k views

How to kill an invisible process?

I have a program that crashed, its GUI is frozen, and I would like to kill it. However there is no trace of it among the current processes. I tried both top and ps -A, but I got nothing. The ...
0
votes
1answer
602 views

How to install top & htop on Ubuntu 8.04.2 LTS (hardy)

Env. Rackspace Ubuntu 8.04.2 LTS (hardy) I am in a corner situation where I need to maintain carefully a legacy server before I can plant for an upgrade. Actually an upgrade is not an option, I ...
0
votes
1answer
65 views

How much time does top command consider while finding CPU usage percentage? [duplicate]

Top gives me an output like: %Cpu(s): 4.7 us, 1.3 sy, 0.0 ni, 93.9 id, 0.1 wa, 0.0 hi, 0.0 si, 0.0 st if my CPU has spent 4.7% of its time on user processes, how much of time history has it ...
5
votes
2answers
2k views

If “top” indicates CPU is spending 10% on %wa (iowait), does that mean the CPU is idle?

I am referring to the Linux top command. If it indicates 10.4% was spent on wa, does that mean 10.4% CPU was available for other processes? top - 09:40:45 up 178 days, 34 min, 1 user, load ...
0
votes
1answer
37 views

How to know, which process had accessed the harddrive last time and when?

How to know, which process had accessed the harddrive last time and when? Like ntopng with "last seen", but in local? The question is about Linux.
5
votes
4answers
11k 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 ...
24
votes
7answers
31k 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 ...
1
vote
1answer
77 views

How to save the output from top/atop

I wanted to know if there a way to save the output from top or atop commands into a textfile for later processing. atop|top > output.txt is not really working at both top and atop keep running in ...
3
votes
1answer
1k views

Why is the kernel and the watchdogs consuming all the CPU?

I run a bunch of heavy user space processes on a powerful Xeon machine (32 virtual processors according to /proc/cpuinfo). The CPU load is normally around 30 and the machine feel responsive, but later ...
1
vote
3answers
513 views

linux - is there a more advanced version of top?

Is there any type of super-top command that will show the results through time? With regular top, it will tell me for an instant what processes are using what, but is there anything that will show ...
13
votes
2answers
46k views

TOP command memory usage

Under SuSE, (Mem: 31908592k total, 31421504k used,) how do i know which process or program using my memory?
1
vote
1answer
174 views

Low load average with plenty of cpu-intersive processes

I see loadavg at about 1 with at least 3 processes running at full tile. How can that be? top - 11:48:32 up 147 days, 5:38, 8 users, load average: 1.08, 1.11, 1.05 Tasks: 416 total, 4 running, ...
2
votes
1answer
730 views

iotop complains “CONFIG_TASK_DELAY_ACCT not enabled in kernel” only for specific process

I'm trying to use iotop to determine whether the CPUs are waiting on I/O at any point for a specific program called bwa (it's a next-generation sequence alignment program). If I start iotop without ...
0
votes
1answer
171 views

Iostat and top show static resource usage on first value

For one of my projects, I need to obtain resource (CPU, I/O and disk-space) usage programatically. Currently I'm running shell commands (iostat) and parsing the results which works relatively well ...
22
votes
2answers
30k views

Understanding top command in unix

When I run top -c command on my UNIX box I get the output below: top - 03:09:34 up 5 days, 6:14, 1 user, load average: 0.00, 0.00, 0.00 Tasks: 175 total, 1 running, 174 sleeping, 0 stopped, ...
0
votes
1answer
144 views

Weird output from linux `top` command

I got a weird output from command top, which shows the summation of the RES column is greater than my physical memory. For instance, I have a host with 64G physical memory and the swap partition has ...
0
votes
1answer
2k views

Top command cache vs free memory

When I am running top command (on embedded system with 64 MB RAM) I am getting below description on total memory usage: "Mem: 43468K used, 968K free, 0K shrd, 1280K buff, 21896K cached" It looks ...
1
vote
1answer
56 views

What is the point of sorting by PID and username in top?

I've been using the top program to find the most CPU and memory hungry programs on linux systems. Only recently did I discover the multi-window mode. The default windows number 2 (teal) and 4 (yellow) ...
5
votes
1answer
350 views

Sorted tree view in htop or alternative?

I am running a Debian flavor of Linux, and I use htop to keep track of memory usage, since it is more detailed than top. I can't seem to get it to sort by memory and display process trees at the same ...
2
votes
1answer
395 views

Is it possible to change default behavior for “top”?

For example, when I run top I usually press "C" so I can see the explicit command being run not the executable name if you will. Is there a way I can modify top such that when I do: % top The ...
2
votes
1answer
468 views

What I should know about memory management?

first of all: I don't use stackadmin or similar so please don't vote for moving there, I'm reading man top and paper "what every programmer should know about memory ..." I need really simple ...
0
votes
1answer
102 views

top output Time+ information misleading

I am running SuSE 11.2. Shen I am running "top" command on one of my machine, it looks like this: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND ...
0
votes
0answers
377 views

99% used memory, but 70% of unused allocated memory and 97% swap available: what can I do?

In a server with 48GB of RAM, when I run top, I see that less than 500 MB are free (1%), whereas when I sum up the column of % of memory used by each process, it is around 30%. Since only the 2.7% of ...
0
votes
2answers
812 views

How to use the top command in Unix to only see process using more than 10% CPU?

I want to use top, but not see all of the processes that are using minute chunks of computing power. Can someone tell me how to use top to see things above a certain cpu % cutoff? I tried just using ...